gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.19k stars 480 forks source link

Error when spawing a revolute joint with bullet #1270

Open osrf-migration opened 10 years ago

osrf-migration commented 10 years ago

Original report (archived issue) by Silvio Traversaro (Bitbucket: traversaro).

The original report had attachments: bullet_errors_thor_mang.txt


In Gazebo from default branch (but the same issue is present also in Gazebo 4.0 I guess) a bunch of error are printed when spawning a model with revolute joints with bullet.

To reproduce, launch gazebo with bullet:

gazebo -e bullet --verbose

And try to load the "Double pendulum with base" model, you will get this errors:

[Err] [BulletHingeJoint.cc:345] Joint must be created before getting low stop
[Err] [BulletHingeJoint.cc:333] Joint must be created before getting high stop
[Err] [BulletHingeJoint.cc:345] Joint must be created before getting low stop
[Err] [BulletHingeJoint.cc:333] Joint must be created before getting high stop
[Err] [BulletHingeJoint.cc:299] bulletHinge not yet created.
[Err] [BulletHingeJoint.cc:320] bulletHinge not yet created.
[Err] [BulletHingeJoint.cc:299] bulletHinge not yet created.
[Err] [BulletHingeJoint.cc:299] bulletHinge not yet created.
[Err] [BulletHingeJoint.cc:320] bulletHinge not yet created.
[Err] [BulletHingeJoint.cc:299] bulletHinge not yet created.

Regarding the error in lines 299 and 320 it appears that the bulletHinge object is not valid when the Joint::Init() method is called. I don't know if this issue actually causes problems later, but I am investigating some problems [1] [2] that we are experiencing with bullet hinge joints, and perhaps it is related to them.

[1] : https://github.com/robotology/gazebo-yarp-plugins/issues/127

[2] : https://github.com/robotology/gazebo-yarp-plugins/issues/128

osrf-migration commented 10 years ago

Original comment by Silvio Traversaro (Bitbucket: traversaro).


osrf-migration commented 10 years ago

Original comment by Silvio Traversaro (Bitbucket: traversaro).


osrf-migration commented 9 years ago

Original comment by Stefan Kohlbrecher (Bitbucket: Stefan_Kohlbrecher).


I observe the same issue when spawning a robot model on my 14.04/AMD64/Indigo machine with gazebo6 installed from .debs. Note gazebo has to be started with the --verbose option for the error messages to be visible.

osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


osrf-migration commented 7 years ago

Original comment by Brannon King (Bitbucket: brannonking).


Output from mine:

[Err] [BulletHingeJoint.cc:356] Joint must be created before getting low stop
[Err] [BulletHingeJoint.cc:345] Joint must be created before getting upper limit
[Err] [BulletHingeJoint.cc:442] Joint must be created before getting friction
[Err] [BulletHingeJoint.cc:315] bulletHinge not yet created.
[Err] [BulletHingeJoint.cc:334] bulletHinge not yet created.
osrf-migration commented 7 years ago

Original comment by Hamza Merzić (Bitbucket: hamzaethz).


I am also getting the errors on Gazebo 8 deb and Gazebo latest built from source. Any updates on this?

osrf-migration commented 6 years ago

Original comment by Adrian Bauer (Bitbucket: adriculteur).


I also still get the error with gazebo 9.0.0. I am very surprised both by the fact that there is nothing new on this topic and that only few people seem to be interested in this. Are only few people using gazebo with bullet or does this problem only occur in specific settings (i.e. with certain versions of bullet etc.), so most users are not affected?

osrf-migration commented 6 years ago

Original comment by Silvio Traversaro (Bitbucket: traversaro).


I am not sure, but if I remember correctly even if this errors are printed, the revolute joint works fine.

Given that I think most users run gazebo without the --verbose flag, I think that is the reason why a few people commented on this issue.

osrf-migration commented 6 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


In pull request #2866, we limited several of these console messages to only print one time per simulation. We should figure out how to get rid of them entirely, but I haven't figured out the right way to do that.

osrf-migration commented 6 years ago

Original comment by Jack Liu (Bitbucket: jacknlliu).


Issue #2503 was marked as a duplicate of this issue.