lanyusea / djiros

3 stars 3 forks source link

Multi thread #1

Closed lanyusea closed 9 years ago

lanyusea commented 9 years ago

The waypoint navigation loop should run in a separate thread, otherwise it cannot update the current state.

TODO: ROS multi thread.

otherwise a trivial loop can be implemented in client node, but not user-friendly, not at all.

lanyusea commented 9 years ago

Currently the issue can be solved by simple multi-thread

ros::AsyncSpinner spinner(4); // Use 4 threads
spinner.start();
ros::waitForShutdown();

However, it is not a rosy way. People suggest me to try ROS/actionlib

lanyusea commented 8 years ago

actionlib-ed in Octrober, forget to update it here.