22#include <nav2_core/global_planner.hpp>
23#include <nav_msgs/msg/path.hpp>
24#include <rclcpp/rclcpp.hpp>
25#include <visualization_msgs/msg/marker_array.hpp>
29namespace backward_global_planner
48 const rclcpp_lifecycle::LifecycleNode::WeakPtr & parent, std::string name,
49 std::shared_ptr<tf2_ros::Buffer> tf,
50 std::shared_ptr<nav2_costmap_2d::Costmap2DROS> costmap_ros);
74 const geometry_msgs::msg::PoseStamped & start,
const geometry_msgs::msg::PoseStamped & goal);
78 rclcpp_lifecycle::LifecycleNode::SharedPtr
nh_;
80 std::shared_ptr<rclcpp_lifecycle::LifecyclePublisher<nav_msgs::msg::Path>>
planPub_;
82 std::shared_ptr<rclcpp_lifecycle::LifecyclePublisher<visualization_msgs::msg::MarkerArray>>
89 void publishGoalMarker(
const geometry_msgs::msg::Pose & pose,
double r,
double g,
double b);
98 std::shared_ptr<tf2_ros::Buffer>
tf_;
103 const geometry_msgs::msg::PoseStamped & start,
const geometry_msgs::msg::PoseStamped & goal,
104 std::vector<geometry_msgs::msg::PoseStamped> & plan);
virtual void activate()
Method to active planner and any threads involved in execution.
double puresSpinningRadStep_
rclcpp_lifecycle::LifecycleNode::SharedPtr nh_
virtual nav_msgs::msg::Path createPlan(const geometry_msgs::msg::PoseStamped &start, const geometry_msgs::msg::PoseStamped &goal)
Method create the plan from a starting and ending goal.
std::shared_ptr< tf2_ros::Buffer > tf_
virtual ~BackwardGlobalPlanner()
Virtual destructor.
void publishGoalMarker(const geometry_msgs::msg::Pose &pose, double r, double g, double b)
virtual void cleanup()
Method to cleanup resources used on shutdown.
std::shared_ptr< rclcpp_lifecycle::LifecyclePublisher< nav_msgs::msg::Path > > planPub_
std::shared_ptr< nav2_costmap_2d::Costmap2DROS > costmap_ros_
virtual void configure(const rclcpp_lifecycle::LifecycleNode::WeakPtr &parent, std::string name, std::shared_ptr< tf2_ros::Buffer > tf, std::shared_ptr< nav2_costmap_2d::Costmap2DROS > costmap_ros)
void onForwardTrailMsg(const nav_msgs::msg::Path::ConstSharedPtr &trailMessage)
std::shared_ptr< rclcpp_lifecycle::LifecyclePublisher< visualization_msgs::msg::MarkerArray > > markersPub_
double transform_tolerance_
virtual void deactivate()
Method to deactivate planner and any threads involved in execution.
void createDefaultBackwardPath(const geometry_msgs::msg::PoseStamped &start, const geometry_msgs::msg::PoseStamped &goal, std::vector< geometry_msgs::msg::PoseStamped > &plan)
double skip_straight_motion_distance_