How to get error information using roslibjs
Using roslibjs and rosbridge--I'd like to get more information when there is an error, particularly when connecting. My code is:
ros = new ROSLIB.Ros({
url: robotUrl
});
ros.on('error', function(error) { console.log ('Error connecting to websocket server: ' , error); });
When an error occurs, I see in the debugger that the variable "error" contains a very involved structure, and I guess the actual error message is in there somewhere, but where?