turtlebot3_simulations icon indicating copy to clipboard operation
turtlebot3_simulations copied to clipboard

Discrepancy between the movement of Gazebo simulation and that of physical Turtlebot

Open squizz617 opened this issue 2 years ago • 1 comments

Hi. When given the same Twist message via /cmd_vel topic, the actual robot and the gazebo simulation show considerable discrepancy in their movements. Would you take a look at my analysis below and share some thoughts?

  1. One of the straightforward reasons seem to be the max_wheel_torque parameter being set to 20 in the SDF model, which is way larger than the actual operating torque of the Dynamixel motors. The same applies to the Waffle. Because of this, the simulated turtlebot acc/decelerates at a much faster rate than physically possible.

  2. Another source of discrepancy comes from the fact that gazebo simulation relies entirely on the gazebo_ros_diff_drive plugin for moving the turtlebot, and the plugin is agnostic of the maximum velocity settings of the physical motors. So if the Twist message sets the target velocity to something greater than the physical maximum (e.g., linear velocity > 0.22), the simulation keeps accelerating towards that target. I've looked into the code to see if the linear/angular velocity can be gracefully capped within the plugin, but could't find any.

squizz617 avatar Sep 01 '21 02:09 squizz617

Hi @squizz617. Thanks for your interest in TurtleBot3 and sorry for the late reply. We will check the issue and reply to you. thank you for your patience

ROBOTIS-Ashe avatar Nov 17 '21 09:11 ROBOTIS-Ashe