ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I am not yet familiar with "ros_bundle.min.js". However, I can answer this issue using "ros.js", found under "rosbridge_clients" in the release version of rosbridge_suite. Using this ros.js, I used the following example page to control both turtlebots and AR.Drones:

https://dl.dropbox.com/u/14391589/tutorial/rosbridge_ardrone/drone_browser_teleop.html

In this case, the connection is created as follows:

var con = new Bridge("ws://localhost:9090");

Addressing point 1, publishing command velocity for moving forward is done as follows:

con.publish('/cmd_vel', {"linear":{"x":1.0,"y":0,"z":0},"angular":{"x":0,"y":0,"z":0}});

In Chrome, you should be able to inspect the actual websocket frame that is sent using the development tools (regardless of which ros.js you are using). I found this description of inspecting websocket traffic useful:

http://blog.kaazing.com/2012/05/09/inspecting-websocket-traffic-with-chrome-developer-tools/

I haven't tried subscribing to pose yet, so I will pass on speculating about the second issue.