Skip to content

Instantly share code, notes, and snippets.

View codyhex's full-sized avatar

He, Peng codyhex

View GitHub Profile
codyhex / foo.js
Created April 19, 2016 14:25 — forked from minshallj/foo.js
roslibjs example
//* 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'