 |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
Go to the documentation of this file.
4 #include <rclcpp/rclcpp.hpp>
20 std::map<std::string, std::pair<long long, galaxis::serviceStates::State>>
system_state_;
galaxis::serviceStates::State m_previousServiceState
galaxis::serviceStates::State get_service_state_by_uint8(uint8_t p_state)
void print_system_status()
void switch_system_state(galaxis::serviceStates::State p_state, bool p_force)
rclcpp::Subscription< HeartbeatMessageType >::SharedPtr heartbeat_sub_
rclcpp::Subscription< ButtonStateMessageType >::SharedPtr buttonStateSubSPtr
rclcpp::TimerBase::SharedPtr periodic_timer_print_system_status_
constexpr unsigned int _HEARTBEAT_MAXIMUM_PERIOD_TIME
rclcpp::Publisher< ServiceStateType >::SharedPtr service_state_pub_
constexpr long long _HEARTBEAT_MAXIMUM_OFF_TIME_MS
std::map< std::string, std::pair< long long, galaxis::serviceStates::State > > system_state_
void callback_buttonState(ButtonStateMessageType::SharedPtr const buttonStateMsgSPtr)
bool m_systemOnlineStatus
bool getSystemOnlineState()
galaxis::serviceStates::State m_currentServiceState
rclcpp::TimerBase::SharedPtr periodic_timer_
rclcpp::Publisher< SettingsValuesType >::SharedPtr settingsValuesPubSPtr
void heartbeat_callback(const messages::msg::Heartbeat::SharedPtr msg)
void handle_controller(bool start)
constexpr long long _HEARTBEAT_CHECK_PERIOD
uint8_t get_service_state_by_enum_state(galaxis::serviceStates::State p_state)
void initial_set_ecu_settings()