SafetyController.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 <memory>
26 
27 #include <VirtualRobot/VirtualRobot.h>
28 
30 
31 #include "core.h"
36 
38 {
40  {
42  };
43 
45  {
46  virtual ~SafetyControllerParams() = default;
47 
48  virtual Algorithms algorithm() const = 0;
49  virtual aron::data::DictPtr toAron() const = 0;
50  };
51 
53  {
54  public:
55  SafetyController(const core::Scene& context);
56  virtual ~SafetyController() = default;
57 
58  virtual SafetyControllerResult control(const core::Twist& twist) = 0;
59 
60  protected:
61  private:
62  const core::Scene& context;
63  };
64 
65  using SafetyControllerPtr = std::shared_ptr<SafetyController>;
66 } // namespace armarx::navigation::safe_ctrl
armarx::navigation::safe_ctrl::SafetyControllerParams::algorithm
virtual Algorithms algorithm() const =0
armarx::navigation::safe_ctrl::SafetyControllerResult
Definition: SafetyController.h:39
core.h
DynamicScene.h
StaticScene.h
Dict.h
armarx::navigation::core::Twist
Definition: basic_types.h:53
armarx::navigation::safe_ctrl
This file is part of ArmarX.
Definition: fwd.h:47
armarx::navigation::safe_ctrl::SafetyControllerPtr
std::shared_ptr< SafetyController > SafetyControllerPtr
Definition: fwd.h:50
armarx::navigation::safe_ctrl::SafetyController::SafetyController
SafetyController(const core::Scene &context)
Definition: SafetyController.cpp:5
armarx::navigation::safe_ctrl::SafetyController::control
virtual SafetyControllerResult control(const core::Twist &twist)=0
armarx::navigation::safe_ctrl::SafetyControllerParams::~SafetyControllerParams
virtual ~SafetyControllerParams()=default
armarx::navigation::safe_ctrl::SafetyControllerParams
Definition: SafetyController.h:44
armarx::navigation::core::Scene
Definition: types.h:71
armarx::navigation::safe_ctrl::Algorithms
Algorithms
Definition: core.h:30
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::navigation::safe_ctrl::SafetyControllerResult::twist
core::Twist twist
Definition: SafetyController.h:41
armarx::navigation::safe_ctrl::SafetyControllerParams::toAron
virtual aron::data::DictPtr toAron() const =0
armarx::navigation::safe_ctrl::SafetyController::~SafetyController
virtual ~SafetyController()=default
armarx::navigation::safe_ctrl::SafetyController
Definition: SafetyController.h:52
Trajectory.h
types.h