ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

The difference between Spin() and SpinOnce().

asked 2014-08-01 12:51:34 -0500

Winston gravatar image

updated 2014-08-05 10:43:58 -0500

Can someone tell me the difference between Spin() and SpinOnce()? And what exactly they are doing, is it like a while loop to process some ROS stuff?

edit retag flag offensive close merge delete


Thank you Stefan and tfoote.

Winston gravatar image Winston  ( 2014-08-01 16:52:42 -0500 )edit

Next time try to ask your whole question in the title of the question, it will be shorter

Moda gravatar image Moda  ( 2014-08-04 09:10:18 -0500 )edit

Ok. Thanks.

Winston gravatar image Winston  ( 2014-08-04 12:17:08 -0500 )edit

It was a joke!!

Moda gravatar image Moda  ( 2014-08-05 02:12:34 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-08-01 15:37:30 -0500

tfoote gravatar image

This is covered in the ROS Overview in the Callbacks and Spinning section.

edit flag offensive delete link more

answered 2014-08-01 14:54:26 -0500

Both calls trigger the processing of callbacks. Chapter 3 of the new A gentle Introduction to ROS book does a good job at explaining this.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-08-01 12:51:34 -0500

Seen: 13,585 times

Last updated: Aug 05 '14