what's that?
what's
sim
here?same...
Code: Select all
[img, resX, resY] = sim.getVisionSensorCharImage(visionSensorHandle); % display image in MATLAB: imshow(flip(permute(reshape(img, 3, resY, resX), [3 2 1]), 1));
simUI = require 'simUI'
instead. Plugins have to be loaded explicitly (implicit loading is only a backwards compatibility feature).Code: Select all
poses = {}
for line in io.lines('poses.csv') do
local pose = map(tonumber, string.split(line, ','))
table.insert(poses, pose)
end
list
is used in Python, in Java that would be List<T>
, with T
being the type of the elements of the list.