LengthScaling Class Reference

#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...
 

Detailed Description

Definition at line 6 of file LengthScaling.h.

Constructor & Destructor Documentation

◆ LengthScaling()

Constructor. Enables scaling.

Definition at line 7 of file LengthScaling.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ disable()

void disable ( )

Set scaling of meter to millimeter to 1.

Definition at line 17 of file LengthScaling.cpp.

+ Here is the call graph for this function:

◆ enable()

void enable ( )

Set scaling of meter to millimeter to 1000.

Definition at line 12 of file LengthScaling.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ meterToMilli() [1/2]

float meterToMilli ( ) const

Get the scaling factor for: millimeter = meter * factor.

Definition at line 27 of file LengthScaling.cpp.

◆ meterToMilli() [2/2]

ValueT meterToMilli ( const ValueT &  meter) const
inline

Scale the given meter value to millimeter.

Definition at line 30 of file LengthScaling.h.

◆ milliToMeter() [1/2]

float milliToMeter ( ) const

Get the scaling factor for: meter = millimeter * factor.

Definition at line 32 of file LengthScaling.cpp.

+ Here is the caller graph for this function:

◆ milliToMeter() [2/2]

ValueT milliToMeter ( const ValueT &  millimeter) const
inline

Scale the given millimeter value to meter.

Definition at line 37 of file LengthScaling.h.

◆ setEnabled()

void setEnabled ( bool  enabled)

Enable or disable length scaling.

Definition at line 22 of file LengthScaling.cpp.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: