This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* The Ros object, wrapping a web socket connection to rosbridge. | |
var ros = new ROSLIB.Ros({ | |
url: 'ws://localhost:9090' // url to your rosbridge server | |
}); | |
//* A topic for messaging. | |
var exampleTopic = new ROSLIB.Topic({ | |
ros: ros, | |
name: '/com/endpoint/example', // use a sensible namespace | |
messageType: 'std_msgs/String' |