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 transmission_hw_interface to UR xacro and expose everywhere #392

Conversation

miguelprada
Copy link
Member

Adds the capability to select the hardware interface used in the <transmission> elements in the URDF model. This allows creating custom simulation setups with different hardware interfaces, e.g. hardware_interface/VelocityJointInterface.

One thing I'm not very happy about is repeating the default value in so many places, but I cannot see a way around this to maintain backwards compatibility for users that use the different bits in this repo: e.g. users of the default ur10_robot.urdf.xacro vs users that compose other models using the macro itself.

There's also some whitespace changes. Let me know if you prefer I maintain the original lines.

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.

Thanks 👍
Tested for the 3 models on simulation, working as expected!

@ipa-nhg
Copy link
Member

ipa-nhg commented Feb 7, 2019

For me looks good, not optimal but you have to define hierarchically a default value for the parameter. Otherwise, as you already pointed, this will be an issue when you try to compose models.

About the indentation spaces I honestly don't have a clear preference.

@gavanderhoorn
Copy link
Member

For me looks good, not optimal but you have to define hierarchically a default value for the parameter. Otherwise, as you already pointed, this will be an issue when you try to compose models.

xacro supports default parameters and importing parameters from parent scopes (wiki/xacro - Default parameters). Might be something to see whether that could help here.

@gavanderhoorn gavanderhoorn merged commit 8702788 into ros-industrial:kinetic-devel Apr 5, 2019
@gavanderhoorn
Copy link
Member

Thanks @miguelprada.

v4hn pushed a commit to TAMS-Group/tams_ur5_setup that referenced this pull request Apr 12, 2019
according to the upstream update, ros-industrial/universal_robot#392
We need to update our ur5 xacro file to pass hw_interface as hardware_interface/PositionJointInterface
so the launch file can also be updated for setting hw_interface
ipa-nhg pushed a commit to ipa-nhg/universal_robot that referenced this pull request Jul 2, 2019
ipa-nhg pushed a commit to ipa-nhg/universal_robot that referenced this pull request Jul 2, 2019
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

3 participants