|
SMACC2
|
#include <cp_offboard_keep_alive.hpp>


Private Attributes | |
| rclcpp::Publisher< px4_msgs::msg::OffboardControlMode >::SharedPtr | publisher_ |
| CpTrajectorySetpoint * | trajectorySetpoint_ = nullptr |
| bool | enabled_ = false |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccComponent | |
| template<typename TOrthogonal , typename TClient > | |
| void | onComponentInitialization () |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| template<typename TComponent > | |
| void | requiresComponent (TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename TComponent > | |
| void | requiresComponent (const std::string &name, TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename TClient > | |
| void | requiresClient (TClient *&requiredClientStorage) |
| template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
| SmaccComponentType * | createSiblingComponent (const TArgs &... targs) |
| template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
| SmaccComponentType * | createSiblingNamedComponent (const std::string &name, const TArgs &... targs) |
| rclcpp::Node::SharedPtr | getNode () |
| rclcpp::Logger | getLogger () const |
| ISmaccStateMachine * | getStateMachine () |
Protected Member Functions inherited from smacc2::ISmaccUpdatable | |
Protected Attributes inherited from smacc2::ISmaccComponent | |
| ISmaccStateMachine * | stateMachine_ = nullptr |
| ISmaccClient * | owner_ = nullptr |
Definition at line 26 of file cp_offboard_keep_alive.hpp.
| cl_px4_mr::CpOffboardKeepAlive::CpOffboardKeepAlive | ( | ) |
Definition at line 21 of file cp_offboard_keep_alive.cpp.
|
override |
Definition at line 23 of file cp_offboard_keep_alive.cpp.
| void cl_px4_mr::CpOffboardKeepAlive::disable | ( | ) |
Definition at line 66 of file cp_offboard_keep_alive.cpp.
References enabled_, and smacc2::ISmaccComponent::getLogger().
Referenced by cl_px4_mr::CbLand::onEntry().


| void cl_px4_mr::CpOffboardKeepAlive::enable | ( | ) |
Definition at line 60 of file cp_offboard_keep_alive.cpp.
References enabled_, and smacc2::ISmaccComponent::getLogger().
Referenced by cl_px4_mr::CbArmPX4::onEntry(), and cl_px4_mr::CbTakeOff::onEntry().


| bool cl_px4_mr::CpOffboardKeepAlive::isEnabled | ( | ) | const |
Definition at line 72 of file cp_offboard_keep_alive.cpp.
References enabled_.
Referenced by cl_px4_mr::CbArmPX4::onEntry().

|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 25 of file cp_offboard_keep_alive.cpp.
References smacc2::ISmaccComponent::getLogger(), smacc2::ISmaccComponent::getNode(), publisher_, smacc2::ISmaccComponent::requiresComponent(), and trajectorySetpoint_.

|
overridevirtual |
Implements smacc2::ISmaccUpdatable.
Definition at line 36 of file cp_offboard_keep_alive.cpp.
References enabled_, smacc2::ISmaccComponent::getNode(), publisher_, cl_px4_mr::CpTrajectorySetpoint::republishLast(), and trajectorySetpoint_.

|
private |
Definition at line 42 of file cp_offboard_keep_alive.hpp.
Referenced by disable(), enable(), isEnabled(), and update().
|
private |
Definition at line 40 of file cp_offboard_keep_alive.hpp.
Referenced by onInitialize(), and update().
|
private |
Definition at line 41 of file cp_offboard_keep_alive.hpp.
Referenced by onInitialize(), and update().