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

Both of these errors are on the same line:

ros::Subscriber <geometry_msgs::Twist> sub("/cmd_vel", 100, roverCallBack);

The error message says that the signature for the Subscriber constructor is Subscriber(const char * topic_name, CallbackT cb, int endpoint=rosserial_msgs::TopicInfo::ID_SUBSCRIBER). The third argument has a default, and it isn't the queue size, so it looks like you don't need that argument.

Try:

ros::Subscriber <geometry_msgs::Twist> sub("/cmd_vel", roverCallBack);