Union structure for model directives.
std::variant<>
was around, and thus we used a parent field, rather than a YAML tag, to designate the intended type for the directive. #include <drake/multibody/parsing/model_directives.h>
Public Member Functions | |
bool | IsValid () const |
template<typename Archive > | |
void | Serialize (Archive *a) |
Public Attributes | |
std::optional< AddModel > | add_model |
std::optional< AddModelInstance > | add_model_instance |
std::optional< AddFrame > | add_frame |
std::optional< AddWeld > | add_weld |
std::optional< AddCollisionFilterGroup > | add_collision_filter_group |
std::optional< AddDirectives > | add_directives |
bool IsValid | ( | ) | const |
void Serialize | ( | Archive * | a | ) |
std::optional<AddCollisionFilterGroup> add_collision_filter_group |
std::optional<AddDirectives> add_directives |
std::optional<AddFrame> add_frame |
std::optional<AddModel> add_model |
std::optional<AddModelInstance> add_model_instance |
std::optional<AddWeld> add_weld |