ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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);