URDF vs ProtoSpawner #860
-
Had a quick question regarding #818. Has this PROTOSpawner feature been implemented, and is there any documentation regarding how it should be used? I'm deciding between using the new feature, and URDF spawning. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It has not yet be fully implemented, but only partially with |
Beta Was this translation helpful? Give feedback.
-
If you replace the Robot node with a PROTO node, e.g., for example a Spot, it should work and insert the Spot robot in your world. IMPORTABLE EXTERNPROTO "../path/to/my/protos/Spot.proto" |
Beta Was this translation helpful? Give feedback.
It has not yet be fully implemented, but only partially with
spawn_node_from_string
to which you can pass a PROTO node. Using this method will be very close to the new feature and very easy to update when the new feature becomes available whereas the URDF spawner is going to be deprecated and will be harder to adapt to the new API. So, I would strongly recommend to go for the ProtoSpawner, on which you will also have a better control for setting Webots specific parameters.