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

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

Comments

Thank you Stefan and tfoote.

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

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
1

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
6

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
8

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

Question Tools

1 follower

Stats

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

Seen: 14,158 times

Last updated: Aug 05 '14