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

Revision history [back]

click to hide/show revision 1
initial version

All of the roslibjs calls are asynchronous; they are event driven. When you call 'get', you are passing in a callback function that will be called whenever rosbridge responds to you request. This prevents blocking and waiting which will lock up the entire browser. You could move your var formElement = document.getElementById('maxLinearSpeedDisplay'); formElement.innerHTML = maxLinearSpeed; inside your callback function so that the HTML is updated whenever a response comes back.