constraint_params.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
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 
18 #ifndef COB_TWIST_CONTROLLER_CONSTRAINTS_CONSTRAINT_PARAMS_H
19 #define COB_TWIST_CONTROLLER_CONSTRAINTS_CONSTRAINT_PARAMS_H
20 
21 #include <vector>
22 #include <string>
23 #include <ros/ros.h>
24 #include <boost/shared_ptr.hpp>
25 #include <boost/scoped_ptr.hpp>
26 
28 
29 /* BEGIN ConstraintParamsBase ***********************************************************************************/
32 {
33  public:
35  const std::string& id = std::string()) :
36  params_(params),
37  id_(id)
38  {}
39 
41  {}
42 
43  const std::string id_;
45 };
46 /* END ConstraintParamsBase *************************************************************************************/
47 
48 /* BEGIN ConstraintParamsCA *************************************************************************************/
51 {
52  public:
54  const std::vector<std::string>& frame_names = std::vector<std::string>(),
55  const std::string& id = std::string()) :
56  ConstraintParamsBase(params, id),
57  frame_names_(frame_names)
58  {}
59 
61  ConstraintParamsBase(cpca.params_, cpca.id_),
62  frame_names_(cpca.frame_names_),
63  current_distances_(cpca.current_distances_)
64  {}
65 
67  {}
68 
69  std::vector<std::string> frame_names_;
70  std::vector<ObstacleDistanceData> current_distances_;
71 };
72 /* END ConstraintParamsCA ***************************************************************************************/
73 
74 /* BEGIN ConstraintParamsJLA ************************************************************************************/
77 {
78  public:
80  const LimiterParams& limiter_params = LimiterParams(),
81  const std::string& id = std::string()) :
82  ConstraintParamsBase(params, id),
83  joint_idx_(-1),
84  limiter_params_(limiter_params)
85  {}
86 
88  ConstraintParamsBase(cpjla.params_, cpjla.id_),
89  joint_(cpjla.joint_),
90  joint_idx_(cpjla.joint_idx_),
91  limiter_params_(cpjla.limiter_params_)
92  {}
93 
95  {}
96 
97  std::string joint_;
98  int32_t joint_idx_;
100 };
101 /* END ConstraintParamsJLA **************************************************************************************/
102 
104 
105 #endif // COB_TWIST_CONTROLLER_CONSTRAINTS_CONSTRAINT_PARAMS_H
ConstraintParamsBase(const ConstraintParams &params, const std::string &id=std::string())
std::vector< std::string > frame_names_
Class that represents the parameters for the Collision Avoidance constraint.
ConstraintParamsCA(const ConstraintParams &params, const std::vector< std::string > &frame_names=std::vector< std::string >(), const std::string &id=std::string())
const ConstraintParams params_
boost::shared_ptr< ConstraintParamsBase > ConstraintParamsBase_t
ConstraintParamsJLA(const ConstraintParams &params, const LimiterParams &limiter_params=LimiterParams(), const std::string &id=std::string())
Class that represents the parameters for the Collision Avoidance constraint.
ConstraintParamsCA(const ConstraintParamsCA &cpca)
const std::string id_
ConstraintParamsJLA(const ConstraintParamsJLA &cpjla)
virtual ~ConstraintParamsCA()
Base class for all derived parameter classes.
virtual ~ConstraintParamsJLA()
const LimiterParams & limiter_params_
std::vector< ObstacleDistanceData > current_distances_


cob_twist_controller
Author(s): Felix Messmer , Marco Bezzon , Christoph Mark , Francisco Moreno
autogenerated on Thu Apr 8 2021 02:40:00