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

(Sim) Very strange movement for /omni_base_controller/command_velocity topic #10

Open
y-masutani opened this issue Mar 4, 2024 · 3 comments

Comments

@y-masutani
Copy link

y-masutani commented Mar 4, 2024

HSR in Gazebo for /omni_base_controller/command_velocity topic is very strange.

To clarify the issue, after launching the simulation, I ran the following command on another terminal in case of linear.x = 1.0.

ros2 topic pub -r 10 -t 50 /omni_base_controller/command_velocity geometry_msgs/msg/Twist "{linear: {x: 1.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0 , z: 0.0}}"

Result:

  • linear.x = 1.0 : moves forward (normal?)
  • linear.x = -1.0: moves backward and then turn
  • linear.y = 1.0 : turns left backward 90 degrees, then moves sideways
  • angular.z = 1.0: No movement at all

See screencast for linear.y = 1.0.
https://drive.google.com/file/d/1-8tSIVygn3Aq7K3vI5kEcAj2Co07CGmu/view?usp=sharing

Screenshot from 2024-03-04 16-52-21

How can I solve this problem?
Has anyone else encountered this problem?

@y-masutani
Copy link
Author

After that, the action communication /omni_base_controller/follow_joint_trajectory was also investigated, with similar results. Moreover, I confirmed that odometry /omni_base_controller/wheel_odom was at the expected value.

See the windows of Gazebo and RViz (odometry) during the action communication.
https://drive.google.com/file/d/1__IjnBgEoyqWRvjeIb3HsUSPJcFwTESI/view?usp=sharing

@y-masutani
Copy link
Author

I found that the wheels and the floor are slipping in Gazebo.

When Twist.angular.z command is given, base_roll_link rotates with respect to base_link, but base_link does not rotate at all with respect to the floor because the wheels and the floor are slipping.

Watch the screencast to see how it works. It is displayed in wireframe for clarity.

Screencast

Screenshot from 2024-03-10 16-31-03

Does this phenomenon reproduce in your environment?
How can we solve this problem?

@y-masutani
Copy link
Author

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

1 participant