ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ros::ok() and ros::isShutingDown() and thread

asked 2022-07-07 09:58:32 -0500

farhad-bat gravatar image

updated 2022-07-07 10:18:15 -0500

I used ros::ok and ros::isShuttingDown inside a thread to find out if the user closed roscore in the terminal by pressing Cnrl+C. However, when I do that, the values of those to function do not change, and threads keep running.

for more detail please see the question on StackOverflow:

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-07-07 11:21:07 -0500

farhad-bat gravatar image

I found the solution. You can see it on StackOverflow:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2022-07-07 09:58:32 -0500

Seen: 96 times

Last updated: Jul 07 '22