-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix overlapping variable names between robot definition files #356
Fix overlapping variable names between robot definition files #356
Conversation
Uploading a different UR definition used to break the previous definition files by overwriting their link lengths. This commit makes the property names for each robot unique so they are independent of the other robot models.
Thanks for the PR. This is indeed an issue. Instead of renaming all the properties, would moving their declarations down a bit so they are inside the According to wiki/xacro - Local properties:
|
One possible suggestion too is to namespace each robot. Either way this would be a great PR! |
@atomoclast: moving the declarations into the macro def should automatically achieve this. The |
This is the cleaner solution for what the previous commit was meant to solve
I agree, that's the cleaner way. I updated the PR accordingly and took the liberty to remove the prefix from the kinematic parameters, too. I confirmed that it works in our simulation. |
Tested on simulation. |
Reviewed and accepted |
Accepting and merging this will break any urdfs that are currently directly using any of the As the constants are 'almost' internal constants, I don't expect that to have happened to often, but we can still be clear about it. For future readers: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving based on reviews by @ipa-led and @ipa-jfh.
…dustrial#356) Squashed commits: * Fix overlapping properties between robot definitions Uploading a different UR definition used to break the previous definition files by overwriting their link lengths. This commit makes the property names for each robot unique so they are independent of the other robot models. * Move robot-specific parameters inside macro This is the cleaner solution for what the previous commit was meant to solve
…dustrial#356) Squashed commits: * Fix overlapping properties between robot definitions Uploading a different UR definition used to break the previous definition files by overwriting their link lengths. This commit makes the property names for each robot unique so they are independent of the other robot models. * Move robot-specific parameters inside macro This is the cleaner solution for what the previous commit was meant to solve
…dustrial#356) Squashed commits: * Fix overlapping properties between robot definitions Uploading a different UR definition used to break the previous definition files by overwriting their link lengths. This commit makes the property names for each robot unique so they are independent of the other robot models. * Move robot-specific parameters inside macro This is the cleaner solution for what the previous commit was meant to solve
…dustrial#356) Squashed commits: * Fix overlapping properties between robot definitions Uploading a different UR definition used to break the previous definition files by overwriting their link lengths. This commit makes the property names for each robot unique so they are independent of the other robot models. * Move robot-specific parameters inside macro This is the cleaner solution for what the previous commit was meant to solve
Uploading multiple different UR definitions currently breaks the previous robot definitions by overwriting their link lengths and other parameters. This commit makes the property names for each robot model unique so they are independent of the others.
See the before and after pictures in Gazebo below. The UR5 was the last model to be loaded in the scene definition, so the link lengths of the UR3 have become too long, and those of the UR10 too short.
I don't think this change affects anything outside of these files and I have had no problems using it in our own development.