25using namespace std::chrono_literals;
31 rclcpp::QoS qos(rclcpp::KeepLast(1));
32 qos.transient_local().reliable();
35 getNode()->create_publisher<std_msgs::msg::String>(
"planner_selector", qos);
37 getNode()->create_publisher<std_msgs::msg::String>(
"controller_selector", qos);
42 RCLCPP_INFO(
getLogger(),
"[PlannerSwitcher] Planner Switcher: Trying to set BackwardPlanner");
52 RCLCPP_INFO(
getLogger(),
"[PlannerSwitcher] Planner Switcher: Trying to set BackwardPlanner");
61 RCLCPP_INFO(
getLogger(),
"[PlannerSwitcher] Planner Switcher: Trying to set ForwardPlanner");
70 RCLCPP_INFO(
getLogger(),
"[PlannerSwitcher] Planner Switcher: Trying to set PureSpinningPlanner");
87 std_msgs::msg::String planner_msg;
91 std_msgs::msg::String controller_msg;
std::string desired_local_planner_
rclcpp::Publisher< std_msgs::msg::String >::SharedPtr controller_selector_pub_
void setBackwardPlanner()
void setPureSpinningPlanner()
void setUndoPathBackwardPlanner()
std::string desired_global_planner_
void setDefaultPlanners()
void onInitialize() override
rclcpp::Publisher< std_msgs::msg::String >::SharedPtr planner_selector_pub_
rclcpp::Logger getLogger()
rclcpp::Node::SharedPtr getNode()