Links in URDF can have multiple visual and collision children (http://wiki.ros.org/urdf/XML/link).
Parsing some URDF link with cl_urdf always took the first child.
This PR adds two fields to the cl-urdf:link class: visuals and collisions. It keeps the old fields untouched for backwards-compatibility. When an XML link is parsed, all node children are filtered for the :|visual|/:|collision| name, and set as a list to their respective slot in the cl-urdf:link instance.
Links in URDF can have multiple
visual
andcollision
children (http://wiki.ros.org/urdf/XML/link). Parsing some URDF link withcl_urdf
always took the first child.This PR adds two fields to the
cl-urdf:link
class:visuals
andcollisions
. It keeps the old fields untouched for backwards-compatibility. When an XML link is parsed, all node children are filtered for the:|visual|
/:|collision|
name, and set as a list to their respective slot in thecl-urdf:link
instance.Test this with a URDF from the parameter server: