|
SMACC2
|
#include <cp_tf_broadcaster.hpp>


Public Member Functions | |
| CpTfBroadcaster (TfBroadcasterParams params={}) | |
| virtual | ~CpTfBroadcaster () |
| void | onInitialize () override |
| const TfBroadcasterParams & | params () const |
Public Member Functions inherited from smacc2::ISmaccComponent | |
| ISmaccComponent () | |
| virtual | ~ISmaccComponent () |
| virtual std::string | getName () const |
Private Member Functions | |
| void | onAttitude (const px4_msgs::msg::VehicleAttitude::SharedPtr msg) |
Private Attributes | |
| TfBroadcasterParams | params_ |
| CpVehicleLocalPosition * | localPosition_ = nullptr |
| rclcpp::Subscription< px4_msgs::msg::VehicleAttitude >::SharedPtr | attitudeSub_ |
| std::shared_ptr< tf2_ros::TransformBroadcaster > | broadcaster_ |
| std::shared_ptr< tf2_ros::StaticTransformBroadcaster > | staticBroadcaster_ |
| std::chrono::steady_clock::time_point | lastSent_ |
| bool | firstSent_ = false |
| rclcpp::Publisher< nav_msgs::msg::Path >::SharedPtr | trailPub_ |
| nav_msgs::msg::Path | trail_ |
| std::chrono::steady_clock::time_point | lastTrailSent_ |
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 72 of file cp_tf_broadcaster.hpp.
|
explicit |
Definition at line 44 of file cp_tf_broadcaster.cpp.
|
virtual |
Definition at line 46 of file cp_tf_broadcaster.cpp.
|
private |
Definition at line 105 of file cp_tf_broadcaster.cpp.
References cl_px4_mr::TfBroadcasterParams::baseFrame, broadcaster_, firstSent_, cl_px4_mr::TfBroadcasterParams::followFrame, smacc2::ISmaccComponent::getLogger(), smacc2::ISmaccComponent::getNode(), cl_px4_mr::CpVehicleLocalPosition::getX(), cl_px4_mr::CpVehicleLocalPosition::getY(), cl_px4_mr::CpVehicleLocalPosition::getZ(), cl_px4_mr::CpVehicleLocalPosition::isValid(), lastSent_, lastTrailSent_, localPosition_, cl_px4_mr::TfBroadcasterParams::mapFrame, cl_px4_mr::TfBroadcasterParams::maxRateHz, params_, trail_, cl_px4_mr::TfBroadcasterParams::trailMaxPoses, cl_px4_mr::TfBroadcasterParams::trailMinStepM, trailPub_, and cl_px4_mr::TfBroadcasterParams::trailRateHz.
Referenced by onInitialize().


|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 48 of file cp_tf_broadcaster.cpp.
References attitudeSub_, cl_px4_mr::TfBroadcasterParams::baseFrame, broadcaster_, cl_px4_mr::TfBroadcasterParams::followFrame, smacc2::ISmaccComponent::getLogger(), smacc2::ISmaccComponent::getNode(), localPosition_, cl_px4_mr::TfBroadcasterParams::mapFrame, cl_px4_mr::TfBroadcasterParams::maxRateHz, onAttitude(), params_, cl_px4_mr::TfBroadcasterParams::publishSensorFrame, cl_px4_mr::TfBroadcasterParams::publishTrail, smacc2::ISmaccComponent::requiresComponent(), cl_px4_mr::TfBroadcasterParams::sensorFrame, cl_px4_mr::TfBroadcasterParams::sensorRpy, cl_px4_mr::TfBroadcasterParams::sensorXyz, staticBroadcaster_, trail_, cl_px4_mr::TfBroadcasterParams::trailMinStepM, trailPub_, cl_px4_mr::TfBroadcasterParams::trailRateHz, and cl_px4_mr::TfBroadcasterParams::trailTopic.

|
inline |
|
private |
Definition at line 87 of file cp_tf_broadcaster.hpp.
Referenced by onInitialize().
|
private |
Definition at line 88 of file cp_tf_broadcaster.hpp.
Referenced by onAttitude(), and onInitialize().
|
private |
Definition at line 91 of file cp_tf_broadcaster.hpp.
Referenced by onAttitude().
|
private |
Definition at line 90 of file cp_tf_broadcaster.hpp.
Referenced by onAttitude().
|
private |
Definition at line 94 of file cp_tf_broadcaster.hpp.
Referenced by onAttitude().
|
private |
Definition at line 86 of file cp_tf_broadcaster.hpp.
Referenced by onAttitude(), and onInitialize().
|
private |
Definition at line 85 of file cp_tf_broadcaster.hpp.
Referenced by onAttitude(), onInitialize(), and params().
|
private |
Definition at line 89 of file cp_tf_broadcaster.hpp.
Referenced by onInitialize().
|
private |
Definition at line 93 of file cp_tf_broadcaster.hpp.
Referenced by onAttitude(), and onInitialize().
|
private |
Definition at line 92 of file cp_tf_broadcaster.hpp.
Referenced by onAttitude(), and onInitialize().