Can I change the center of mass' position?
Hey there,
Sorry in advance, I know this is a gazebo question but I'm in a hurry and nobody has answered in Gazebo Answers to this question since the last week, I'll appreciate any help thanks. I've exported some meshes from Solid Works and in all of them the center of mass is not where it should be. The center of mass appears always on the corner. I'm quite sure it have to be a problem related to Solid Works, so I've been looking for how to change the center of mass' position in Gazebo but nothing I've found. Few days ago I applied a center of mass in a Solid Works part, then exported it again to Gazebo with the hope to see some changes but nothing, the center of mass continues being out of its logical point.
Thanks.
I would recommend fixing this problem in Solid Works. Calculating physical properties and exporting the SDF definitely does work. It sounds like you haven't set the material properties or generated the physical properties before your export.
You may change it dynamically by following the advice in here: https://answers.ros.org/question/2586...
PeteBlackerThe3rd, I've tried what you say. I applied aluminum material to a part, the center of mass is still making no sense. Actually, when I exported to STL some windows appeared saying that some properties hadn't been exported. Might be that, I'll try again
Wait a second, STL doesn't support physical properties. Are you not using the solidworks to URDF exporter?
I knew about that but then i don't know how to open or edit an urdf file in Gazebo
A URDF file is just a text file, you can edit it any text editor. The URDF in gazebo tutorial should cover everything you need.
Wow thanks, now I see it. However now I get another problem, I'll close this question and open another one.