ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
To clearly answer your question and remove any doubt :
Why is a rospy.spinOnce() not required ?
spinOnce
in rospy
. The first answer on this question provides interesting links.But in fact callbacks do seem to be happening
rospy
. roscpp
and rospy
ARE NOT THE SAME. When it comes to callbacks, with roscpp
you need to use spin()
or spinOnce()
to process the events. Withrospy
you don't need it because when you create a subscriber it gets its own thread. In python when must spin() used ?
and when is spinOnce() used?
2 | No.2 Revision |
To clearly answer your question and remove any doubt :
Why is a rospy.spinOnce() not required ?
spinOnce
in rospy
. The first answer on this question provides interesting links.But in fact callbacks do seem to be happening
rospy
. roscpp
and rospy
ARE NOT THE SAME. When it comes to callbacks, with roscpp
you need to use spin()
or spinOnce()
to process the events. Withrospy
you don't need it because when you create a subscriber it gets its own thread. In python when must spin() used ?
and when is spinOnce() used?
3 | No.3 Revision |
To clearly answer your question and remove any doubt :
Why is a rospy.spinOnce() not required ?
spinOnce
in rospy
. The first answer on this question provides interesting links.But in fact callbacks do seem to be happening
rospy
. roscpp
and rospy
ARE NOT THE SAME. When it comes to callbacks, with roscpp
you need to use spin()
or spinOnce()
to process the events. Withrospy
you don't need it because when you create a subscriber it gets its own thread. In python when must spin() used ?
and when is spinOnce() used?
4 | No.4 Revision |
To clearly answer your question and remove any doubt :
Why is a rospy.spinOnce() not required ?
spinOnce
in rospy
. The first answer on this question provides interesting links.But in fact callbacks do seem to be happening
rospy
. roscpp
and rospy
roscpp
you need to use spin()
or spinOnce()
to process the events. Withrospy
you don't need it because when you create a subscriber it gets its own thread. In python when must spin() used ?
and when is spinOnce() used?