robotconfiguration.h
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 #ifndef ROBOTCONFIGURATION_H
18 #define ROBOTCONFIGURATION_H
19 
20 #include <string>
21 
23 
26 
28 {
29 
34 {
35 public:
37 
38  RobotConfiguration(const std::string& group_name);
39 
40  RobotConfiguration(const std::string& group_name,
41  const moveit::core::RobotModelConstPtr& robot_model);
42 
43 public:
44  void setRobotModel(moveit::core::RobotModelConstPtr robot_model);
45  void setGroupName(const std::string& group_name);
46  std::string getGroupName() const;
47  void clearModel();
48 
49 protected:
50  std::string group_name_;
51  moveit::core::RobotModelConstPtr robot_model_;
52 
53 };
54 
55 inline void RobotConfiguration::setRobotModel(moveit::core::RobotModelConstPtr robot_model)
56 {
57  robot_model_ = robot_model;
58 }
59 
60 inline void RobotConfiguration::setGroupName(const std::string& group_name)
61 {
62  group_name_ = group_name;
63 }
64 
65 inline std::string RobotConfiguration::getGroupName() const
66 {
67  return group_name_;
68 }
69 
71 {
72  robot_model_ = nullptr;
73 }
74 
75 }
76 
77 #endif // ROBOTCONFIGURATION_H
Interface class to express that a derived class can be converted into a moveit_msgs::RobotState.
void setGroupName(const std::string &group_name)
Interface class to express that a derived class can be converted into a moveit_msgs::Constaints.
Class to define robot configuration in space.
void setRobotModel(moveit::core::RobotModelConstPtr robot_model)


pilz_industrial_motion_testutils
Author(s):
autogenerated on Mon Apr 6 2020 03:17:28