Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
g
i
j
l
m
n
o
p
s
t
v
w
x
Functions
+
Variables
_
a
b
c
d
e
g
i
j
l
n
p
s
t
v
x
Typedefs
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
l
m
o
p
r
s
t
v
w
x
~
+
Functions
_
a
b
c
e
f
g
h
i
j
l
m
o
p
r
s
t
w
x
~
+
Variables
_
a
c
d
e
f
g
j
l
p
r
s
t
v
Typedefs
+
Files
File List
src
robotconfiguration.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 Pilz GmbH & Co. KG
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#include "
pilz_industrial_motion_testutils/robotconfiguration.h
"
18
19
#include <stdexcept>
20
21
namespace
pilz_industrial_motion_testutils
22
{
23
RobotConfiguration::RobotConfiguration
() :
RobotStateMsgConvertible
(),
GoalConstraintMsgConvertible
()
24
{
25
}
26
27
RobotConfiguration::RobotConfiguration
(
const
std::string& group_name)
28
:
RobotStateMsgConvertible
(),
GoalConstraintMsgConvertible
(),
group_name_
(group_name)
29
{
30
}
31
32
RobotConfiguration::RobotConfiguration
(
const
std::string& group_name,
33
const
moveit::core::RobotModelConstPtr& robot_model)
34
:
RobotStateMsgConvertible
(),
GoalConstraintMsgConvertible
(),
group_name_
(group_name),
robot_model_
(robot_model)
35
{
36
if
(robot_model && (!
robot_model_
->hasJointModelGroup(
group_name_
)))
37
{
38
std::string msg{
"Specified robot model does not contain specified group \""
};
39
msg.append(group_name).append(
"\""
);
40
throw
std::invalid_argument(msg);
41
}
42
}
43
44
}
// namespace pilz_industrial_motion_testutils
pilz_industrial_motion_testutils
Definition:
basecmd.h:24
pilz_industrial_motion_testutils::RobotStateMsgConvertible
Interface class to express that a derived class can be converted into a moveit_msgs::RobotState.
Definition:
robotstatemsgconvertible.h:29
pilz_industrial_motion_testutils::RobotConfiguration::robot_model_
moveit::core::RobotModelConstPtr robot_model_
Definition:
robotconfiguration.h:49
pilz_industrial_motion_testutils::RobotConfiguration::RobotConfiguration
RobotConfiguration()
Definition:
robotconfiguration.cpp:23
pilz_industrial_motion_testutils::RobotConfiguration::group_name_
std::string group_name_
Definition:
robotconfiguration.h:48
pilz_industrial_motion_testutils::GoalConstraintMsgConvertible
Interface class to express that a derived class can be converted into a moveit_msgs::Constaints.
Definition:
goalconstraintsmsgconvertible.h:31
robotconfiguration.h
pilz_industrial_motion_testutils
Author(s):
autogenerated on Mon Feb 28 2022 23:13:36