TrajectoryController.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 
25 #include <cmath>
26 #include <limits>
27 #include <memory>
28 
29 #include <VirtualRobot/VirtualRobot.h>
30 
32 
37 
38 #include "core.h"
39 
41 {
42 
44  {
46  };
47 
49  {
51  .linear = 500.F, // [mm/s]
52  .angular = 2.F * M_PI / 10.F // [rad/s]
53  };
54 
55  virtual ~TrajectoryControllerParams() = default;
56 
57  virtual Algorithms algorithm() const = 0;
58  virtual aron::data::DictPtr toAron() const = 0;
59  };
60 
62  {
63  public:
64  TrajectoryController() = default;
65  virtual ~TrajectoryController() = default;
66 
68  const Eigen::Isometry3f& global_T_robot) = 0;
69  };
70 
71  using TrajectoryControllerPtr = std::shared_ptr<TrajectoryController>;
72 
73 } // namespace armarx::navigation::traj_ctrl::local
armarx::navigation::traj_ctrl::local::TrajectoryController::control
virtual TrajectoryControllerResult control(const core::LocalTrajectory &goal, const Eigen::Isometry3f &global_T_robot)=0
DynamicScene.h
armarx::navigation::traj_ctrl::local::TrajectoryControllerResult::twist
core::Twist twist
Definition: TrajectoryController.h:45
StaticScene.h
armarx::navigation::core::TwistLimits::linear
float linear
Definition: types.h:93
armarx::navigation::traj_ctrl::local::TrajectoryControllerParams
Definition: TrajectoryController.h:48
core.h
Dict.h
armarx::navigation::traj_ctrl::local::TrajectoryControllerParams::algorithm
virtual Algorithms algorithm() const =0
armarx::navigation::traj_ctrl::local::TrajectoryControllerParams::limits
core::TwistLimits limits
Definition: TrajectoryController.h:50
armarx::navigation::traj_ctrl::local::TrajectoryController
Definition: TrajectoryController.h:61
armarx::navigation::core::Twist
Definition: basic_types.h:53
M_PI
#define M_PI
Definition: MathTools.h:17
armarx::navigation::core::TwistLimits
Definition: types.h:91
armarx::navigation::core::LocalTrajectory
Definition: Trajectory.h:167
armarx::navigation::traj_ctrl::local::Algorithms
Algorithms
Definition: core.h:29
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::navigation::traj_ctrl::local::TrajectoryControllerPtr
std::shared_ptr< TrajectoryController > TrajectoryControllerPtr
Definition: TrajectoryController.h:71
armarx::navigation::traj_ctrl::local::TrajectoryController::~TrajectoryController
virtual ~TrajectoryController()=default
armarx::navigation::traj_ctrl::local::TrajectoryControllerResult
Definition: TrajectoryController.h:43
armarx::navigation::traj_ctrl::local::TrajectoryControllerParams::~TrajectoryControllerParams
virtual ~TrajectoryControllerParams()=default
armarx::navigation::traj_ctrl::local::TrajectoryController::TrajectoryController
TrajectoryController()=default
Trajectory.h
types.h
armarx::navigation::traj_ctrl::local::TrajectoryControllerParams::toAron
virtual aron::data::DictPtr toAron() const =0
armarx::navigation::traj_ctrl::local
This file is part of ArmarX.
Definition: aron_conversions.cpp:12