# What is rospy.spin(), ros::spin(), ros::spinOnce(), and what are they for?

**URL:** <https://get-help.theconstruct.ai/t/what-is-rospy-spin-ros-spin-ros-spinonce-and-what-are-they-for/58>\
**Category:** Knowledgebase\
**Tags:** rospy, roscpp\
**Created:** [July 18, 2019, 2:57pm UTC](https://get-help.theconstruct.ai/t/what-is-rospy-spin-ros-spin-ros-spinonce-and-what-are-they-for/58 "2019-07-18T14:57:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [January 25, 2023, 10:28am UTC](https://get-help.theconstruct.ai/t/what-is-rospy-spin-ros-spin-ros-spinonce-and-what-are-they-for/58/2 "2023-01-25T10:28:23Z")

</div>



---

_[View the full topic](https://get-help.theconstruct.ai/t/what-is-rospy-spin-ros-spin-ros-spinonce-and-what-are-they-for/58)._
