Go to the documentation of this file.
17 #ifndef _GAZEBO_COMMON_MATERIALDENSITY_HH_
18 #define _GAZEBO_COMMON_MATERIALDENSITY_HH_
23 #include <ignition/math/Helpers.hh>
96 public:
static const std::map<MaterialType, double> &Materials();
102 public:
static double Density(
const std::string &_material);
107 public:
static double Density(
const MaterialType _material);
117 public:
static std::tuple<MaterialType, double> Nearest(
119 const double _epsilon = ignition::math::MAX_D);
127 public:
static MaterialType NearestMaterial(
const double _value,
128 const double _epsilon = ignition::math::MAX_D);
131 private:
static std::map<MaterialType, double> materials;
MaterialType
Types of materials. Source: https://en.wikipedia.org/wiki/Density.
Definition: MaterialDensity.hh:33
Wood, density = 700.0 kg/m^3.
Forward declarations for the common classes.
Definition: Animation.hh:26
static double Density(const std::string &_material)
Return the density of the given material name, or -1 if the material is not found.
Encapsulates density types.
Definition: MaterialDensity.hh:92
common
Definition: FuelModelDatabase.hh:37
Plastic, density = 1175.0 kg/m^3.
Ice, density = 916.0 kg/m^3.
Steel alloy, density = 7600.0 kg/m^3.
static std::tuple< MaterialType, double > Nearest(const double _value, const double _epsilon=ignition::math::MAX_D)
Return the material with the closest density value within _epsilon, or MATERIAL_TYPE_END if not found...
Iron, density = 7870.0 kg/m^3.
Copper, density = 8940.0 kg/m^3.
Water, density = 1000.0 kg/m^3.
Tungsten, density = 19300.0 kg/m^3.
static const std::map< MaterialType, double > & Materials()
Accessor for retrieving density entries.
Stainless steel, density = 7800.0 kg/m^3.
Concrete, density = 2000.0 kg/m^3.
Aluminum, density = 2700.0 kg/m^3.
static MaterialType NearestMaterial(const double _value, const double _epsilon=ignition::math::MAX_D)
Return the material with the closest density value within _epsilon, or MATERIAL_TYPE_END if not found...
Oak, density = 710.0 kg/m^3.
Styrofoam, density = 75.0 kg/m^3.
Pine, density = 373.0 kg/m^3.
Brass, density = 8600.0 kg/m^3.