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

Model with zero DOFs welded with kFixed breaks #5154

Closed
agalbachicar opened this issue Feb 13, 2017 · 3 comments
Closed

Model with zero DOFs welded with kFixed breaks #5154

agalbachicar opened this issue Feb 13, 2017 · 3 comments

Comments

@agalbachicar
Copy link
Contributor

I'm trying to load a simple box model through an SDF and visualize it. This simulation has zero degrees of freedom because I just want to load the model with a visualization purpose.

In case I load the SDF file with multibody::joints::kFixed the program ends up with a segmentation fault. This problem is solved by calling drake::parsers::sdf::AddModelInstancesFromSdfFile with multibody::joints::kQuaternion.

Here you can see the gdb backtrace when using multibody::joints::kFixed. And in this link you can see a sample project that reproduces the situation.

@sherm1
Copy link
Member

sherm1 commented Feb 13, 2017

Thanks for reporting this, @agalbachicar and providing such good information. It looks like a problem dealing with the resulting 0-length state vector. We are reworking our multibody code at the moment so probably won't fix this in the old code but will make sure it works in the new code. We would also be very glad to accept a pull request that fixes the current code!

@amcastro-tri, assigning to you for tracking in MultibodyTree.

@jwnimmer-tri
Copy link
Collaborator

It will be some common, when using PoseAggregator in automotive, for the fixed scene (world geometry) to come in via SDF (RBT) and all of the moving joints to come in as Systems that don't use RigidBodyPlant. If and when that happens, I will bump the priority of this accordingly.

@jwnimmer-tri
Copy link
Collaborator

Closing as "won't fix" because this is about the old RigidBodyTree APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants