circ.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 CIRC_H
18 #define CIRC_H
19 
20 #include <memory>
21 
22 #include "basecmd.h"
23 #include "circauxiliary.h"
24 
26 {
30 template <class StartType, class AuxiliaryType, class GoalType>
31 class Circ : public BaseCmd<StartType, GoalType>
32 {
33 public:
34  Circ() : BaseCmd<StartType, GoalType>()
35  {
36  }
37 
38 public:
39  void setAuxiliaryConfiguration(AuxiliaryType auxiliary);
40  AuxiliaryType& getAuxiliaryConfiguration();
41  const AuxiliaryType& getAuxiliaryConfiguration() const;
42 
43 public:
45 
46 private:
47  virtual std::string getPlannerId() const override;
48 
49 private:
50  AuxiliaryType auxiliary_;
51 };
52 
53 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
54 template <class StartType, class AuxiliaryType, class GoalType>
56 {
57  auxiliary_ = auxiliary;
58 }
59 
60 template <class StartType, class AuxiliaryType, class GoalType>
62 {
63  return "CIRC";
64 }
65 
66 template <class StartType, class AuxiliaryType, class GoalType>
68 {
70  req.path_constraints = auxiliary_.toPathConstraints();
71 
72  return req;
73 }
74 
75 template <class StartType, class AuxiliaryType, class GoalType>
77 {
78  return auxiliary_;
79 }
80 
81 template <class StartType, class AuxiliaryType, class GoalType>
83 {
84  return auxiliary_;
85 }
86 
87 } // namespace pilz_industrial_motion_testutils
88 
89 #endif // CIRC_H
planning_interface::MotionPlanRequest toRequest() const override
Definition: circ.h:67
Data class storing all information regarding a Circ command.
Definition: circ.h:31
void setAuxiliaryConfiguration(AuxiliaryType auxiliary)
Definition: circ.h:55
virtual std::string getPlannerId() const override
Definition: circ.h:61
moveit_msgs::MotionPlanRequest MotionPlanRequest
virtual planning_interface::MotionPlanRequest toRequest() const override
Definition: basecmd.h:94
AuxiliaryType & getAuxiliaryConfiguration()
Definition: circ.h:76


pilz_industrial_motion_testutils
Author(s):
autogenerated on Mon Feb 28 2022 23:13:36