How to pause and Restart a subscriber? [closed]
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.
To avoid an xy-problem, please provide some background info to explain why you are looking to do this.
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.