-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Parser should provide the option of adding to an existing model instance #10598
Comments
Every issue needs an assignee and I'm assigning it to @amcastro-tri for now. Please feel free to pass it to other people if needed. |
It'd be nice seeing some example pseudo code for this @rcory. I still don't quite see what problem we are trying to solve. How do you currently work around this? I thought with @edrumwri's recent features you can do this?
|
To respond to just one of your questions here, Alejandro:
SDF files can already consist of islands of bodies and those are currently built into a single model instance. What's wrong with querying MBP for relevant bodies via their link names and then welding them together? |
In general, I'm reporting this from the point of view of user workflow flexibility. There are ways to achieve the same result (e.g., combining things in a single Let's say I have an arm and a gripper, created by parsing in two separate files (which produces two model instances within MBP). It would be nice to be able to tell MBP that the arm and gripper should be treated as a single model instance (and hence treated as a single model by my controller). To answer your other questions:
That's a good point. This can probably be debated, but I'd be happy if the model instance was brought in as a floating base (as is already done by
Seems like a reasonable idea.
I suppose one could implement something like this, but it just seems conceptually messier to me than say, having models grouped in the correct model instance to begin with. |
For the record, using SDFormat's recently-added |
@rcory, could you confirm that the SDF |
I will claim that model composition via SDFormat (include, nesting, etc.), and/or model directives are adequate work-arounds. Having no response from the original plaintiff for nearly a month, closing. |
Currently, our parser provides
Parser::AddModelFromFile
, which forces the creation of a new model instance on every parse. However, a user may also want the ability to create a single composite model (i.e., contained in a single model instance), by parsing in multiplesdf
files (e.g., for controlling an arm/gripper composite model using a single inverse dynamics controller).Having something like
Parser::AddModelFromFileToInstance(file_name, instance_id)
would help serve this purpose.Related to #10546
The text was updated successfully, but these errors were encountered: