Parts are rotating with no input
Hello, a team and I are attempting to build a 3-wheel holonomic drive robot in a small form factor and we are having trouble implementing our design in Gazebo. I followed a YT tutorial to convert our design in solidworks to a URDF and it seems to work fine, but once in Gazebo, the rims and rollers both rotate arbitrarily with no input. I've attached a video showing this. Does anyone know why this happens and how to make it stop?
Another thing we noticed is that the inertia values for both the rims and rollers all seem to be substantially lower than they should be (like 1000x+ off). Is this common? How could we fix this too without doing all the calculations manually and overriding them?
EDIT: I don't have 5 karma so I can't upload any files but would still appreciate any possible insight.
Asked by aidandelli on 2023-01-22 12:50:20 UTC
Answers
Based on the video - it looks like it could be a jittering (based on this) - others pointed out that incorrect inertial values could be the reason.
Can you try to remove model parts one by one and check if the model stays in place after it?
I don't know the SolidWorks software, but usually there is an option to choose the material and get inertial values directly from it.
If this is not possible, maybe you could do a rough estimation of it based on the cylinders containing each part? It must be done by hand, I am afraid. You could probably try to use this SDF Builder to calculate simpler basic shapes (box/cylinder/sphere).
Asked by ljaniec on 2023-01-23 22:10:13 UTC
Comments
The problem is in your urdf , .gazebo file , try and change the
Asked by Davies Ogunsina on 2023-02-06 02:49:25 UTC
Comments
I upvoted your question, it gave you +10 karma, please add your file. My first thought is a gravity force on the robot. What plugins do you use in the robot model?
Asked by ljaniec on 2023-01-22 20:59:30 UTC
I've tried linking the video like 10x and compressing it and cutting it to be smaller but it still won't upload. Any idea why this is happening or is it just because my account is so new? Here is a link to it to watch online: https://clipchamp.com/watch/4irvim73rKY
In Gazebo, we are in an empty world and only using ros2_control plugin.
Asked by aidandelli on 2023-01-23 09:25:26 UTC
I never tried to upload a video here, I only saw links to a YouTube or Vimeo etc. Maybe you could add a few screens instead? For people checking this answer on the phone etc. Maybe someone could tell more about it.
Asked by ljaniec on 2023-01-23 22:01:52 UTC
I linked the vid in the comment above (Clipchamp) so you can see it rotating.
Asked by aidandelli on 2023-01-24 11:19:21 UTC
1000x off sounds like a units mismatch. Check the units in the SW URDF exporter and in your SW file.
Asked by achille on 2023-01-24 17:48:57 UTC