ros2_control - galactic
Loading...
Searching...
No Matches
joint_limits.hpp
1// Copyright 2020 PAL Robotics S.L.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
16
17#ifndef JOINT_LIMITS_INTERFACE__JOINT_LIMITS_HPP_
18#define JOINT_LIMITS_INTERFACE__JOINT_LIMITS_HPP_
19
21{
23{
25 : min_position(0.0),
26 max_position(0.0),
27 max_velocity(0.0),
28 max_acceleration(0.0),
29 max_jerk(0.0),
30 max_effort(0.0),
31 has_position_limits(false),
32 has_velocity_limits(false),
33 has_acceleration_limits(false),
34 has_jerk_limits(false),
35 has_effort_limits(false),
36 angle_wraparound(false)
37 {
38 }
39
40 double min_position;
41 double max_position;
42 double max_velocity;
43 double max_acceleration;
44 double max_jerk;
45 double max_effort;
46
47 bool has_position_limits;
48 bool has_velocity_limits;
49 bool has_acceleration_limits;
50 bool has_jerk_limits;
51 bool has_effort_limits;
52 bool angle_wraparound;
53};
54
56{
57 SoftJointLimits() : min_position(0.0), max_position(0.0), k_position(0.0), k_velocity(0.0) {}
58
59 double min_position;
60 double max_position;
61 double k_position;
62 double k_velocity;
63};
64
65} // namespace joint_limits_interface
66
67#endif // JOINT_LIMITS_INTERFACE__JOINT_LIMITS_HPP_
Definition joint_limits.hpp:21
Definition joint_limits.hpp:23
Definition joint_limits.hpp:56