-
Notifications
You must be signed in to change notification settings - Fork 71
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
urdfdom compatibility #25
Conversation
This reverts commit 701f77d.
* test for existence of urdf typedef * if not existing, activate compatibility header
urdf::LinkSharedPtr l; | ||
return 0; | ||
} | ||
" HAVE_URDFDOM_4) |
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.
Will this break if any single character changes in the upstream file? Seems really unstable!
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.
Is there a way to instead just check for the ubuntu version?
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.
Wow this looks like it was a lot of effort, thank you
This check simply checks for existence of the required
I would consider this much more fragile, because the urdfdom version is not necessarily linked to the Ubunu version. Someone could have a more recent version of urdfdom installed in an old Ubuntu system. |
Thank you @rhaschke that's the usual way to support multiple versions of dependencies.
Note that @davetcoleman there's more out there than Ubuntu :) |
I was first reading the
I wouldn't know :)
Reading this again I'm happy with this fix, +1 |
Applied simplification suggested by @v4hn. I guess, that's ready for merging now. |
tests passed and feedback has been addressed Thanks lots @rhaschke |
Attempt to solve #23.
During configuration time, cmake will check for the existence of urdfdom's typedefs. If not available an appropriate compatibility header will be activated.
We will need a similar mechanism for #209 and we might want to remove this hack if Wily runs out of support... A lot of effort for supporting the nearly dead Wily distribution.