Drake
Drake C++ Documentation
ModelDirective Struct Reference

Detailed Description

Union structure for model directives.

Note
This was designed before support for 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< AddModeladd_model
 
std::optional< AddModelInstanceadd_model_instance
 
std::optional< AddFrameadd_frame
 
std::optional< AddWeldadd_weld
 
std::optional< AddCollisionFilterGroupadd_collision_filter_group
 
std::optional< AddDirectivesadd_directives
 

Member Function Documentation

◆ IsValid()

bool IsValid ( ) const

◆ Serialize()

void Serialize ( Archive *  a)

Member Data Documentation

◆ add_collision_filter_group

std::optional<AddCollisionFilterGroup> add_collision_filter_group

◆ add_directives

std::optional<AddDirectives> add_directives

◆ add_frame

std::optional<AddFrame> add_frame

◆ add_model

std::optional<AddModel> add_model

◆ add_model_instance

std::optional<AddModelInstance> add_model_instance

◆ add_weld

std::optional<AddWeld> add_weld

The documentation for this struct was generated from the following file: