18#ifndef EASYNAV_PLANNER__PLANNERNODE_HPP_
19#define EASYNAV_PLANNER__PLANNERNODE_HPP_
21#include "rclcpp/macros.hpp"
22#include "rclcpp_lifecycle/lifecycle_node.hpp"
23#include "easynav_core/PlannerMethodBase.hpp"
24#include "pluginlib/class_loader.hpp"
25#include "nav_msgs/msg/path.hpp"
41 using
CallbackReturnT = rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn;
48 const rclcpp::NodeOptions & options = rclcpp::NodeOptions());
99 [[nodiscard]] nav_msgs::msg::Path
get_path() const;
122 std::unique_ptr<pluginlib::ClassLoader<PlannerMethodBase>> planner_loader_;
125 std::shared_ptr<PlannerMethodBase> planner_method_ {
nullptr};
A blackboard-like structure to hold the current state of the navigation system.
A generic, type-safe, thread-safe blackboard to hold runtime state.
Definition NavState.hpp:82
void cycle(std::shared_ptr< NavState > nav_state, bool trigger=false)
Execute a non-real-time cycle.
Definition PlannerNode.cpp:136
CallbackReturnT on_activate(const rclcpp_lifecycle::State &state)
Activate the node.
Definition PlannerNode.cpp:106
CallbackReturnT on_configure(const rclcpp_lifecycle::State &state)
Configure the node.
Definition PlannerNode.cpp:62
CallbackReturnT on_shutdown(const rclcpp_lifecycle::State &state)
Shutdown the node.
Definition PlannerNode.cpp:124
const rclcpp::Time get_last_execution_ts() const
Get the timestamp of the last non-RT execution.
Definition PlannerNode.cpp:156
CallbackReturnT on_cleanup(const rclcpp_lifecycle::State &state)
Clean up the node.
Definition PlannerNode.cpp:118
nav_msgs::msg::Path get_path() const
Get the current planned path.
const rclcpp::Time get_last_rt_execution_ts() const
Get the timestamp of the last real-time execution.
Definition PlannerNode.cpp:148
CallbackReturnT on_error(const rclcpp_lifecycle::State &state)
Handle lifecycle transition errors.
Definition PlannerNode.cpp:130
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn CallbackReturnT
Definition PlannerNode.hpp:41
PlannerNode(const rclcpp::NodeOptions &options=rclcpp::NodeOptions())
Constructor.
Definition PlannerNode.cpp:30
CallbackReturnT on_deactivate(const rclcpp_lifecycle::State &state)
Deactivate the node.
Definition PlannerNode.cpp:112
Definition CircularBuffer.hpp:23
Definition PointPerception.hpp:49