AutoAPMS
Resilient Robot Mission Management
Loading...
Searching...
No Matches
RosNodeContext Struct Reference

#include <auto_apms_behavior_tree/node/ros_node_context.hpp>

Public Member Functions

 RosNodeContext (rclcpp::Node::SharedPtr node_ptr, const NodeRegistrationParams &tree_node_params)
 
rclcpp::Logger getLogger () const
 
rclcpp::Time getCurrentTime () const
 

Public Attributes

std::weak_ptr< rclcpp::Node > nh
 
std::string default_port_name
 
std::chrono::duration< double > wait_for_server_timeout
 
std::chrono::duration< double > request_timeout
 

Detailed Description

Definition at line 27 of file ros_node_context.hpp.

Constructor & Destructor Documentation

◆ RosNodeContext()

RosNodeContext ( rclcpp::Node::SharedPtr node_ptr,
const NodeRegistrationParams & tree_node_params )

Definition at line 19 of file ros_node_context.cpp.

Member Function Documentation

◆ getLogger()

rclcpp::Logger getLogger ( ) const

Definition at line 27 of file ros_node_context.cpp.

◆ getCurrentTime()

rclcpp::Time getCurrentTime ( ) const

Definition at line 36 of file ros_node_context.cpp.

Member Data Documentation

◆ nh

std::weak_ptr<rclcpp::Node> nh

Handle for the ROS2 node.

Definition at line 32 of file ros_node_context.hpp.

◆ default_port_name

std::string default_port_name

Default port name of the corresponding ROS 2 communication interface.

This has different meaning based on the context:

Definition at line 42 of file ros_node_context.hpp.

◆ wait_for_server_timeout

std::chrono::duration<double> wait_for_server_timeout

Timeout [s] for initially discovering the associated ROS2 node.

Definition at line 44 of file ros_node_context.hpp.

◆ request_timeout

std::chrono::duration<double> request_timeout

Timeout [s] for waiting for a response for the requested service or goal.

Definition at line 46 of file ros_node_context.hpp.


The documentation for this struct was generated from the following files: