AutoAPMS
Resilient Robot Mission Management
|
#include <auto_apms_behavior_tree/node/ros_publisher_node.hpp>
Public Types | |
using | MessageType = MessageT |
using | Config = BT::NodeConfig |
using | Context = RosNodeContext |
Public Member Functions | |
RosPublisherNode (const std::string &instance_name, const Config &config, const Context &context, const rclcpp::QoS &qos={ 10 }) | |
virtual | ~RosPublisherNode ()=default |
BT::NodeStatus | tick () override final |
virtual bool | setMessage (MessageT &msg) |
std::string | getFullName () const |
Static Public Member Functions | |
static BT::PortsList | providedBasicPorts (BT::PortsList addition) |
static BT::PortsList | providedPorts () |
Protected Member Functions | |
const Context & | getRosContext () |
Protected Attributes | |
const rclcpp::Logger | logger_ |
Abstract class to wrap a ROS publisher.
Definition at line 33 of file ros_publisher_node.hpp.
using MessageType = MessageT |
Definition at line 38 of file ros_publisher_node.hpp.
using Config = BT::NodeConfig |
Definition at line 39 of file ros_publisher_node.hpp.
using Context = RosNodeContext |
Definition at line 40 of file ros_publisher_node.hpp.
|
inlineexplicit |
Definition at line 104 of file ros_publisher_node.hpp.
|
virtualdefault |
|
inlinestatic |
Any subclass of RosPublisherNode that has additinal ports must provide a providedPorts method and call providedBasicPorts in it.
addition | Additional ports to add to BT port list |
Definition at line 54 of file ros_publisher_node.hpp.
|
inlinestatic |
Creates list of BT ports.
Definition at line 65 of file ros_publisher_node.hpp.
|
inlinefinaloverride |
Definition at line 155 of file ros_publisher_node.hpp.
|
inlinevirtual |
setMessage is a callback invoked in tick to allow the user to pass the message to be published.
msg | the message. |
Definition at line 187 of file ros_publisher_node.hpp.
|
inline |
Definition at line 193 of file ros_publisher_node.hpp.
|
inlineprotected |
Definition at line 205 of file ros_publisher_node.hpp.
|
protected |
Definition at line 87 of file ros_publisher_node.hpp.