24 #include "core/MANum.hpp" 25 #include "MARobotStateUpdater.hpp" 27 #include <MCTimer.hpp> 53 UnknownBodyState = -1,
71 UserDefinedFloor = 10000,
79 VerySoftFlooring = 20,
80 } FloorSurfaceSoftnessType;
186 bool IsBodyRollInWalkRange()
const;
193 void StartMotionControlTimer();
200 void StopMotionControlTimer();
203 virtual void UpdateRobotState(
MARobotState& state)
override;
205 void GenerateBodyPitchAndRoll();
MAIntervalNum< int > LyingOnBackFactor
Indicator variable when the robot body is lying upside down.
MANum< int > Degree
Degree (-90°..90°)
MAIntervalNum< int > LyingOnBackRightSideFactor
Indicator variable when the robot body is lying upside down/right side.
MAIntervalNum< int > LyingOnBackLeftSideFactor
Indicator variable when the robot body is lying upside down/left side.
MANum< int > MotionControlAge
Elapsed time since the last motion control command (in seconds)
MANum< int > SkitPlayback
Any skit is played back.
MANum< int > BodyRoll
Body roll.
MAIntervalNum< int > SittingFactor
Indicator variable for sitting position.
MANum< int > InMotion
Any body part is in motion.
MAIntervalNum< int > LyingFactor
Indicator variable when the robot body is lying.
MANum< int > Raw
Raw data (-19613300..19613300)
MCTimer MotionControlTimer
Motion control command timer.
MAIntervalNum< int > LyingOnRightSideFactor
Indicator variable when the robot body is lying on its right side.
MAIntervalNum< int > FlyingFactor
Indicator variable to detect the flying (pick-up) mode.
MAIntervalNum< int > BodyOnRightSideFactor
Indicator variable when the robot body is on its right side.
MANum< int > BodyPitch
Body pitch.
MAAccelData AccelZ
Accelerometer (Z dimension, up-down)
std::string MAFloorSurfacesTypeStr(const MA::FloorSurfacesType surface)
Get floor surface string.
MAIntervalNum< int > BodyOnLeftSideFactor
Indicator variable when the robot body is on its left side.
Robot state updater base class.
Simple timer class with microsecond precision.
MAIntervalNum< int > LyingOnLeftSideFactor
Indicator variable when the robot body is lying on its left side.
MA::FloorSurfaceSoftnessType MAMapFloorSurfaceToSoftness(const MA::FloorSurfacesType surface)
Map a floor surface to softness.
MAIntervalNum< int > PokedFactor
Indicator variable to detect the poked state.
std::string MAFloorSurfaceSoftnessTypeStr(const MA::FloorSurfaceSoftnessType surface_softness)
Get floor surface softness string.
MAAccelData AccelY
Accelerometer (Y dimension, left-right)
MAAccelData()
Struct constructor.
MANum< int > BodyState
Body state.
MAFloorSurface Floor
Floor surface.
MAIntervalNum< int > BackStrokedFactor
Indicator variable when the robot back is stroked.
MAAccelData AccelX
Accelerometer (X dimension, front-back)