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

Add convenience macros for description files #562

Merged

Conversation

fmauch
Copy link
Contributor

@fmauch fmauch commented Jan 22, 2021

Originally started by @gavanderhoorn this PR aims at providing direct xacro macros for each robot model.

This way, users can easily embed a UR robot into their own robot descriptions without the necessity of providing all xacro arguments, as default values for the respective models are already set.

I mainly open this PR, as I'd like to base #538 on top of those changes. @gavanderhoorn I hope you don't mind hijacking your efforts here.

gavanderhoorn and others added 3 commits January 22, 2021 17:26
These avoid users having to provide values for *all* arguments of the 'ur_robot' macro.

In many cases, users will want to keep the default files for the joint limits, physical and visual parameters, and only override the default kinematics (to use extracted calibration fi).
With the provided wrapper macros, this is possible, as variant-specific defaults are provided for all arguments, requiring only to override the required ones.

Users looking to include a UR into a larger scene or composite xacro macro should 'xacro:include' these '_macro.xacro' files.

The top-levels are only useful when loading a stand-alone UR in an otherwise empty scene. They do not allow access to any arguments and only use the defaults.
Copy link
Member

@ipa-nhg ipa-nhg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested all the URDF models, spawning all of them on simulation, visualizing the tf trees on RVIZ and moving all the joints to their limits with the joint trajectory controller.

LGTM 👍🏽
Thanks a lot @fmauch

@fmauch fmauch mentioned this pull request Mar 17, 2021
@fmauch
Copy link
Contributor Author

fmauch commented Mar 24, 2021

Sorry for bothering, but is anything holding this back?

fmauch referenced this pull request in UniversalRobots/Universal_Robots_ROS_Driver May 3, 2021
@lianghongzhuo
Copy link

Since this pull request has been approved by a reviewer, can anyone have merge permission merge this one?

@ljden
Copy link
Contributor

ljden commented May 13, 2021

Bump

@dhled
Copy link

dhled commented May 20, 2021

Also approving :)

@ipa-nhg
Copy link
Member

ipa-nhg commented May 27, 2021

ping @gavanderhoorn , could you please check the changes proposed here and merge the PR? I have already tested and approved it.

@ljden
Copy link
Contributor

ljden commented Jul 10, 2021

Is there any particular reason this isn't merged?

@lianghongzhuo
Copy link

Please merge this

1 similar comment
@lianghongzhuo
Copy link

Please merge this

Copy link
Member

@gavanderhoorn gavanderhoorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a mess, but that's not @fmauch's fault.

Let's at least resolve the situation where we have nothing.

@gavanderhoorn gavanderhoorn merged commit 81a542b into ros-industrial:melodic-devel-staging Sep 28, 2021
@fmauch fmauch deleted the convenience_macros branch September 28, 2021 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants