|
roboligo
|
Represents the state and configuration of a robot. More...
#include <RobotState.hpp>

Public Member Functions | |
| Mode * | get_mode (const std::string &mode_name) |
| Retrieves a mode by name. | |
| std::vector< Mode > | get_modes (void) |
| Gets all available modes. | |
| std::string | get_name (void) |
| Gets the robot name. | |
| Trigger * | get_trigger (const std::string &trigger_name) |
| Retrieves a trigger by name. | |
| std::vector< Trigger > | get_triggers (void) |
| Gets all available triggers. | |
| bool | is_available (void) |
| Checks if the robot is available. | |
| bool | is_simulation (void) |
| Checks if the robot is in simulation mode. | |
| bool | is_stamped (void) |
| Checks if the robot uses time stamping. | |
| RobotState ()=default | |
| Default constructor. | |
| void | set_available (bool new_state) |
| Sets the robot availability status. | |
| void | set_modes (std::vector< Mode > modes) |
| Sets the available operational modes. | |
| void | set_name (std::string new_name) |
| Sets the robot name. | |
| void | set_simulation (bool new_state) |
| Sets the simulation mode status. | |
| void | set_stamp (bool new_state) |
| Enables or disables time stamping. | |
| void | set_triggers (std::vector< Trigger > triggers) |
| Sets the available triggers. | |
| void | show (void) |
| Displays complete robot state information. | |
| std::string | show_modes (void) |
| Returns a string representation of all modes. | |
| std::string | show_triggers (void) |
| Returns a string representation of all triggers. | |
| virtual | ~RobotState ()=default |
| Virtual destructor. | |
Public Attributes | |
| std::shared_ptr< roboligo::Battery > | battery |
| Battery status monitor component. | |
| std::shared_ptr< roboligo::NavSat > | gps |
| Global Navigation Satellite System (GPS) sensor. | |
| std::shared_ptr< roboligo::Imu > | imu |
| Inertial Measurement Unit sensor component. | |
| std::shared_ptr< roboligo::Input > | input |
| Input sensor component. | |
| std::shared_ptr< roboligo::Odom > | odom |
| Odometry sensor component. | |
| std::shared_ptr< roboligo::Output > | output |
| Output actuator component. | |
| std::shared_ptr< roboligo::Output > | position_target |
| Position target output component. | |
Represents the state and configuration of a robot.
This class manages robot properties including name, operational modes, triggers, and various sensor/actuator components. It tracks availability, simulation status, and time-stamping capabilities.
|
default |
Default constructor.
|
virtualdefault |
Virtual destructor.
| Mode * roboligo::RobotState::get_mode | ( | const std::string & | mode_name | ) |
Retrieves a mode by name.
| mode_name | The name of the mode to find. |
| std::vector< Mode > roboligo::RobotState::get_modes | ( | void | ) |
Gets all available modes.
| std::string roboligo::RobotState::get_name | ( | void | ) |
Gets the robot name.
| Trigger * roboligo::RobotState::get_trigger | ( | const std::string & | trigger_name | ) |
Retrieves a trigger by name.
| trigger_name | The name of the trigger to find. |
| std::vector< Trigger > roboligo::RobotState::get_triggers | ( | void | ) |
Gets all available triggers.
| bool roboligo::RobotState::is_available | ( | void | ) |
Checks if the robot is available.
| bool roboligo::RobotState::is_simulation | ( | void | ) |
Checks if the robot is in simulation mode.
| bool roboligo::RobotState::is_stamped | ( | void | ) |
Checks if the robot uses time stamping.
| void roboligo::RobotState::set_available | ( | bool | new_state | ) |
Sets the robot availability status.
| new_state | true to mark as available, false otherwise. |
| void roboligo::RobotState::set_modes | ( | std::vector< Mode > | modes | ) |
Sets the available operational modes.
| modes | Vector of Mode objects. |
| void roboligo::RobotState::set_name | ( | std::string | new_name | ) |
Sets the robot name.
| new_name | The new name to assign. |
| void roboligo::RobotState::set_simulation | ( | bool | new_state | ) |
Sets the simulation mode status.
| new_state | true to enable simulation mode. |
| void roboligo::RobotState::set_stamp | ( | bool | new_state | ) |
Enables or disables time stamping.
| new_state | true to enable stamping. |
| void roboligo::RobotState::set_triggers | ( | std::vector< Trigger > | triggers | ) |
Sets the available triggers.
| triggers | Vector of Trigger objects. |
| void roboligo::RobotState::show | ( | void | ) |
Displays complete robot state information.
| std::string roboligo::RobotState::show_modes | ( | void | ) |
Returns a string representation of all modes.
| std::string roboligo::RobotState::show_triggers | ( | void | ) |
Returns a string representation of all triggers.
| std::shared_ptr<roboligo::Battery> roboligo::RobotState::battery |
Battery status monitor component.
| std::shared_ptr<roboligo::NavSat> roboligo::RobotState::gps |
Global Navigation Satellite System (GPS) sensor.
| std::shared_ptr<roboligo::Imu> roboligo::RobotState::imu |
Inertial Measurement Unit sensor component.
| std::shared_ptr<roboligo::Input> roboligo::RobotState::input |
Input sensor component.
| std::shared_ptr<roboligo::Odom> roboligo::RobotState::odom |
Odometry sensor component.
| std::shared_ptr<roboligo::Output> roboligo::RobotState::output |
Output actuator component.
| std::shared_ptr<roboligo::Output> roboligo::RobotState::position_target |
Position target output component.