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

[Bug]: Locobot wx200 with create3 base is drifting in Gazebo #46

Open
goelshivam1210 opened this issue Jul 5, 2023 · 3 comments
Open
Assignees
Labels
bug Something isn't working rovers Issues related to rovers

Comments

@goelshivam1210
Copy link

goelshivam1210 commented Jul 5, 2023

What happened?

The locobot's navigation stack works well on the real robot. However, in simulation, we have two issues:

  • When the robot moves forward, it drifts to the left.
  • When the robot is at rest, it's slowly rotating.
    We have checked the cmd_vel rostopic and confirmed that the velocity published is all zero when it's at rest. Thus, we suspect that maybe there is some issue in the gazebo file or the urdf? We're wondering if there's anything we can tune to solve this problem. Thanks!

Robot Model

locobot_wx200 with create3 base

Operating System

Ubuntu 20.04

ROS Distro

ROS 1 Noetic

Steps To Reproduce

Drifting to the Left:

We used the most bare-bone xslocobot_gazebo.launch file and can confirm the issue still exists. We ran the launch file by using this command:

roslaunch interbotix_xslocobot_gazebo xslocobot_gazebo.launch robot_model:=locobot_wx250s show_lidar:=true use_trajectory_controllers:=true

Then we started the simulation, and sent velocity to the /locobot/cmd_vel rostopic using this teleop script.

Rotating when at rest:

We used the official move_it launch file[2] that combined the move group and the navigation stack. We ran the following command:

roslaunch interbotix_xslocobot_moveit_interface xslocobot_moveit_interface.launch robot_model:=locobot_wx200 show_lidar:=true use_gazebo:=true use_cpp_interface:=true

We opened rviz and retracted the arm into the sleep position. Then we wait maybe 30 seconds, and the simulated robot started drifting by itself.

Relevant log output

No response

Additional Info

No response

@goelshivam1210 goelshivam1210 added bug Something isn't working rovers Issues related to rovers labels Jul 5, 2023
@stephenadhi
Copy link

Hi,

I also have this exact same problem in ROS2 using the kobuki base, even though it's working seamlessly in real life. Robot drifting at rest without any command velocity.
image

@goelshivam1210
Copy link
Author

@stephenadhi Can you try the create3 base in ROS2? I could not get to fix the drifting of create3 base in ROS. However when the arm is in the home position, it stops drifting.

@stephenadhi
Copy link

The ROS2 for create3 doesn't work properly. I suspect this idle drift problem comes from the inertia values. https://answers.gazebosim.org//question/25794/idle-robot-drifts-due-to-tilted-inertia/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rovers Issues related to rovers
Projects
None yet
Development

No branches or pull requests

3 participants