husky doesn't advance

asked 2019-02-06 11:55:59 -0500

AlexisRM gravatar image

updated 2019-02-06 13:35:35 -0500

if I don't assign a name to the husky, the husky responds to my speed publisher, but if I give it a name with:

<arg name = "robot_namespace" value = "myhusky" />

the husky doesn't move, I use the topic :

/myhusky/husky_velocity_controller/cmd_vel

Publisher:

ros :: Publisher husky_vel1 = nodeH.advertise <geometry_msgs :: Twist> ("/myhusky/husky_velocity_controller/cmd_vel", 100);

Message posted:

geometry_msgs :: Twist msg;

msg.linear.x = 1.0;
msg.linear.y = 0;
msg.linear.z = 0;

msg.angular.x = 0;
msg.angular.y = 0;
msg.angular.z = 0;


husky_vel1.publish (msg);
edit retag flag offensive close merge delete