SMACC
Loading...
Searching...
No Matches
planner_switcher.h
Go to the documentation of this file.
1/*****************************************************************************************************************
2 * ReelRobotix Inc. - Software License Agreement Copyright (c) 2018
3 * Authors: Pablo Inigo Blasco, Brett Aldrich
4 *
5 ******************************************************************************************************************/
6#pragma once
7
9#include <smacc/component.h>
10
11#include <dynamic_reconfigure/Config.h>
12#include <dynamic_reconfigure/DoubleParameter.h>
13#include <dynamic_reconfigure/Reconfigure.h>
14#include <ros/ros.h>
15#include <functional>
16
17namespace cl_move_base_z
18{
20{
21public:
23 void setBackwardPlanner();
26
27 void setForwardPlanner();
29
30 virtual void onInitialize() override;
31
32 // sets ROS defaults local and global planners
33 void setDefaultPlanners();
34
35private:
38 ros::Subscriber dynrecofSub_;
40
41 void updatePlanners(bool subscribecallback = true);
42 void dynreconfCallback(const dynamic_reconfigure::Config::ConstPtr& configuration_update);
43};
44} // namespace cl_move_base_z
void updatePlanners(bool subscribecallback=true)
virtual void onInitialize() override
void dynreconfCallback(const dynamic_reconfigure::Config::ConstPtr &configuration_update)