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);
117 public:
static std::tuple<MaterialType, double>
Nearest(
119 const double _epsilon = ignition::math::MAX_D);
128 const double _epsilon = ignition::math::MAX_D);
131 private:
static std::map<MaterialType, double> materials;
common
Definition FuelModelDatabase.hh:37
Encapsulates density types.
Definition MaterialDensity.hh:93
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...
static double Density(const std::string &_material)
Return the density of the given material name, or -1 if the material is not found.
static const std::map< MaterialType, double > & Materials()
Accessor for retrieving density entries.
static double Density(const MaterialType _material)
Return the density of a material.
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...
MaterialType
Types of materials.
Definition MaterialDensity.hh:34
@ STYROFOAM
Styrofoam, density = 75.0 kg/m^3.
@ ICE
Ice, density = 916.0 kg/m^3.
@ WATER
Water, density = 1000.0 kg/m^3.
@ PINE
Pine, density = 373.0 kg/m^3.
@ TUNGSTEN
Tungsten, density = 19300.0 kg/m^3.
@ ALUMINUM
Aluminum, density = 2700.0 kg/m^3.
@ STEEL_ALLOY
Steel alloy, density = 7600.0 kg/m^3.
@ IRON
Iron, density = 7870.0 kg/m^3.
@ WOOD
Wood, density = 700.0 kg/m^3.
@ PLASTIC
Plastic, density = 1175.0 kg/m^3.
@ OAK
Oak, density = 710.0 kg/m^3.
@ COPPER
Copper, density = 8940.0 kg/m^3.
@ CONCRETE
Concrete, density = 2000.0 kg/m^3.
@ BRASS
Brass, density = 8600.0 kg/m^3.
@ STEEL_STAINLESS
Stainless steel, density = 7800.0 kg/m^3.
Forward declarations for the common classes.
Definition Animation.hh:27