ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Your code is basically
if (!global_state)
{
}
else
{
// Whatever
}
while (true)
{
ros::spin();
}
So, basically your code never exits the bottom loop, so can never get back up to the top!