ColAvoid.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 "ColAvoid.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 /// TSMPImpCol
36 NJointControllerRegistration<TSMPImpCol>
38
40 const NJointControllerConfigPtr& config,
41 const VirtualRobot::RobotPtr& robot):
43 {
44 ARMARX_IMPORTANT << getClassName() + " construction done";
45 }
46
47 std::string
48 TSMPImpCol::getClassName(const Ice::Current&) const
49 {
50 return "TSMPImpCol";
51 }
52
53 // /// TSMPAdmCol
54 // NJointControllerRegistration<TSMPAdmCol>
55 // registrationControllerTSMPAdmCol("TSMPAdmCol");
56 //
57 // TSMPAdmCol::TSMPAdmCol(const RobotUnitPtr& robotUnit,
58 // const NJointControllerConfigPtr& config,
59 // const VirtualRobot::RobotPtr& robot):
60 // NJointTSAdmColController(robotUnit, config, robot),
61 // TSMPController<NJointTSAdmColController>(robotUnit, config, robot)
62 // {
63 // ARMARX_IMPORTANT << getClassName() + " construction done";
64 // }
65 //
66 // std::string
67 // TSMPAdmCol::getClassName(const Ice::Current&) const
68 // {
69 // return "TSMPAdmCol";
70 // }
71 //
72 // /// TSMPVelCol
73 // NJointControllerRegistration<TSMPVelCol>
74 // registrationControllerTSMPVelCol("TSMPVelCol");
75 //
76 // TSMPVelCol::TSMPVelCol(const RobotUnitPtr& robotUnit,
77 // const NJointControllerConfigPtr& config,
78 // const VirtualRobot::RobotPtr& robot):
79 // NJointTSVelColController(robotUnit, config, robot),
80 // TSMPController<NJointTSVelColController>(robotUnit, config, robot)
81 // {
82 // ARMARX_IMPORTANT << getClassName() + " construction done";
83 // }
84 //
85 // std::string
86 // TSMPVelCol::getClassName(const Ice::Current&) const
87 // {
88 // return "TSMPVelCol";
89 // }
90
91
92 /// TSMPVelCol
95
97 const NJointControllerConfigPtr& config,
98 const VirtualRobot::RobotPtr& robot):
100 {
101 ARMARX_IMPORTANT << getClassName() + " construction done";
102 }
103
104 std::string
105 TSMPVelCol::getClassName(const Ice::Current&) const
106 {
107 return "TSMPVelCol";
108 }
109
110
111 /// TSMPVeloCol
114
116 const NJointControllerConfigPtr& config,
117 const VirtualRobot::RobotPtr& robot):
119 {
120 ARMARX_IMPORTANT << getClassName() + " construction done";
121 }
122
123 std::string
124 TSMPVeloCol::getClassName(const Ice::Current&) const
125 {
126 return "TSMPVeloCol";
127 }
128
129
130 /// TSMPMixImpVelCol
133
135 const NJointControllerConfigPtr& config,
136 const VirtualRobot::RobotPtr& robot):
138 {
139 ARMARX_IMPORTANT << getClassName() + " construction done";
140 }
141
142 std::string
143 TSMPMixImpVelCol::getClassName(const Ice::Current&) const
144 {
145 return "TSMPMixImpVelCol";
146 }
147} // namespace armarx::control::njoint_mp_controller::task_space
TSMPController(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &)
Definition Template.h:82
std::string getClassName(const Ice::Current &=Ice::emptyCurrent) const override
Definition ColAvoid.cpp:48
TSMPImpCol(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &robot)
Definition ColAvoid.cpp:39
std::string getClassName(const Ice::Current &=Ice::emptyCurrent) const override
Definition ColAvoid.cpp:143
TSMPMixImpVelCol(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &robot)
Definition ColAvoid.cpp:134
std::string getClassName(const Ice::Current &=Ice::emptyCurrent) const override
Definition ColAvoid.cpp:105
TSMPVelCol(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &robot)
Definition ColAvoid.cpp:96
std::string getClassName(const Ice::Current &=Ice::emptyCurrent) const override
Definition ColAvoid.cpp:124
TSMPVeloCol(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &robot)
Definition ColAvoid.cpp:115
#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< TSMPVeloCol > registrationControllerTSMPVeloCol("TSMPVeloCol")
TSMPVeloCol.
NJointControllerRegistration< TSMPVelCol > registrationControllerTSMPVelCol("TSMPVelCol")
TSMPVelCol.
NJointControllerRegistration< TSMPImpCol > registrationControllerTSMPImpCol("TSMPImpCol")
TSMPImpCol.
NJointControllerRegistration< TSMPMixImpVelCol > registrationControllerTSMPMixImpVelCol("TSMPMixImpVelCol")
TSMPMixImpVelCol.
IceUtil::Handle< class RobotUnit > RobotUnitPtr
Definition FTSensor.h:34