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

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: https://stackoverflow.com/questions/7...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
-1

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

farhad-bat gravatar image

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

https://stackoverflow.com/questions/7...

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 87 times

Last updated: Jul 07 '22