1
+ /*
2
+ * Copyright (C) 2021 Open Source Robotics Foundation
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 GZ_SIM_COMPONENTS_JOINTVELOCITYLIMITS_HH_
18
+ #define GZ_SIM_COMPONENTS_JOINTVELOCITYLIMITS_HH_
19
+
20
+ #include < vector>
21
+ #include < gz/math/Vector2.hh>
22
+
23
+ #include < gz/sim/components/Component.hh>
24
+ #include < gz/sim/components/Factory.hh>
25
+ #include < gz/sim/components/Serialization.hh>
26
+ #include < gz/sim/config.hh>
27
+ #include < gz/sim/Export.hh>
28
+
29
+ namespace gz
30
+ {
31
+ namespace sim
32
+ {
33
+ // Inline bracket to help doxygen filtering.
34
+ inline namespace GZ_SIM_VERSION_NAMESPACE {
35
+
36
+ namespace components
37
+ {
38
+ // / \brief Component for recording the current velocity limits of a joint.
39
+ // / Data are a vector with a Vector2 for each DOF. The X() component of the
40
+ // / Vector2 specifies the minimum velocity limit, the Y() component stands
41
+ // / for maximum limit.
42
+ using JointVelocityLimits = Component<
43
+ std::vector<gz::math::Vector2d>,
44
+ class JointVelocityLimitsTag ,
45
+ serializers::VectorSerializer<gz::math::Vector2d>
46
+ >;
47
+
48
+ GZ_SIM_REGISTER_COMPONENT (
49
+ " gz_sim_components.JointVelocityLimits" , JointVelocityLimits)
50
+ }
51
+ }
52
+ }
53
+ }
54
+
55
+ #endif
0 commit comments