-
Notifications
You must be signed in to change notification settings - Fork 79
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 Capsule primitives #24
Conversation
Parsing of capsules: ros/urdfdom#85 |
The code looks pretty straight-forward since capsules are so similar to cylinders. My only concern is that adding new fields to urdf could lead to problems when trying to parse new files with an old parser, since the format doesn't have any way of declaring a version. |
Tinyxml can parse a version number in the xml tag. |
That's the main problem, that the old parser would need to be updated. |
There are two separate issues :
|
Dear Joseph and Florent, |
This solution is really heavy in terms of development because analytical shapes are not parsed by |
I would also use capsule shapes if it was available, and - by the way - a "rounded box shape" too (or alternatively a "convex hull of spheres shape"). @scpeters could you detail the issue you foresee with old parsers? AFAICT, when encountering a capsule, the old parser will fail to parse the file with those error logs: That seems quite sane to me. Is it a blocker? |
Hey at all - Happy to contribute, thank you very much, |
Hey, Thank you very much for your input, |
Hello, I'd like to see topic move forward too. |
This seems like a great idea, and something we should add to ROS Melodic. ROS2 is an even easier place to target this. @sbarthelemy's point about the existing error messages seems compelling enough. @scpeters what is remaining to merge this in? |
@davetcoleman there is a need to either:
|
Note that at the moment,
Related discussion on URDF format versioning: ros/urdfdom#123 . |
@traversaro thanks for the insight. Following discussion in ros/urdfdom#123, is it practicable to define URDF v2 by changing the name of the robot tag into another tag, like robot2 (obviously, this is a silly name to get me understood) such that:
|
Tag robot2 could include an attribute version to allow versioning. |
Dear @scpeters, |
Yes but this has been the argument for the last ~8 years, so it just remains unchanged. It would still be nice to make changes for the next LTS. You also are hinting at the possibility of adding urdfdom back into the OSRF-hosted build farm / PPA, which I support. |
I didn't follow closely. From #59, it seems that versioning has been added somewhere. Any knows what should be done to update this PR to get it accepted ? |
Hello, is there a reason on why is this not merged yet? |
Closing this since there are very little chances this gets merge as is after 6 years. |
If anyone is interested Tesseract has a urdf parser which includes additional shapes like convex mesh, cone, capsule, octomap, etc. and also supports Quaternion for origin tag and acceleration limits. https://github.com/tesseract-robotics/tesseract/tree/master/tesseract_urdf https://tesseract-docs.readthedocs.io/en/latest/_source/core/packages/tesseract_urdf_doc.html |
Collision checking with capsules is faster than with cylinder. As FCL has this primitives, I guess it shouldn't be a problem to add them in the URDF format ?
I have made changes in
urdfdom
packages as well.