I add geometry_msgs/msg/Pose and geometry_msgs/msg/Point to interfaces.txt then I recompile the ros2 plugin.
On my ubuntu Computer when I do:
Code: Select all
Pose={}
pos={}
pos.x=objPos[1]
pos.y=objPos[2]
pos.z=objPos[3]
ori={}
ori.x=objOri[1]
ori.y=objOri[2]
ori.z=objOri[3]
ori.w=objOri[4]
Pose.orientation=ori
Pose.position=pos
if simROS2 then
simROS2.publish(publisher,ori)
end
Code: Select all
in simROS2.publish@simExtROS2: read in arg 1 (publisherHandle): expected string
stack traceback:
[C]: in function 'simROS2-typecheck.publish'
[string "/IRB140[1]/robotiq2@childScript"]:80: in function 'sysCall_sensing'
I'm working with export LIBGL_ALWAYS_SOFTWARE=1 since it looks like CoppeliaSim doesn't like my Nvidia graphic card.
It's the same on WSL2 though.