DUNE: Uniform Navigational Environment
2016.05.0
|
Engine class responsible to model propellers.
Public Member Functions | |
Engine (unsigned int id=0, double aforce[3]=0, double pos[3]=0, double orientation[3]=0, float force=0) | |
void | updateAct (double value) |
void | applyForce (double speed, double forces[6]) |
bool | checkId (unsigned int testid) |
double | getActuation (void) |
Public Member Functions inherited from Simulators::VSIM::Force | |
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) |
Static Public Member Functions | |
static int | encodeId (int id) |
Additional Inherited Members | |
Protected Attributes inherited from Simulators::VSIM::Force | |
double | m_max_force [3] |
double | m_act_position [3] |
Simulators::VSIM::Engine::Engine | ( | unsigned int | id = 0 , |
double | aforce[3] = 0 , |
||
double | pos[3] = 0 , |
||
double | orientation[3] = 0 , |
||
float | force = 0 |
||
) |
Engine constructor.
[in] | id | engine id. |
[in] | aforce | force distribution across three axes. |
[in] | pos | position of the engine relative to the center of the vehicle. |
[in] | orientation | orientation of the engine. |
[in] | force | maximum force of the engine. |
|
virtual |
Apply engine's force.
[in] | speed | speed reference of the vehicle. |
[out] | forces | control forces to be added to the vehicle. |
Reimplemented from Simulators::VSIM::Force.
|
virtual |
Check engine's id.
[in] | testid | engine id. |
Reimplemented from Simulators::VSIM::Force.
|
inlinestatic |
Encode id function.
Referenced by Simulators::VSIM::Vehicle::updateEngine().
|
virtual |
|
virtual |
Update engine's actuation.
[in] | value | actuation value. |
Reimplemented from Simulators::VSIM::Force.