The KinematicElement stores visuals in two ways.
It (1) stores a path to the resource and a shape pointer directly as members:
|
shapes::ShapeConstPtr shape = nullptr; |
|
std::string shape_resource_path = ""; |
but is (2) also stores an array of
VisualElement:
|
std::vector<VisualElement> visual; |
This appears to be redundant and confusing because it is not documented, if they are used in different ways. Can the members (shape and shape_resource_path) be removed?
In my scenario, the members are empty and the VisualElement actually contains the mesh reference.
The
KinematicElementstores visuals in two ways.It (1) stores a path to the resource and a shape pointer directly as members:
exotica/exotica_core/include/exotica_core/kinematic_element.h
Lines 124 to 125 in 9e1da60
but is (2) also stores an array of
VisualElement:exotica/exotica_core/include/exotica_core/kinematic_element.h
Line 129 in 9e1da60
This appears to be redundant and confusing because it is not documented, if they are used in different ways. Can the members (
shapeandshape_resource_path) be removed?In my scenario, the members are empty and the
VisualElementactually contains the mesh reference.