Skip to content

Commit

Permalink
remove duplicated spinonce
Browse files Browse the repository at this point in the history
  • Loading branch information
jihoonl committed Sep 16, 2014
1 parent 670acf5 commit 21aa996
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kobuki_gazebo_plugins/src/gazebo_ros_kobuki.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ void GazeboRosKobuki::OnUpdate()

void GazeboRosKobuki::spin()
{
ros::Rate r(10);
while(ros::ok() && !shutdown_requested_)
{
ros::spinOnce();
r.sleep();
}
}

Expand Down

1 comment on commit 21aa996

@bit-pirate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned before, I have the feeling this spin function is not needed at all. I created a separate issue for this: #36

Please sign in to comment.