ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Additional info for this issue when using Cpp since this is the top result on google:
When you are facing this issue using classes with a ros::NodeHandle and ros::Rate, make sure the order is:
class A
{
ros::NodeHandle nh;
ros::Rate r;
.
.
.
}
Otherwise the ros::Rate object will be created first which ends up with the same exception thrown.