Search found 4 matches

by slgrajeshwar36172
11 Nov 2019, 10:14
Forum: Bug reports
Topic: sim.setJointPosition is not working inside the callback function of subscriber in ROS.Please help me
Replies: 4
Views: 77

Re: sim.setJointPosition is not working inside the callback function of subscriber in ROS.Please help me

Hello, first, you do not need simROS.subscriberTreatUInt8ArrayAsString for that subscriber. second, what do you mean with it is not working ? Is there a message error? What is the behaviour? Of course, if your joint is in force/torque mode with position control enabled, then you can't use sim.setJo...
by slgrajeshwar36172
11 Nov 2019, 06:14
Forum: Bug reports
Topic: sim.setJointPosition is not working inside the callback function of subscriber in ROS.Please help me
Replies: 4
Views: 77

sim.setJointPosition is not working inside the callback function of subscriber in ROS.Please help me

function sysCall_init() -- Get some handles: joint=sim.getObjectHandle('Joint') -- Enable an image publisher and subscriber: sub=simROS.subscribe('/joint_topic', 'std_msgs/Float64', 'joint_callback') simROS.subscriberTreatUInt8ArrayAsString(sub) -- treat uint8 arrays as strings (much faster, tables...
by slgrajeshwar36172
09 Nov 2019, 11:13
Forum: General questions
Topic: Control scene objects in VREP through ROS
Replies: 13
Views: 4136

sim.setJointPosition is not working.can you please help me

function sysCall_init() -- Get some handles: joint=sim.getObjectHandle('Joint') -- Enable an image publisher and subscriber: sub=simROS.subscribe('/joint_topic', 'std_msgs/Float64', 'joint_callback') simROS.subscriberTreatUInt8ArrayAsString(sub) -- treat uint8 arrays as strings (much faster, tables...
by slgrajeshwar36172
07 Nov 2019, 12:12
Forum: General questions
Topic: Threaded scripts and ROS
Replies: 5
Views: 2175

Re: Threaded scripts and ROS

can you please post one complete code threaded script for ROS for newer version of vrep and ROS.
thanks for code