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

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!