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

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

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

amrivera gravatar image

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

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")
     face_track_system()

Any ideas?

edit retag flag offensive close merge delete

Comments

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 -0500 )edit
1

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

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

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

Stats

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

Seen: 1,382 times

Last updated: Apr 08 '13