rbd::parsers::Material Struct Reference

#include <parsers/RBDyn/parsers/common.h>

Classes

struct  Color
 
struct  Texture
 

Public Types

enum  Type { Type::NONE, Type::COLOR, Type::TEXTURE }
 
using Data = boost::variant< Color, Texture >
 

Public Member Functions

 Material ()
 

Public Attributes

Type type
 
Data data
 

Detailed Description

A material, as specified in the URDF format, is optionally attached to a visual element

It can be either:

  • NONE if there is not material attached to the visual element
  • COLOR if it is a color element (rgba values in the [0, 1] range)
  • TEXTURE if it is a texture (filename)

Member Typedef Documentation

◆ Data

using rbd::parsers::Material::Data = boost::variant<Color, Texture>

Member Enumeration Documentation

◆ Type

Enumerator
NONE 
COLOR 
TEXTURE 

Constructor & Destructor Documentation

◆ Material()

rbd::parsers::Material::Material ( )
inline

Member Data Documentation

◆ data

Data rbd::parsers::Material::data

◆ type

Type rbd::parsers::Material::type

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