Main Page · Modules · All Classes · Class Hierarchy |
Head controller class. More...
#include <MAHeadController.hpp>
Public Member Functions | |
MAHeadController () | |
Class constructor. | |
virtual | ~MAHeadController () |
Class destructor. | |
virtual MA::DeviceList | GetMotors () const override |
Get the list of the motors. More... | |
![]() | |
MAController (MA::ControllerType controller_type) | |
Class constructor. More... | |
MC::StringList | GetTransitionNames () const |
Get the list of the transition names. More... | |
MC::StringList | GetActiveTransitionsByDevice (const MADevice &device) |
Get a transition list by device. More... | |
virtual int | StartTransition (const std::string &name) |
Start a transition. More... | |
virtual void | StopTransition (const std::string &name) |
Stop a transition. More... | |
bool | IsTransitionActive (const std::string &name) |
Whenever the transition is still active. More... | |
bool | IsAnyActiveTransition () |
Check if any transition is active. More... | |
bool | IsAnyActiveSkitTransition () |
Check if any skit transition is active. More... | |
bool | IsTransitionSuccessful (const std::string &name) |
Whenever the transition is successful. More... | |
bool | TransitionHasCheck (const std::string &name) |
Test if the transition has a check. More... | |
![]() | |
MARobotStateUpdater (MA::RobotStateUpdateType update_type) | |
Struct constructor. | |
virtual | ~MARobotStateUpdater () |
Struct destructor. | |
![]() | |
MAContainerLocker (const std::string &class_name, const std::string &file_name) | |
Class constructor. More... | |
int | RegisterContainer (const std::string &container_name) |
Register a container for locking. More... | |
int | Lock (int container_id, int line, const char *file_name=nullptr) |
Lock a container. More... | |
int | Unlock (int container_id, int line, const char *file_name=nullptr) |
Unlock a container. More... | |
Protected Member Functions | |
virtual MA::DeviceGeneratorsMap | GetSkitTransitionGenerators (MA::SkitBaseSPtr skit) override |
Get skit transition generators. More... | |
![]() | |
void | GeneratorContainerExpired (MAGeneratorContainer &container) |
Slot for the expired generator containers. More... | |
MA::TransitionMap::iterator | RegisterSkitTransition (const std::string &skit_name) |
Register a skit transition if it has not been. More... | |
Protected Attributes | |
boost::shared_ptr< MADevice > | NeckTilt1 |
Neck tilt1. | |
boost::shared_ptr< MADevice > | NeckTilt2 |
Neck tilt2. | |
boost::shared_ptr< MADevice > | NeckPan |
Neck pan. | |
boost::shared_ptr< MADevice > | ChinButton |
Chin sensor. | |
boost::shared_ptr< MADevice > | CrownButton |
Crown sensor. | |
boost::shared_ptr< MACameraDevice > | Camera |
Camera. | |
boost::shared_ptr< MAMicrophoneDevice > | Microphone |
Microphone. | |
float | RubbingCenterForeBack |
Store the center (fore-back) position of the rubbing. | |
float | RubbingCenterLeftRight |
Store the center (left-right) position of the rubbing. | |
![]() | |
MA::ControllerType | Type |
Controller type. | |
MA::TransitionMap | Transitions |
The map of the transitions. | |
Private Member Functions | |
virtual void | UpdateRobotState (MARobotState &state) override |
Update the robot state. More... | |
Additional Inherited Members | |
![]() | |
static void | SetVerbose (bool new_state) |
Set the verbosity of the controller domain. More... | |
static bool | IsVerbose () |
Get the verbosity of the controller domain. More... | |
![]() | |
static void | RegisterUpdater (MARobotStateUpdater &updater) |
Register a robot state updater. More... | |
static void | Run (MARobotState &state) |
Run the robot state updates. More... | |
Head controller class.
Definition at line 68 of file MAHeadController.hpp.
|
overridevirtual |
Get the list of the motors.
Implements MAController.
Definition at line 201 of file MAHeadController.cpp.
|
overrideprotectedvirtual |
Get skit transition generators.
skit | Motion skit |
Implements MAController.
Definition at line 795 of file MAHeadController.cpp.
|
overrideprivatevirtual |
Update the robot state.
state | Robot state to be updated |
Implements MARobotStateUpdater.
Definition at line 171 of file MAHeadController.cpp.