#include <CscState.h>
Public Member Functions | |
| CscState (map< int, float > *pivotsValues=nullptr, map< int, float > *wheelsValues=nullptr, map< int, float > *propellersValues=nullptr, const optional< map< int, float >> &translationsValues={}, const vector< const CscMemberInputStatus * > *inputsValues=nullptr) | |
| void | setPivots (map< int, float > pivotsIn) |
| void | setPropellers (map< int, float > propIn) |
| void | setPropeller (int propId, float value) |
| void | setPivot (int pivotId, float value) |
| void | removePivot (int pivotId) |
| void | setObjectiveValue (float value) |
| void | setInputs (vector< const CscMemberInputStatus * > *inputsIn) |
| int | countPivots () const |
| float | getPivotValueByPivotId (int pivotId) const |
| int | getPivotIdAt (int index) |
| int | getWheelIdAt (int index) |
| int | getTranslationIdAt (int index) |
| int | getPropellerIdAt (int index) |
| float | getWheelValueByWheelId (int wheelId) const |
| float | getTranslationValueByTranslationId (int wheelId) |
| float | getPropellerValueByPropellerId (int wheelId) |
| float | getInputFromMemberName (string memberName, CscInputType inputId) |
| float | getObjectiveValue () const |
| virtual | ~CscState () |
| int | countPropellers () const |
| float | getPropeller (int propId) const |
| string | toString () |
| string | toUserFriendlyString (bool outputs=true, bool inputs=true) const |
| string | toStringWithQuotes () |
| vector< CscMemberInputStatus * > * | getInputsCopy () const |
| const vector< const CscMemberInputStatus * > & | getInputs () const |
| size_t | countInputs () const |
| CscState * | getDuplicata () |
| map< int, float > | getPropellersCopy () const |
| map< int, float > | getPivotsCopy () const |
| map< int, float > | getWheelsCopy () const |
| void | clearInputs () |
| float | getWheel (int wheelId) const |
| const map< int, float > & | getPropellers () const |
| const map< int, float > & | getPivots () const |
| const map< int, float > & | getWheels () const |
| const map< int, float > & | getTranslations () const |
| int | countWheels () const |
| void | setWheel (int wheelId, float value) |
| void | setWheels (map< int, float > wheelsIn) |
| void | setTranslations (map< int, float > TranslationsIn) |
| int | countTranslations () const |
| void | setGridPosition (CscPoint3dOriented *gridPositionIn) |
| CscPoint3dOriented * | getGridPosition () |
| float | getTranslation (int translationId) const |
| map< int, float > | getTranslationsCopy () const |
| map< CscInputType, float > | getInputsFromMemberName (string memberName) |
| void | setTranslation (int translationId, float value) |
| CscPoint3d * | getPositionPivotFromPivotId (int pivotId, const CscEntityModel *entityModel) |
| virtual CscState * | clone () |
Static Public Member Functions | |
| static float | getInputsDistance (const map< CscInputType, float > &inputsIn, const map< CscInputType, float > &inputsTargetValuesMember) |
Public Attributes | |
| int | stateId = -1 |
| int | bestPathUnitMovment = -1 |
| CscState::CscState | ( | map< int, float > * | pivotsValues = nullptr, |
| map< int, float > * | wheelsValues = nullptr, |
||
| map< int, float > * | propellersValues = nullptr, |
||
| const optional< map< int, float >> & | translationsValues = {}, |
||
| const vector< const CscMemberInputStatus * > * | inputsValues = nullptr |
||
| ) |
output values from -100 to 100
|
virtual |
| void CscState::clearInputs | ( | ) |
|
virtual |
|
inline |
| int CscState::countPivots | ( | ) | const |
| int CscState::countPropellers | ( | ) | const |
| int CscState::countTranslations | ( | ) | const |
| int CscState::countWheels | ( | ) | const |
| CscState * CscState::getDuplicata | ( | ) |
| CscPoint3dOriented * CscState::getGridPosition | ( | ) |
| float CscState::getInputFromMemberName | ( | string | memberName, |
| CscInputType | inputId | ||
| ) |
|
inline |
| vector< CscMemberInputStatus * > * CscState::getInputsCopy | ( | ) | const |
|
static |
| map< CscInputType, float > CscState::getInputsFromMemberName | ( | string | memberName | ) |
| float CscState::getObjectiveValue | ( | ) | const |
| int CscState::getPivotIdAt | ( | int | index | ) |
| const map< int, float > & CscState::getPivots | ( | ) | const |
| map< int, float > CscState::getPivotsCopy | ( | ) | const |
| float CscState::getPivotValueByPivotId | ( | int | pivotId | ) | const |
| CscPoint3d * CscState::getPositionPivotFromPivotId | ( | int | pivotId, |
| const CscEntityModel * | entityModel | ||
| ) |
| float CscState::getPropeller | ( | int | propId | ) | const |
| int CscState::getPropellerIdAt | ( | int | index | ) |
| const map< int, float > & CscState::getPropellers | ( | ) | const |
| map< int, float > CscState::getPropellersCopy | ( | ) | const |
| float CscState::getPropellerValueByPropellerId | ( | int | wheelId | ) |
| float CscState::getTranslation | ( | int | translationId | ) | const |
| int CscState::getTranslationIdAt | ( | int | index | ) |
| const map< int, float > & CscState::getTranslations | ( | ) | const |
| map< int, float > CscState::getTranslationsCopy | ( | ) | const |
| float CscState::getTranslationValueByTranslationId | ( | int | wheelId | ) |
| float CscState::getWheel | ( | int | wheelId | ) | const |
| int CscState::getWheelIdAt | ( | int | index | ) |
| const map< int, float > & CscState::getWheels | ( | ) | const |
| map< int, float > CscState::getWheelsCopy | ( | ) | const |
| float CscState::getWheelValueByWheelId | ( | int | wheelId | ) | const |
| void CscState::removePivot | ( | int | pivotId | ) |
| void CscState::setGridPosition | ( | CscPoint3dOriented * | gridPositionIn | ) |
| void CscState::setInputs | ( | vector< const CscMemberInputStatus * > * | inputsIn | ) |
| void CscState::setObjectiveValue | ( | float | value | ) |
| void CscState::setPivot | ( | int | pivotId, |
| float | value | ||
| ) |
| void CscState::setPivots | ( | map< int, float > | pivotsIn | ) |
| void CscState::setPropeller | ( | int | propId, |
| float | value | ||
| ) |
| void CscState::setPropellers | ( | map< int, float > | propIn | ) |
| void CscState::setTranslation | ( | int | translationId, |
| float | value | ||
| ) |
| void CscState::setTranslations | ( | map< int, float > | TranslationsIn | ) |
| void CscState::setWheel | ( | int | wheelId, |
| float | value | ||
| ) |
| void CscState::setWheels | ( | map< int, float > | wheelsIn | ) |
| string CscState::toString | ( | ) |
| string CscState::toStringWithQuotes | ( | ) |
| string CscState::toUserFriendlyString | ( | bool | outputs = true, |
| bool | inputs = true |
||
| ) | const |
| int CscState::bestPathUnitMovment = -1 |
| int CscState::stateId = -1 |