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

suggestion: use args for ur_description #234

Open
ThomasTimm opened this issue Feb 19, 2016 · 6 comments
Open

suggestion: use args for ur_description #234

ThomasTimm opened this issue Feb 19, 2016 · 6 comments
Assignees
Milestone

Comments

@ThomasTimm
Copy link
Contributor

Right now we have two robot.urdf.xacro files for each robot; one with limited joint movements and another without.

As Xacro has support for arg (just like launch files), I think it would make more sense to just have one file, and then pass the limited arg from the launch file to the xacro file.

The same could be applied for the prefix tag, instead of ppl having to make a copy of the robot.urdf.xacro file if they are using two arm and thus needs to specify a prefix.

@ThomasTimm
Copy link
Contributor Author

The part concerning the prefix will only be possible once we move to jade, as proper conditional evaluation is needed.

@gavanderhoorn
Copy link
Member

Yeah. And that is exactly why the current implementation is as it is right now ..

@ThomasTimm
Copy link
Contributor Author

The issue is with handling empty strings; for some reason xacro is really bad at handling that. The 'limited' parameter will always be either true or false, so that can still be changed now.

Also, I guess ppl would make a new robot.urdf.xacro file anyway if they were using two arms - otherwise the two arms would be located on top of each other. So I guess the latter part about making the prefix tag an arguement is irrelevant.

@gavanderhoorn gavanderhoorn modified the milestone: untargeted Dec 30, 2016
@gavanderhoorn gavanderhoorn changed the title [Suggestion] use args for ur_description suggestion: use args for ur_description Dec 30, 2016
@gavanderhoorn
Copy link
Member

Related: #144.

Yaml with substitution args or even the new yaml support in xacro could be approaches to consider here.

Configuring the xacro macro from a yaml file completely would have my preference.

@dhled
Copy link

dhled commented Jul 11, 2018

Didn't finish it yet. Will try to push it this week.

@dhled
Copy link

dhled commented Jul 26, 2018

Proposition of solution: #371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants