How to publish an object pose with ROS?
Posted: 13 Mar 2018, 22:07
Hello,
I have tried publish an object pose with ROS. Like in scene controlTypeExamples.ttt I wrote:
in sysCall_init():
in sysCall_actuation():
but it doesn't work.
I am not sure about type in advertise and what should I write here:
Could you tell me what I do wrong, please?
Kind regards
I have tried publish an object pose with ROS. Like in scene controlTypeExamples.ttt I wrote:
in sysCall_init():
Code: Select all
objHandle = sim.getObjectHandle('objName')
objPos = sim.getObjectPosition(objHandle,-1)
Code: Select all
pub = simROS.advertise('pubPos', 'geometry_msgs/Point')
local tab = {}
tab['data'] = objPos
simROS.publish(pub, tab)
I am not sure about type in advertise and what should I write here:
Code: Select all
tab['data'] = objPos
Kind regards