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

How to pause one node while a specific argument (rostopic) is active

asked 2013-04-08 06:08:57 -0600

amrivera gravatar image

updated 2013-04-08 11:02:18 -0600

joq gravatar image

Need suggestions to pause a face tracking system when a specific argument from another topic is active. The current code is written in python.

Example of what I want to do:

while (rostopic /robotsound/arg != "/home/user/workspace/audio/resources/good_audio.wav")

Any ideas?

edit retag flag offensive close merge delete


Please close this question, as I don't have sufficient permission. dornhege's idea worked. Thanks all

amrivera gravatar image amrivera  ( 2013-04-10 04:29:15 -0600 )edit

We don't need to close the question, you just need to accept his answer by clicking the check mark below.

joq gravatar image joq  ( 2013-04-10 04:46:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-04-08 08:01:24 -0600

dornhege gravatar image

Just subscribe the topic and set a flag to call face_track_system() in your code depending on that value.

edit flag offensive delete link more

Question Tools


Asked: 2013-04-08 06:08:57 -0600

Seen: 1,346 times

Last updated: Apr 08 '13