ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You need to use the C++ namespace separator (::
) instead of the /
when specifying the topic type:
ros::Publisher velocity_pub = node.advertise<geometry_msgs::Twist>(topic_name, 1000);