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

Multiple mechanisms in one simulation #75

Open
MrstupidJ opened this issue Feb 8, 2023 · 3 comments
Open

Multiple mechanisms in one simulation #75

MrstupidJ opened this issue Feb 8, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@MrstupidJ
Copy link

Hi,

Just wonder if it is possible to have multiple mechanisms in one simulation so that we can simulate multiple robots or some simple tasks like pick up and place items. A short example would be much appreciated, thanks for your help!

Cheers!

@janbruedigam
Copy link
Member

You can manually create a single Mechanism with multiple sub-mechanisms simply by connecting all of them to the same origin. Parsing of multiple URDF files at once is currently not supported, but would be a nice feature that shouldn't be too difficult to implement. Feel free to create a pull request.
Manually you would parse the URDF files individually, and replace the joints connecting each mechanism to their origin with the same joint type to a single origin.

@janbruedigam janbruedigam added the enhancement New feature or request label Apr 12, 2023
@Kevin-ZhangClutchit
Copy link

Hi @janbruedigam , thanks for the hints provided here. But may I ask what do you means by "connecting" here, suppose I use the panda mechanism and cartpole mechanism, do I just add all the cartpole parts to the end of the panda body,joints,contacts vector while setting the origin as the same of panda?

@janbruedigam
Copy link
Member

Yes, that should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants