TimedElasticBands.h
Go to the documentation of this file.
1 /**
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @author Fabian Reister ( fabian dot reister at kit dot edu )
17  * @author Christian R. G. Dreher ( c dot dreher at kit dot edu )
18  * @date 2021
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
26 
33 
34 #include <teb_local_planner/homotopy_class_planner.h>
35 #include <teb_local_planner/teb_config.h>
36 
38 {
39  class TimedElasticBands : virtual public LocalPlanner
40  {
41  public:
43 
44  TimedElasticBands(const Params& params, const core::Scene& ctx);
45  ~TimedElasticBands() override = default;
46 
47  void init(const core::GlobalTrajectory& initialTrajectory);
48 
49  std::optional<LocalPlannerResult> plan(const core::GlobalTrajectory& goal) override;
50 
51  private:
52  void readDefaultConfig(arondto::TimedElasticBandsParams& target);
53  void fillObstacles();
54  void setTebCostmap();
55 
56  protected:
58 
59  private:
60  const core::Scene& scene;
61 
62  teb_local_planner::TebConfig cfg_;
63  teb_local_planner::ObstContainer teb_obstacles;
64  TebObstacleManager obstManager;
65  teb_local_planner::PoseSequence teb_globalPath;
66  std::optional<teb_local_planner::Costmap> teb_costmap;
67  std::unique_ptr<teb_local_planner::HomotopyClassPlanner> hcp_{nullptr};
68  };
69 } // namespace armarx::navigation::local_planning
armarx::navigation::core::GlobalTrajectory
Definition: Trajectory.h:68
basic_types.h
armarx::navigation::local_planning::TimedElasticBands::~TimedElasticBands
~TimedElasticBands() override=default
LocalPlanner.h
boost::target
Vertex target(const detail::edge_base< Directed, Vertex > &e, const PCG &)
Definition: point_cloud_graph.h:688
TimedElasticBandsParams.h
armarx::navigation::local_planning
This file is part of ArmarX.
Definition: fwd.h:35
Dict.h
armarx::navigation::local_planning::TimedElasticBands
Definition: TimedElasticBands.h:39
armarx::navigation::local_planning::TimedElasticBands::init
void init(const core::GlobalTrajectory &initialTrajectory)
armarx::navigation::local_planning::TimedElasticBandsParams
Definition: TimedElasticBandsParams.h:35
armarx::navigation::local_planning::TebObstacleManager
Definition: TebObstacleManager.h:36
core.h
armarx::navigation::core::Scene
Definition: types.h:71
armarx::navigation::local_planning::TimedElasticBands::plan
std::optional< LocalPlannerResult > plan(const core::GlobalTrajectory &goal) override
Definition: TimedElasticBands.cpp:89
armarx::navigation::local_planning::LocalPlanner
Definition: LocalPlanner.h:53
armarx::navigation::local_planning::TimedElasticBands::params
Params params
Definition: TimedElasticBands.h:57
Trajectory.h
TebObstacleManager.h
armarx::navigation::local_planning::TimedElasticBands::TimedElasticBands
TimedElasticBands(const Params &params, const core::Scene &ctx)
Definition: TimedElasticBands.cpp:34