|
#include <ArmarXSimulation/components/Simulator/mujoco/LengthScaling.h>
Public Member Functions | |
void | disable () |
Set scaling of meter to millimeter to 1. More... | |
void | enable () |
Set scaling of meter to millimeter to 1000. More... | |
LengthScaling () | |
Constructor. Enables scaling. More... | |
float | meterToMilli () const |
Get the scaling factor for: millimeter = meter * factor. More... | |
template<typename ValueT > | |
ValueT | meterToMilli (const ValueT &meter) const |
Scale the given meter value to millimeter. More... | |
float | milliToMeter () const |
Get the scaling factor for: meter = millimeter * factor. More... | |
template<typename ValueT > | |
ValueT | milliToMeter (const ValueT &millimeter) const |
Scale the given millimeter value to meter. More... | |
void | setEnabled (bool enabled) |
Enable or disable length scaling. More... | |
Definition at line 6 of file LengthScaling.h.
LengthScaling | ( | ) |
Constructor. Enables scaling.
Definition at line 7 of file LengthScaling.cpp.
void disable | ( | ) |
Set scaling of meter to millimeter to 1.
Definition at line 17 of file LengthScaling.cpp.
void enable | ( | ) |
Set scaling of meter to millimeter to 1000.
Definition at line 12 of file LengthScaling.cpp.
float meterToMilli | ( | ) | const |
Get the scaling factor for: millimeter = meter * factor.
Definition at line 27 of file LengthScaling.cpp.
|
inline |
Scale the given meter value to millimeter.
Definition at line 30 of file LengthScaling.h.
float milliToMeter | ( | ) | const |
Get the scaling factor for: meter = millimeter * factor.
Definition at line 32 of file LengthScaling.cpp.
|
inline |
Scale the given millimeter value to meter.
Definition at line 37 of file LengthScaling.h.
void setEnabled | ( | bool | enabled | ) |
Enable or disable length scaling.
Definition at line 22 of file LengthScaling.cpp.