Base.cpp
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 Jianfeng Gao ( jianfeng dot gao at kit dot edu )
17 * @date 2025
18 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19 * GNU General Public License
20 */
21
22#include "Base.h"
23
24#include <VirtualRobot/MathTools.h>
25#include <VirtualRobot/Nodes/RobotNode.h>
26#include <VirtualRobot/RobotNodeSet.h>
27
29#include <RobotAPI/components/units/RobotUnit/RobotUnit.h> // FIXME avoid this
30
32
34{
35 /// TSMPImp
36 NJointControllerRegistration<TSMPImp>
38
40 const NJointControllerConfigPtr& config,
41 const VirtualRobot::RobotPtr& robot):
43 {
44 ARMARX_IMPORTANT << getClassName() + " construction done";
45 }
46
47 std::string
48 TSMPImp::getClassName(const Ice::Current&) const
49 {
50 return "TSMPImp";
51 }
52
53 /// TSMPAdm
56
58 const NJointControllerConfigPtr& config,
59 const VirtualRobot::RobotPtr& robot):
61 {
62 ARMARX_IMPORTANT << getClassName() + " construction done";
63 }
64
65 std::string
66 TSMPAdm::getClassName(const Ice::Current&) const
67 {
68 return "TSMPAdm";
69 }
70
71 /// TSMPVel
74
76 const NJointControllerConfigPtr& config,
77 const VirtualRobot::RobotPtr& robot):
79 {
80 ARMARX_IMPORTANT << getClassName() + " construction done";
81 }
82
83 std::string
84 TSMPVel::getClassName(const Ice::Current&) const
85 {
86 return "TSMPVel";
87 }
88
89 /// TSMPMixImpVel
92
94 const NJointControllerConfigPtr& config,
95 const VirtualRobot::RobotPtr& robot):
97 {
98 ARMARX_IMPORTANT << getClassName() + " construction done";
99 }
100
101 std::string
102 TSMPMixImpVel::getClassName(const Ice::Current&) const
103 {
104 return "TSMPMixImpVel";
105 }
106} // 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
#define ARMARX_IMPORTANT
The logging level for always important information, but expected behaviour (in contrast to ARMARX_WAR...
Definition Logging.h:190
std::shared_ptr< class Robot > RobotPtr
Definition Bus.h:19
NJointControllerRegistration< TSMPVel > registrationControllerTSMPVel("TSMPVel")
TSMPVel.
NJointControllerRegistration< TSMPImp > registrationControllerTSMPImp("TSMPImp")
TSMPImp.
NJointControllerRegistration< TSMPMixImpVel > registrationControllerTSMPMixImpVel("TSMPMixImpVel")
TSMPMixImpVel.
NJointControllerRegistration< TSMPAdm > registrationControllerTSMPAdm("TSMPAdm")
TSMPAdm.
IceUtil::Handle< class RobotUnit > RobotUnitPtr
Definition FTSensor.h:34