ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.