|
SMACC2
|
#include <cp_vehicle_command_ack.hpp>


Public Member Functions | |
| CpVehicleCommandAck () | |
| virtual | ~CpVehicleCommandAck () |
| void | onInitialize () override |
| uint32_t | getLastAckCommand () const |
| uint8_t | getLastAckResult () const |
Public Member Functions inherited from smacc2::ISmaccComponent | |
| ISmaccComponent () | |
| virtual | ~ISmaccComponent () |
| virtual std::string | getName () const |
Public Attributes | |
| smacc2::SmaccSignal< void()> | onAckReceived_ |
Private Member Functions | |
| void | onAckMessage (const px4_msgs::msg::VehicleCommandAck::SharedPtr msg) |
Private Attributes | |
| rclcpp::Subscription< px4_msgs::msg::VehicleCommandAck >::SharedPtr | subscriber_ |
| uint32_t | lastCommand_ = 0 |
| uint8_t | lastResult_ = 0 |
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 (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 (TArgs... targs) |
| template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
| SmaccComponentType * | createSiblingNamedComponent (std::string name, TArgs... targs) |
| rclcpp::Node::SharedPtr | getNode () |
| rclcpp::Logger | getLogger () const |
| ISmaccStateMachine * | getStateMachine () |
Protected Attributes inherited from smacc2::ISmaccComponent | |
| ISmaccStateMachine * | stateMachine_ |
| ISmaccClient * | owner_ |
Definition at line 24 of file cp_vehicle_command_ack.hpp.
| cl_px4_mr::CpVehicleCommandAck::CpVehicleCommandAck | ( | ) |
Definition at line 20 of file cp_vehicle_command_ack.cpp.
|
virtual |
Definition at line 22 of file cp_vehicle_command_ack.cpp.
| uint32_t cl_px4_mr::CpVehicleCommandAck::getLastAckCommand | ( | ) | const |
Definition at line 41 of file cp_vehicle_command_ack.cpp.
References lastCommand_.
| uint8_t cl_px4_mr::CpVehicleCommandAck::getLastAckResult | ( | ) | const |
Definition at line 43 of file cp_vehicle_command_ack.cpp.
References lastResult_.
|
private |
Definition at line 33 of file cp_vehicle_command_ack.cpp.
References smacc2::ISmaccComponent::getLogger(), lastCommand_, lastResult_, and onAckReceived_.
Referenced by onInitialize().


|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 24 of file cp_vehicle_command_ack.cpp.
References smacc2::ISmaccComponent::getLogger(), smacc2::ISmaccComponent::getNode(), onAckMessage(), and subscriber_.

|
private |
Definition at line 41 of file cp_vehicle_command_ack.hpp.
Referenced by getLastAckCommand(), and onAckMessage().
|
private |
Definition at line 42 of file cp_vehicle_command_ack.hpp.
Referenced by getLastAckResult(), and onAckMessage().
| smacc2::SmaccSignal<void()> cl_px4_mr::CpVehicleCommandAck::onAckReceived_ |
Definition at line 35 of file cp_vehicle_command_ack.hpp.
Referenced by onAckMessage().
|
private |
Definition at line 40 of file cp_vehicle_command_ack.hpp.
Referenced by onInitialize().