ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Can you say what your goal is? Because ros::ok() is checking something about a node. A node is a ROS concept so I can't see what it means to make it ROS independent. You could refactor to classes that are about the essence of your algorithm and then use them in a much smaller program that uses ROS.