Skip to content

Commit abb9f1a

Browse files
authored
Add comment about the importance of AsyncSpinner (#565)
* Add comment about the importance of AsyncSpinner
1 parent 71ecd2d commit abb9f1a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

doc/move_group_interface/src/move_group_interface_tutorial.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ int main(int argc, char** argv)
4949
{
5050
ros::init(argc, argv, "move_group_interface_tutorial");
5151
ros::NodeHandle node_handle;
52+
53+
// ROS spinning must be running for the MoveGroupInterface to get information
54+
// about the robot's state. One way to do this is to start an AsyncSpinner
55+
// beforehand.
5256
ros::AsyncSpinner spinner(1);
5357
spinner.start();
5458

0 commit comments

Comments
 (0)