|
SMACC2
|
#include <cp_failsafe_flags.hpp>


Public Member Functions | |
| CpFailsafeFlags () | |
| ~CpFailsafeFlags () override | |
| void | onInitialize () override |
| bool | hasMessage () const |
| bool | isAttitudeInvalid () const |
| bool | isLocalAltitudeInvalid () const |
| bool | isLocalPositionInvalid () const |
| bool | isHealthOk () const |
Public Member Functions inherited from smacc2::ISmaccComponent | |
| ISmaccComponent () | |
| virtual | ~ISmaccComponent () |
| ISmaccComponent (const ISmaccComponent &)=delete | |
| ISmaccComponent & | operator= (const ISmaccComponent &)=delete |
| ISmaccComponent (ISmaccComponent &&)=delete | |
| ISmaccComponent & | operator= (ISmaccComponent &&)=delete |
| virtual std::string | getName () const |
Private Member Functions | |
| void | onFailsafeMessage (const px4_msgs::msg::FailsafeFlags::SharedPtr msg) |
Private Attributes | |
| rclcpp::Subscription< px4_msgs::msg::FailsafeFlags >::SharedPtr | subscriber_ |
| bool | hasMessage_ = false |
| bool | attitudeInvalid_ = true |
| bool | localAltitudeInvalid_ = true |
| bool | localPositionInvalid_ = true |
| std::mutex | mutex_ |
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 Attributes inherited from smacc2::ISmaccComponent | |
| ISmaccStateMachine * | stateMachine_ = nullptr |
| ISmaccClient * | owner_ = nullptr |
Definition at line 25 of file cp_failsafe_flags.hpp.
| cl_px4_mr::CpFailsafeFlags::CpFailsafeFlags | ( | ) |
Definition at line 19 of file cp_failsafe_flags.cpp.
|
override |
Definition at line 21 of file cp_failsafe_flags.cpp.
| bool cl_px4_mr::CpFailsafeFlags::hasMessage | ( | ) | const |
Definition at line 40 of file cp_failsafe_flags.cpp.
References hasMessage_, and mutex_.
| bool cl_px4_mr::CpFailsafeFlags::isAttitudeInvalid | ( | ) | const |
Definition at line 46 of file cp_failsafe_flags.cpp.
References attitudeInvalid_, and mutex_.
Referenced by cl_px4_mr::CbConnectMicroRosAgent::onEntry().

| bool cl_px4_mr::CpFailsafeFlags::isHealthOk | ( | ) | const |
Definition at line 64 of file cp_failsafe_flags.cpp.
References attitudeInvalid_, hasMessage_, localAltitudeInvalid_, localPositionInvalid_, and mutex_.
Referenced by cl_px4_mr::CbConnectMicroRosAgent::onEntry().

| bool cl_px4_mr::CpFailsafeFlags::isLocalAltitudeInvalid | ( | ) | const |
Definition at line 52 of file cp_failsafe_flags.cpp.
References localAltitudeInvalid_, and mutex_.
Referenced by cl_px4_mr::CbConnectMicroRosAgent::onEntry().

| bool cl_px4_mr::CpFailsafeFlags::isLocalPositionInvalid | ( | ) | const |
Definition at line 58 of file cp_failsafe_flags.cpp.
References localPositionInvalid_, and mutex_.
Referenced by cl_px4_mr::CbConnectMicroRosAgent::onEntry().

|
private |
Definition at line 31 of file cp_failsafe_flags.cpp.
References attitudeInvalid_, hasMessage_, localAltitudeInvalid_, localPositionInvalid_, and mutex_.
Referenced by onInitialize().

|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 23 of file cp_failsafe_flags.cpp.
References smacc2::ISmaccComponent::getLogger(), smacc2::ISmaccComponent::getNode(), onFailsafeMessage(), and subscriber_.

|
private |
Definition at line 46 of file cp_failsafe_flags.hpp.
Referenced by isAttitudeInvalid(), isHealthOk(), and onFailsafeMessage().
|
private |
Definition at line 45 of file cp_failsafe_flags.hpp.
Referenced by hasMessage(), isHealthOk(), and onFailsafeMessage().
|
private |
Definition at line 47 of file cp_failsafe_flags.hpp.
Referenced by isHealthOk(), isLocalAltitudeInvalid(), and onFailsafeMessage().
|
private |
Definition at line 48 of file cp_failsafe_flags.hpp.
Referenced by isHealthOk(), isLocalPositionInvalid(), and onFailsafeMessage().
|
mutableprivate |
Definition at line 49 of file cp_failsafe_flags.hpp.
Referenced by hasMessage(), isAttitudeInvalid(), isHealthOk(), isLocalAltitudeInvalid(), isLocalPositionInvalid(), and onFailsafeMessage().
|
private |
Definition at line 44 of file cp_failsafe_flags.hpp.
Referenced by onInitialize().