ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
2018-10-14 20:23:49 -0500 | received badge | ● Notable Question (source) |
2018-10-14 20:23:49 -0500 | received badge | ● Popular Question (source) |
2016-07-06 16:17:00 -0500 | received badge | ● Enthusiast |
2016-05-13 17:17:03 -0500 | asked a question | set_model_state not working properly in turtlebot simulation I'm trying to make a box moving in the turtlebot simulation (for turtlebot to follow) using "set_model_state" service. However it is behaving weirdly. It only update the position every 1~2 seconds but I'm sending the new position at 20Hz. I experimented with different rates but got similar response. This only happened when I run the turtlebot_gazebo simulation. If I just run gazebo without turtlebot, it worked fine. I'm using ROS indigo with ubuntu 14.04, and gazebo 2. I made a python script to call the set_model_state service. I also tried to publish to the /gazebo/set_model_state topic and got the same response. Any idea why this happened and how to solve it? Thanks! |