You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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.
The text was updated successfully, but these errors were encountered:
squizz617
changed the title
Inconsistent torque setting in gazebo simulation
Discrepancy between the movement of Gazebo simulation and physical turtlebot
Sep 1, 2021
squizz617
changed the title
Discrepancy between the movement of Gazebo simulation and physical turtlebot
Discrepancy between the movement of Gazebo simulation and that of physical Turtlebot
Sep 1, 2021
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
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?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.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.The text was updated successfully, but these errors were encountered: