Interbotix / interbotix_ros_rovers

ROS Packages for Interbotix Rovers
BSD 3-Clause "New" or "Revised" License
31 stars 31 forks source link

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

Open goelshivam1210 opened 1 year ago

goelshivam1210 commented 1 year ago

What happened?

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

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

stephenadhi commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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/