sim.setObjectPosition
and sim.setJointPosition
.sim.setObjectPosition
and sim.setJointPosition
.sim.setJointTargetPosition
rather than sim.setJointPosition
.time_1
is nil because the condition distance_1 < 0.9
is false.Code: Select all
if time_1 ~= nil and time_2 ~= nil and time_1 - time_2 > 0 then
sim.setStringSignal("SafetyStop","1")
end
sim.setJointPosition
and it works fine also in a ROS callback.sim.addDrawingObject
and fill with items via sim.addDrawingObjectItem
as the robot passes around.sim.createPath
and sim.insertPathCtrlPoints
);sim.addDrawingObject
and sim.addDrawingObjectItem
.