ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Please see the roscpp overview on Publishers and Subscribers for example usage and API links. To me it looks like you are missing the required template parameter for the ros::NodeHandle::advertise
method. You likely need to change the call to something like
vel_pub = nh.advertise<geometry_msgs::Twist>("/cmd_vel", 30);