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

Don't create Subscribers inside your while-loop. Move the initialisation of ros::Subscriber sub to somewhere else.

Don't create Subscribers inside your while-loop. Move the initialisation of ros::Subscriber sub to somewhere else.

Also: why three ros::Rate::sleep() statements?