-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Question: why not introduce a <webots> tag? #112
Comments
Yes, this is a very good idea. We should probably start drafting it here to define its content and see how this would help overcome a number of problems. |
My first thought would simple be to translate all proto props to xml; so:
Could be something like this
Just a first example and maybe we need some reference to urdf links but this way the user can configure all webots parameters in urdf and if desired keep their original gazebo configuration alive so that the urdf can be used with both simulators. |
Yes, that's a very good approach, simple and scalable. |
Thanks! Will try to find time for this within our team in the next sprint. Will get back to you. |
Ideally one can also reference back to an urdf link like this: #31 (comment) |
A different option would be to have a config file which specifies additional components to be added to the proto file. We thought about implementing this for allowing to specify the appearance of the meshes of our robot better than in an URDF since it is limited to a flat color or a texture. |
@jgueldenstein this could still be done when using
and for a material:
|
I think those are two different ways to solve the same problem. The advantage of putting everything into the URDF is that it is all in one place. |
This is a great idea, I would use it with xacro, so you could have a single model with a parameter to determine which simulators to render in the urdf. <robot name="robot" xmlns:xacro="http://www.ros.org/wiki/xacro">
<xacro:arg name="webots" default="true" />
<xacro:if value="$(arg webots)">
<xacro:include filename="robot_webots.xacro" />
</xacro:if>
</robot> |
I would love to see a XML tree implemented. This would give us the freedom to address Webots specific features without interfering with existing code. The new Webots tag should be ignored by other xml parsers by default, therefore I would not worry about too much having these in the urdf. In general, it is a good practice to split Webots specific definitions (as well as gazebo stuff) into a different file. |
have any plan to implement this? |
Not on the short term, but feel free to propose a contribution in this way. |
When diving a little bit more into
webots
and thisurdf2webots
parser I started wondering the following:Why not introduce a
<webots>
xml tag instead of parsing the<gazebo>
tags? Webots is a different simulator and also your sensor and actuator components are differently reflected in your resulting file (.proto
file). Wouldn't it be easier (and more complete) to introduce a custom<webots>
tag that describes the webots specific information regarding actuators and sensors?Looking forward to your thoughts.
The text was updated successfully, but these errors were encountered: