Hi all,
I'm trying to use Rosbridge as a JSON-based communication mechanism between my own programming language and ROS.
A first test with Turtlesim went ok, I'm now trying to move the Turtlebot Simulator using /cmd_vel geometry_msg/Twist JSON messages.
The problem is that the bot is not moving at all in the simulator, and I'm wondering what the reason could be.
So here's an overview what is happening, could anything be wrong with what I'm publishing?:
Topic: "/cmd_vel"
Message: "geometry_msgs/Twist"
JSON: "{ linear: [ 0.2, 0, 0 ], angular: [ 0, 0, 0.2 ] }"
I tried publishing in a while(true) loop after reading that the bot discards messages that are sent less frequently than 0.6Hz, but no luck either.
Do I have to run an additional node that is subscribed to these messages? Or could it be an issue with the simulator (since the (albeit simpler) turtlesim worked immediately).
Seems unlikely since this from the tutorial works:
rostopic pub -r 5 cmd_vel geometry_msgs/Twist '[0.1, 0, 0]' '[0, 0, 0.2]'
Thanks!
Andoni