Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
squizz617 opened this issue Sep 1, 2021 · 1 comment

Comments

@squizz617
Copy link

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 squizz617 changed the title Inconsistent torque setting in gazebo simulation Discrepancy between the movement of Gazebo simulation and physical turtlebot Sep 1, 2021
@squizz617 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
@ROBOTIS-Ashe
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants