From 21aa9962c19bf4f53c84023d89bdb22a76fd1f3b Mon Sep 17 00:00:00 2001 From: Jihoon Lee Date: Tue, 16 Sep 2014 13:14:50 +0900 Subject: [PATCH] remove duplicated spinonce --- kobuki_gazebo_plugins/src/gazebo_ros_kobuki.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kobuki_gazebo_plugins/src/gazebo_ros_kobuki.cpp b/kobuki_gazebo_plugins/src/gazebo_ros_kobuki.cpp index 8f8538c..6198dfb 100644 --- a/kobuki_gazebo_plugins/src/gazebo_ros_kobuki.cpp +++ b/kobuki_gazebo_plugins/src/gazebo_ros_kobuki.cpp @@ -109,9 +109,10 @@ void GazeboRosKobuki::OnUpdate() void GazeboRosKobuki::spin() { + ros::Rate r(10); while(ros::ok() && !shutdown_requested_) { - ros::spinOnce(); + r.sleep(); } }