gz/common/MaterialDensity.hh
@ TUNGSTEN
@ PLASTIC
static double Density(const std::string &_material)
Return the density of the given material name, or -1 if the material is not found.
Forward declarations for the common classes.
STL class.
@ CONCRETE
Encapsulates density types.
Definition: gz/common/MaterialDensity.hh:31
static const std::map< Type, double > & Materials()
Accessor for retrieving density entries.
@ WOOD
@ COPPER
@ IRON
@ STEEL_ALLOY
@ STEEL_ALLOY
Steel alloy, density = 7600.0 kg/m^3.
@ OAK
@ PINE
static Type NearestMaterial(const double _value, const double _epsilon=std::numeric_limits< double >::max())
Return the material with the closest density value within _epsilon, or MATERIAL_TYPE_END if not found...
@ STEEL_STAINLESS
Stainless steel, density = 7800.0 kg/m^3.
static std::tuple< Type, double > Nearest(const double _value, const double _epsilon=std::numeric_limits< double >::max())
Return the material with the closest density value within _epsilon, or MATERIAL_TYPE_END if not found...
@ STYROFOAM
@ BRASS
@ STEEL_STAINLESS
@ ALUMINUM
Type
Types of materials. Source: https://en.wikipedia.org/wiki/Density.
Definition: gz/common/MaterialDensity.hh:36