ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Swap the turtlesim velocity with geometry_msgs/Twist.
2 | No.2 Revision |
Swap the turtlesim velocity with geometry_msgs/Twist.
vel_pub_ = nh_.advertise<turtlesim::Velocity>("turtle1/turtle1/cmd_vel", 1);
needs to be changed to
vel_pub_ = nh_.advertise<geometry_msgs::Twist>("turtle1/turtle1/cmd_vel", 1);
turtlesim::Velocity vel;
to geometry_msgs::Twist vel;
Remove command_velocity
at the end.