recall multiple ROS nodes in one main cpp ROS node
Hello, I'm using ROS indigo to fly my Erle Copter, I want to ask you about ROS nodes,
I have several ROS nodes: one of these nodes will take reading from one of the sensor and do some calculations, and based on the sensor readings the Copter (UAV) will know its direction.
My question is, if I want to run the ROS node that is responsible of sensor readings after reaching one of the waypoints, how can I call that ROS node so it works only once the UAV reaches the waypoint and move? and then move to the second waypoint and run the same node again
so recalling ROS node at specific time, can it be achieved and how?
I hope that you can understand my question since I didn't find what I want in the tutorial, all what I found is how to publish and subscribe in another one, but its not explained how to run a ROS nodes inside another ROS node (main one)