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 = IGN_DBL_MAX);
127 public:
static MaterialType NearestMaterial(
const double _value,
128 const double _epsilon = IGN_DBL_MAX);
131 private:
static std::map<MaterialType, double> materials;
Aluminum, density = 2700.0 kg/m^3.
Oak, density = 710.0 kg/m^3.
Plastic, density = 1175.0 kg/m^3.
MaterialType
Types of materials.
Definition: MaterialDensity.hh:33
Water, density = 1000.0 kg/m^3.
Encapsulates density types.
Definition: MaterialDensity.hh:92
Iron, density = 7870.0 kg/m^3.
Concrete, density = 2000.0 kg/m^3.
Steel alloy, density = 7600.0 kg/m^3.
Ice, density = 916.0 kg/m^3.
Copper, density = 8940.0 kg/m^3.
Tungsten, density = 19300.0 kg/m^3.
Brass, density = 8600.0 kg/m^3.
Stainless steel, density = 7800.0 kg/m^3.
Styrofoam, density = 75.0 kg/m^3.
Pine, density = 373.0 kg/m^3.
Wood, density = 700.0 kg/m^3.