Base.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 * @package ...
17 * @author Jianfeng Gao ( jianfeng dot gao at kit dot edu )
18 * @date 2025
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
29#include <armarx/control/njoint_mp_controller/task_space/ControllerInterface.h>
31
33{
34 using namespace armarx::control::njoint_controller::task_space;
35 using namespace armarx::control::common;
36
37 // template <typename TSControllerType, typename MPInterfaceType>
38 // class TSMPController :
39 // public TSControllerType,
40 // public mp::MPPool,
41 // virtual public MPInterfaceType
42 // {
43 // public:
44 // using MPListConfig = common::mp::arondto::MPListConfig;
45 //
46 // TSMPController(const RobotUnitPtr& robotUnit,
47 // const NJointControllerConfigPtr& config,
48 // const VirtualRobot::RobotPtr&);
49 //
50 // void updateMPConfig(const ::armarx::aron::data::dto::DictPtr& dto,
51 // const Ice::Current& iceCurrent = Ice::emptyCurrent) override;
52 // void additionalTask() override;
53 // };
54
55 class TSMPImp: public TSMPController<NJointTSImpController, TSMPCtrlInterface>
56 {
57 public:
59 const NJointControllerConfigPtr& config,
60 const VirtualRobot::RobotPtr& robot);
61
62 std::string getClassName(const Ice::Current& = Ice::emptyCurrent) const override;
63 };
64
65 class TSMPAdm: public TSMPController<NJointTSAdmController, TSMPCtrlInterface>
66 {
67 public:
69 const NJointControllerConfigPtr& config,
70 const VirtualRobot::RobotPtr& robot);
71
72 std::string getClassName(const Ice::Current& = Ice::emptyCurrent) const override;
73 };
74
75 class TSMPVel: public TSMPController<NJointTSVelController, TSMPCtrlInterface>
76 {
77 public:
79 const NJointControllerConfigPtr& config,
80 const VirtualRobot::RobotPtr& robot);
81
82 std::string getClassName(const Ice::Current& = Ice::emptyCurrent) const override;
83 };
84
85 class TSMPMixImpVel: public TSMPController<NJointTSMixImpVelController, TSMPCtrlInterface>
86 {
87 public:
89 const NJointControllerConfigPtr& config,
90 const VirtualRobot::RobotPtr& robot);
91
92 std::string getClassName(const Ice::Current& = Ice::emptyCurrent) const override;
93 };
94} // namespace armarx::control::njoint_mp_controller::task_space
std::string getClassName(const Ice::Current &=Ice::emptyCurrent) const override
Definition Base.cpp:66
TSMPAdm(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &robot)
Definition Base.cpp:57
TSMPController(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &)
Definition Template.h:82
std::string getClassName(const Ice::Current &=Ice::emptyCurrent) const override
================================== TSImp ==================================
Definition Base.cpp:48
TSMPImp(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &robot)
Definition Base.cpp:39
std::string getClassName(const Ice::Current &=Ice::emptyCurrent) const override
================================== TSMixImpVel ==================================
Definition Base.cpp:102
TSMPMixImpVel(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &robot)
Definition Base.cpp:93
std::string getClassName(const Ice::Current &=Ice::emptyCurrent) const override
Definition Base.cpp:84
TSMPVel(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &robot)
Definition Base.cpp:75
std::shared_ptr< class Robot > RobotPtr
Definition Bus.h:19
IceUtil::Handle< class RobotUnit > RobotUnitPtr
Definition FTSensor.h:34