How to pause and Restart a subscriber? [closed]

asked 2020-02-25 17:33:27 -0600

adheeshenoy gravatar image

updated 2020-02-27 15:18:05 -0600

Hello Everyone,

I am new to ROS and was wondering if there is a way to initialize a subscriber, spin it once, pause it and then spin it again?

I am using python and I could not find any material to help me out with this.

edit:
I wish to run the subscriber once. Get information regarding the model states. Stop the subcriber. Reset the simulation and run the subscriber again.

Thank you for the help.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2020-02-27 15:41:55.253216

Comments

To avoid an xy-problem, please provide some background info to explain why you are looking to do this.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-26 02:04:58 -0600 )edit

After your edit, I believe this is a duplicate of a nr of Q&As we already have here on ROS Answers.

See #q222029, #q270298 and #q292582 for instance.

As such, I'm going to close this question.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-27 15:41:50 -0600 )edit