DUNE: Uniform Navigational Environment  2019.02.1
Simulators::VSIM::Force Class Reference

Detailed Description

Force properties.

This is the base class for engine and fin subclasses.

Public Member Functions

 Force (void)
 
virtual ~Force (void)
 
void setForce (double, double, double, bool, bool)
 
void setPosition (double, double, double, bool)
 
bool isInertial (void)
 
bool isTorque (void)
 
bool isPosInertial (void)
 
virtual void applyForce (double speed, double forces[6])
 
virtual bool checkId (unsigned int testid)
 
virtual void updateAct (double value)
 
virtual double getActuation (void)
 

Protected Attributes

double m_max_force [3]
 
double m_act_position [3]
 

Constructor & Destructor Documentation

Simulators::VSIM::Force::Force ( void  )

Constructor.

References m_act_position, and m_max_force.

virtual Simulators::VSIM::Force::~Force ( void  )
inlinevirtual

Member Function Documentation

void Simulators::VSIM::Force::applyForce ( double  speed,
double  forces[6] 
)
virtual

Apply this force to body with id ident.

Parameters
[in]speedspeed reference.
[out]forcesforces to be applied to body.

Reimplemented in Simulators::VSIM::Engine, and Simulators::VSIM::Fin.

Referenced by ~Force().

bool Simulators::VSIM::Force::checkId ( unsigned int  testid)
virtual

Check force's id.

Parameters
[in]testidforce id.
Returns
true if id matches, false otherwise.

Reimplemented in Simulators::VSIM::Engine, and Simulators::VSIM::Fin.

Referenced by ~Force().

double Simulators::VSIM::Force::getActuation ( void  )
virtual

Retrieve current force actuation value.

Returns
force actuation value.

Reimplemented in Simulators::VSIM::Engine.

Referenced by ~Force().

bool Simulators::VSIM::Force::isInertial ( void  )

Is force in inertial referencial.

Returns
true if it is, false otherwise.

Referenced by ~Force().

bool Simulators::VSIM::Force::isPosInertial ( void  )

Is position in inertial referencial.

Returns
true if it is, false otherwise.

Referenced by ~Force().

bool Simulators::VSIM::Force::isTorque ( void  )

Is a torque.

Returns
true if it is, false otherwise.

Referenced by ~Force().

void Simulators::VSIM::Force::setForce ( double  x,
double  y,
double  z,
bool  is_inertial,
bool  is_torque 
)

Defines force vector.

Parameters
[in]xforce along x-axis.
[in]yforce along y-axis.
[in]zforce along z-axis.
[in]is_inertialif force is in inertial referencial.
[in]is_torqueif force is a torque force.

References m_max_force.

Referenced by Simulators::VSIM::Engine::Engine(), Simulators::VSIM::Fin::updateAct(), and ~Force().

void Simulators::VSIM::Force::setPosition ( double  x,
double  y,
double  z,
bool  is_inertial 
)

Sets position vector.

Parameters
[in]xposition of the force in the x-axis.
[in]yposition of the force in the y-axis.
[in]zposition of the force in the z-axis.
[in]is_inertialif position is in inertial referencial.

References m_act_position.

Referenced by Simulators::VSIM::Engine::Engine(), Simulators::VSIM::Fin::updateAct(), and ~Force().

void Simulators::VSIM::Force::updateAct ( double  value)
virtual

Update force's actuation.

Parameters
[in]valueforce actuation value.

Reimplemented in Simulators::VSIM::Engine, and Simulators::VSIM::Fin.

Referenced by ~Force().

Member Data Documentation

double Simulators::VSIM::Force::m_act_position[3]
protected
double Simulators::VSIM::Force::m_max_force[3]
protected
Collaboration diagram for Simulators::VSIM::Force:
Collaboration graph