-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I guess it's not a bug and I simply need some help.
I've created a project "turtlenode" using rosnodejs, which aims at moving the turtle_sim turtle.
I've generated the turtlesim messages, and I'm trying to use "/turtle1/command_velocity " to send a new speed.
here's the code :
var ros = require('rosnodejs'),
Velocity = require('./turtlesim').Velocity;
ros.createNode({ name: 'turtlenode' }, function(err, node) {
if(err)
return console.error(err);
node.createPublisher({topic: 'turtle1/command_velocity', Message: Velocity}, function(err, topic) {
if(err)
return console.error(err);
topic.publish( new Velocity({ linear: 1.0, angular: 1.0 }), function(err){
if(err)
return console.error(err);
console.log('sent');
} )
})
})'sent' is logged, no error is returned, but the process is stuck, and when I look at my graph with 'rxgraph', turtlenode seems registered to the topic (albeit I have to check "all topics" to see it) , but it is double circled in red, and clicking on it in rxgraph indicates that rxgraph could not connect to it using "localhost:9000".
I do not know what it means yet, but it seems not good.
rxconsole doesn't log any message while running turtlenode either.
Metadata
Metadata
Assignees
Labels
No labels