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

Gazebo bug with stretch #101

Open
NateWright opened this issue May 25, 2023 · 11 comments
Open

Gazebo bug with stretch #101

NateWright opened this issue May 25, 2023 · 11 comments

Comments

@NateWright
Copy link
Contributor

When nothing is happening in the simulation stretch will drift off and spin a little in simulation. This is noticeable in a short period of time and even more so when gazebo is left open for longer when you are testing code periodically.
I am using dev/noetic branch.
Time 0 min:
time0
Time 5 min:
time5

Eventually the robot will be facing up against the wall and driving into it.

@hello-binit
Copy link
Contributor

Hi @NateWright, thanks for reporting this. I wonder if the drifting is similar to this issue about the Kobuki diff drive robot: https://answers.gazebosim.org//question/25794/idle-robot-drifts-due-to-tilted-inertia/

The URDF of Stretch loaded into Gazebo has a fixed joint for the caster wheel. It's possible that making it a continuous joint with friction would help with this issue.

@NateWright
Copy link
Contributor Author

NateWright commented Jun 5, 2023

@hello-binit I looked into it a bit and noticed that the caster wheel is built into the base_link.STL file and then there is another wheel attached to the robot in the same position. I am attaching a photo showing the gray wheel from the base_link file and a blue omni wheel colliding.
https://github.com/hello-robot/stretch_ros/blob/dev/noetic/stretch_description/meshes/base_link.STL
image
I wonder if removing the wheel from the stl file might fix this issue

@hello-binit
Copy link
Contributor

Definitely worth trying. I won't be near a desktop until next week, but you can try importing the mesh into Blender to erase the "fixed" caster wheel.

@cyb1212
Copy link

cyb1212 commented Feb 18, 2024

@NateWright I am facing the same problem. Do you solve it? Thank you.

@NateWright
Copy link
Contributor Author

@NateWright I am facing the same problem. Do you solve it? Thank you.

I messed with it for awhile, but I was unable to solve the issue

@cyb1212
Copy link

cyb1212 commented Feb 18, 2024

Thanks for your reply. I can just reset the model at each minute for meaningful measurement. @hello-binit Any other potential comment? The whole model is moving horizontally (not along the wheel direction), which is not the friction problem. I also removed one of the omni wheels and the model is still slipping.
Screenshot from 2024-02-18 15-35-15

Time 60s

Screenshot from 2024-02-18 15-33-14
Time 0s

Screenshot from 2024-02-18 15-35-26
rviz

@NateWright I am facing the same problem. Do you solve it? Thank you.

I messed with it for awhile, but I was unable to solve the issue

@mainakpal08
Copy link

I am facing the same issue. Any workaround ?

@cyb1212
Copy link

cyb1212 commented May 9, 2024

I changed the wheel control in stretch_gazebo_standard_gripper.urdf.xacro and the weight of the robot (make it heavy) to make the robot more stable. It is still slightly moving but if each step in your task is in 10 mins. It should be fine. Another supporting way is to use 'set_model_state' commend in gazebo before your observation.

Screenshot from 2024-05-09 10-32-47

I am facing the same issue. Any workaround ?

@mainakpal08
Copy link

I changed the wheel control in stretch_gazebo_standard_gripper.urdf.xacro and the weight of the robot (make it heavy) to make the robot more stable. It is still slightly moving but if each step in your task is in 10 mins. It should be fine. Another supporting way is to use 'set_model_state' commend in gazebo before your observation.

Screenshot from 2024-05-09 10-32-47

I am facing the same issue. Any workaround ?

Thanks @cyb1212 , it worked!

@tester23x
Copy link

I changed the wheel control in stretch_gazebo_standard_gripper.urdf.xacro and the weight of the robot (make it heavy) to make the robot more stable. It is still slightly moving but if each step in your task is in 10 mins. It should be fine. Another supporting way is to use 'set_model_state' commend in gazebo before your observation.

Screenshot from 2024-05-09 10-32-47

I am facing the same issue. Any workaround ?

@cyb1212 I have tried to change the weight of link_righ and left wheel mu2 value="2000.0". But still have this issue. This is really should not be the case at all. Please can the developer @hello-binit please resolve this important issue asap, as of now we cannot use stretch robot simulation for many things. Thank you.

@hello-binit
Copy link
Contributor

@tester23x, could you help me reproduce this? You're using the latest commit and launching with roslaunch stretch_gazebo gazebo.launch? What behavior do you see? How long does it take for the issue to occur? Could you send a video of the issue you're seeing?

Technically, this repo is in maintenance mode, and we're recommending people switch to using Stretch Mujoco, which is a higher fidelity Mujoco simulation of Stretch. But I understand you may need functionality that only this repo can provide; I'll try to help when you've sent me your info for reproducing the issue.

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

5 participants