Gazebo | Ignition | Community
Ask Your Question

Hanson's profile - activity

2016-04-10 21:31:07 -0600 commented question Wrong direction of gravity

Hi debz. The two joined links (right upper arm and forearm) are very close in inertia. The shoulder, though, is almost an order of magnitude smaller, strangely if that is the cause it did not affect the left arm. For the iterations, currently I am using the default value (50), and increased it to 200 doesn't solve this. So I am not sure if 50 too low. But still it cannot explain why the problem only happened on right arm

2016-04-10 20:29:51 -0600 commented answer Wrong direction of gravity

You're absolutely right. Maybe I also made mistakes when I converted the realistic inertia to the new one. Well now I attached the original model file for "exploding" robot. But I am not very sure how to estimate damping and friction correctly so they may not be accurate.

2016-04-10 20:01:07 -0600 received badge  Famous Question (source)
2016-04-08 12:14:41 -0600 received badge  Notable Question (source)
2016-04-07 22:00:35 -0600 commented answer Wrong direction of gravity

Hi chapulina. In my simulation this workaround produces the same effect as set both damping and friction to 0. And even after doing so, the right arm still behaves differently. Instead of moving towards one direction, it now slightly "swings" from side to side as if it is a pendulum, not really like the normal left arm. And I think it is really necessary to be able to use damping and friction. But thanks for your answer anyway.

2016-04-07 21:23:42 -0600 commented answer Wrong direction of gravity

Hi Hsu, thanks for the suggestion. I change the inertia only because the real values are too small and whatever damping and friction I set (from 0 to several hundred) the robot just exploded all over the place. That's a different problem and is even worse than now. I have also tried all the answers to similar questions (robot explosion, dance, etc.) but nothing can help. Since the two problems are so different I don't think it is caused by proportionally larger inertia. But I do want to solve it

2016-04-07 21:10:09 -0600 received badge  Supporter (source)
2016-04-07 21:10:07 -0600 received badge  Scholar (source)
2016-04-07 12:34:22 -0600 received badge  Popular Question (source)
2016-04-07 11:16:50 -0600 commented question Wrong direction of gravity

Hi chapulina, thanks for the comment. I did inspected the joints and I also copied the settings of joints on the normal side, but this strange phenomenon still occurred. And I attached the sdf file. But probably it is not very helpful as I am not allowed to provide the model files.

2016-04-07 11:08:49 -0600 received badge  Editor (source)
2016-04-07 09:13:04 -0600 asked a question Wrong direction of gravity

So I built a human-like robot with some 3d models. It worked pretty well with the default inertial settings. But after I tried to simulate using real inertia parameters, following the tutorial, it just behave strangely (exploding, jittering, etc.). So at the end I have to pretend it is a robot one order of magnitude greater (so the mass and inertia tensor are much greater as well). The new inertia tensor pretty much solved my problems except for one new problem. When gravity is on, one of the arms just rotate by itself as the photo below shows:

When robot just spawned in the world


After a few second


If I turned off the gravity for this arm (for both upper arm and forearm, turning off one segment doesn't help) it will be alright. And I also tried to detach the arm from the shoulder (remove the joint), even on the ground it is moving by itself toward the same direction. I literally copied the setting of the normal arm and applied it on this problematic arm (changed the direction of course), no help. In the world sdf file I explicitly defined the gravity direction to be 0 0 -9.8, nothing changed. I adjusted the damping and friction of the shoulder and elbow joint from 0 to several thousand, still the same.

It seems like the gravity of this arm has a different direction and there is no way to fix it. Does anyone have any idea what could be the cause of the problem? Thanks a lot!

Edit: I attached the sdf file. But I am not sure if it helps, because I can't upload proprietary model files so it is hard to replicate the problem. But the model files for both arms are also identical except for the orientation so it should not be the cause of the problem. C:\fakepath\model.sdf

Edit2: I also attached the sdf file with real inertia. But the assumed damping and friction may not be very accurate. C:\fakepath\model real inertia.sdf