TrajectoryFollowingController.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 <
RobotAPI/libraries/core/MultiDimPIDController.h
>
26
27
#include <
armarx/navigation/core/types.h
>
28
#include <
armarx/navigation/trajectory_control/local/TrajectoryController.h
>
29
#include <armarx/navigation/trajectory_control/local/aron/TrajectoryFollowingControllerParams.aron.generated.h>
30
31
namespace
armarx::navigation::traj_ctrl::local
32
{
33
// using arondto::LocalTrajectoryFollowingControllerParams;
34
35
struct
TrajectoryFollowingControllerParams
:
public
TrajectoryControllerParams
36
{
37
core::PIDParams
pidPos
;
38
core::PIDParams
pidOri
;
39
40
float
alpha
= 0;
41
42
Algorithms
algorithm
()
const override
;
43
aron::data::DictPtr
toAron
()
const override
;
44
45
static
TrajectoryFollowingControllerParams
FromAron
(
const
aron::data::DictPtr
& dict);
46
};
47
48
class
TrajectoryFollowingController
:
virtual
public
TrajectoryController
49
{
50
public
:
51
using
Params
=
TrajectoryFollowingControllerParams
;
52
53
TrajectoryFollowingController
(
const
Params
& params);
54
~TrajectoryFollowingController
()
override
=
default
;
55
56
TrajectoryControllerResult
control
(
const
core::LocalTrajectory
& trajectory,
const
Eigen::Isometry3f& global_T_robot)
override
;
57
58
// protected:
59
core::Twist
applyTwistLimits
(
core::Twist
twist);
60
61
private
:
62
const
Params
params;
63
64
65
MultiDimPIDControllerTemplate<3>
pidPos;
66
MultiDimPIDControllerTemplate<3>
pidPosTarget;
67
MultiDimPIDControllerTemplate<3>
pidOri;
68
MultiDimPIDControllerTemplate<3>
pidOriTarget;
69
};
70
using
LocalTrajectoryFollowingControllerPtr
= std::shared_ptr<TrajectoryFollowingController>;
71
72
}
// namespace armarx::navigation::traj_ctrl::local
armarx::navigation::core::PIDParams
Definition:
types.h:84
armarx::navigation::traj_ctrl::local::TrajectoryFollowingControllerParams::algorithm
Algorithms algorithm() const override
Definition:
TrajectoryFollowingController.cpp:32
armarx::navigation::traj_ctrl::local::TrajectoryFollowingControllerParams
Definition:
TrajectoryFollowingController.h:35
armarx::navigation::traj_ctrl::local::TrajectoryFollowingController::TrajectoryFollowingController
TrajectoryFollowingController(const Params ¶ms)
Definition:
TrajectoryFollowingController.cpp:62
TrajectoryController.h
armarx::navigation::traj_ctrl::local::TrajectoryFollowingControllerParams::pidPos
core::PIDParams pidPos
Definition:
TrajectoryFollowingController.h:37
armarx::MultiDimPIDControllerTemplate< 3 >
armarx::navigation::traj_ctrl::local::TrajectoryFollowingControllerParams::FromAron
static TrajectoryFollowingControllerParams FromAron(const aron::data::DictPtr &dict)
Definition:
TrajectoryFollowingController.cpp:49
armarx::navigation::traj_ctrl::local::TrajectoryFollowingControllerParams::pidOri
core::PIDParams pidOri
Definition:
TrajectoryFollowingController.h:38
armarx::navigation::traj_ctrl::local::TrajectoryFollowingControllerParams::alpha
float alpha
Definition:
TrajectoryFollowingController.h:40
armarx::navigation::traj_ctrl::local::TrajectoryControllerParams
Definition:
TrajectoryController.h:48
armarx::navigation::traj_ctrl::local::TrajectoryController
Definition:
TrajectoryController.h:61
armarx::navigation::core::Twist
Definition:
basic_types.h:53
MultiDimPIDController.h
armarx::navigation::traj_ctrl::local::TrajectoryFollowingController
Definition:
TrajectoryFollowingController.h:48
armarx::navigation::core::LocalTrajectory
Definition:
Trajectory.h:167
armarx::navigation::traj_ctrl::local::TrajectoryFollowingController::~TrajectoryFollowingController
~TrajectoryFollowingController() override=default
armarx::navigation::traj_ctrl::local::LocalTrajectoryFollowingControllerPtr
std::shared_ptr< TrajectoryFollowingController > LocalTrajectoryFollowingControllerPtr
Definition:
TrajectoryFollowingController.h:70
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::TrajectoryFollowingController::applyTwistLimits
core::Twist applyTwistLimits(core::Twist twist)
Definition:
TrajectoryFollowingController.cpp:98
armarx::navigation::traj_ctrl::local::TrajectoryFollowingController::control
TrajectoryControllerResult control(const core::LocalTrajectory &trajectory, const Eigen::Isometry3f &global_T_robot) override
Definition:
TrajectoryFollowingController.cpp:139
armarx::navigation::traj_ctrl::local::TrajectoryFollowingControllerParams::toAron
aron::data::DictPtr toAron() const override
Definition:
TrajectoryFollowingController.cpp:38
armarx::navigation::traj_ctrl::local::TrajectoryControllerResult
Definition:
TrajectoryController.h:43
types.h
armarx::navigation::traj_ctrl::local
This file is part of ArmarX.
Definition:
aron_conversions.cpp:12
armarx
navigation
trajectory_control
local
TrajectoryFollowingController.h
Generated on Sat Oct 12 2024 09:14:15 for armarx_documentation by
1.8.17