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 
38 
40 {
41  namespace global
42  {
43 
45  {
53  };
54 
56  {
58  .linear = 500.F, // [mm/s]
59  .angular = 2.F * M_PIf32 / 10.F // [rad/s]
60  };
61 
62  virtual ~TrajectoryControllerParams() = default;
63 
64  virtual Algorithms algorithm() const = 0;
65  virtual aron::data::DictPtr toAron() const = 0;
66  };
67 
69  {
70  public:
71  TrajectoryController() = default;
72  virtual ~TrajectoryController() = default;
73 
75  const core::Pose& global_T_robot) = 0;
76  };
77 
78  using TrajectoryControllerPtr = std::shared_ptr<TrajectoryController>;
79 
80  } // namespace global
81 
82 
83 } // namespace armarx::navigation::traj_ctrl
armarx::navigation::core::GlobalTrajectory
Definition: Trajectory.h:68
armarx::navigation::traj_ctrl::global::TrajectoryControllerResult::currentOrientation
float currentOrientation
Definition: TrajectoryController.h:49
armarx::navigation::traj_ctrl::global::TrajectoryControllerResult
Definition: TrajectoryController.h:44
armarx::navigation::traj_ctrl::global::TrajectoryControllerParams::algorithm
virtual Algorithms algorithm() const =0
armarx::navigation::traj_ctrl::global::TrajectoryController::control
virtual TrajectoryControllerResult control(const core::GlobalTrajectory &goal, const core::Pose &global_T_robot)=0
armarx::navigation::core::Pose
Eigen::Isometry3f Pose
Definition: basic_types.h:31
armarx::navigation::traj_ctrl::global::TrajectoryControllerResult::desiredOrientation
float desiredOrientation
Definition: TrajectoryController.h:50
DynamicScene.h
armarx::navigation::traj_ctrl::global::Algorithms
Algorithms
Definition: core.h:30
armarx::navigation::traj_ctrl::global::TrajectoryControllerParams::toAron
virtual aron::data::DictPtr toAron() const =0
StaticScene.h
armarx::navigation::core::TwistLimits::linear
float linear
Definition: types.h:93
armarx::navigation::traj_ctrl::global::TrajectoryControllerResult::dropPoint
core::GlobalTrajectoryPoint dropPoint
Definition: TrajectoryController.h:47
armarx::navigation::traj_ctrl::global::TrajectoryControllerParams::~TrajectoryControllerParams
virtual ~TrajectoryControllerParams()=default
armarx::navigation::traj_ctrl::global::TrajectoryController::TrajectoryController
TrajectoryController()=default
Dict.h
armarx::navigation::core::GlobalTrajectoryPoint
Definition: Trajectory.h:35
armarx::navigation::core::Twist
Definition: basic_types.h:53
armarx::navigation::traj_ctrl::global::TrajectoryControllerResult::isFinalSegment
bool isFinalSegment
Definition: TrajectoryController.h:48
core.h
armarx::navigation::traj_ctrl::global::TrajectoryControllerResult::orientationError
float orientationError
Definition: TrajectoryController.h:51
armarx::navigation::core::TwistLimits
Definition: types.h:91
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::navigation::traj_ctrl::global::TrajectoryControllerResult::twist
core::Twist twist
Definition: TrajectoryController.h:46
armarx::navigation::traj_ctrl::global::TrajectoryControllerResult::positionError
float positionError
Definition: TrajectoryController.h:52
armarx::navigation::traj_ctrl::global::TrajectoryControllerParams::limits
core::TwistLimits limits
Definition: TrajectoryController.h:57
Trajectory.h
armarx::navigation::traj_ctrl::global::TrajectoryController::~TrajectoryController
virtual ~TrajectoryController()=default
armarx::navigation::traj_ctrl
This file is part of ArmarX.
Definition: fwd.h:41
types.h
armarx::navigation::traj_ctrl::global::TrajectoryControllerPtr
std::shared_ptr< TrajectoryController > TrajectoryControllerPtr
Definition: TrajectoryController.h:78
armarx::navigation::traj_ctrl::global::TrajectoryControllerParams
Definition: TrajectoryController.h:55
armarx::navigation::traj_ctrl::global::TrajectoryController
Definition: TrajectoryController.h:68