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


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