forked from rock-core/base-orogen-types
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.orogen
165 lines (152 loc) · 6.17 KB
/
base.orogen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
name 'base'
version '0.1'
using_library 'base-types'
# Common types that are not opaques
import_types_from "base/Temperature.hpp"
import_types_from "base/Pressure.hpp"
import_types_from "base/Time.hpp"
import_types_from "base/Trajectory.hpp"
import_types_from "base/commands/AUVMotion.hpp"
import_types_from "base/commands/Motion2D.hpp"
import_types_from "base/commands/AUVPosition.hpp"
import_types_from "base/commands/Speed6D.hpp"
import_types_from "base/commands/Joints.hpp"
import_types_from "base/samples/Pressure.hpp"
import_types_from "base/samples/Frame.hpp"
import_types_from "base/samples/LaserScan.hpp"
import_types_from "base/samples/SonarBeam.hpp"
import_types_from "base/samples/SonarScan.hpp"
import_types_from "base/samples/Pointcloud.hpp"
import_types_from "base/samples/DistanceImage.hpp"
import_types_from "base/samples/Joints.hpp"
import_types_from "base/Wrench.hpp"
import_types_from "base/samples/Wrench.hpp"
import_types_from "base/samples/Wrenches.hpp"
import_types_from "base/samples/DepthMap.hpp"
import_types_from "base/JointState.hpp"
import_types_from "base/JointLimits.hpp"
import_types_from "base/JointTransform.hpp"
import_types_from "base/JointsTrajectory.hpp"
import_types_from "base/backward/base/actuators/status.h"
import_types_from "base/backward/base/actuators/commands.h"
import_types_from "base/backward/base/actuators/vehicles.h"
import_types_from "base/backward/base/motion_command.h"
if has_library?('base-lib')
using_library 'base-lib'
# Opaque wrappers for Spline types
import_types_from 'base/wrappers/geometry/Spline.hpp'
end
# Opaque wrappers for Eigen types
import_types_from "base/wrappers/Eigen.hpp"
if has_library?('base-lib')
typekit.opaque_type '/base/geometry/Spline<3>', '/wrappers/geometry/Spline'
typekit.opaque_type '/base/geometry/Spline<1>', '/wrappers/geometry/Spline'
end
typekit.opaque_type '/base/Vector2d', 'wrappers/Vector2d'
typekit.opaque_type '/base/Vector3d', 'wrappers/Vector3d'
typekit.opaque_type '/base/Vector4d', 'wrappers/Vector4d'
typekit.opaque_type '/base/Vector6d', 'wrappers/Vector6d'
typekit.opaque_type '/base/Quaterniond', 'wrappers/Quaterniond'
typekit.opaque_type '/base/Matrix2d', 'wrappers/Matrix2d'
typekit.opaque_type '/base/Matrix3d', 'wrappers/Matrix3d'
typekit.opaque_type '/base/Matrix4d', 'wrappers/Matrix4d'
typekit.opaque_type '/base/Matrix6d', 'wrappers/Matrix6d'
typekit.opaque_type '/base/MatrixXd', 'wrappers/MatrixXd'
typekit.opaque_type '/base/VectorXd', 'wrappers/VectorXd'
if has_library?('base-lib')
import_types_from "base/geometry/Spline.hpp"
end
import_types_from "base/Pose.hpp"
import_types_from "base/Waypoint.hpp"
import_types_from "base/samples/IMUSensors.hpp"
import_types_from "base/samples/RigidBodyState.hpp"
import_types_from "base/samples/RigidBodyAcceleration.hpp"
import_types_from "base/samples/CommandSamples.hpp"
max_sizes '/base/samples/RigidBodyState', 'sourceFrame' => 32, 'targetFrame' => 32
# Explicitely intanciate ro_ptr wrappers for Frame and FramePair as it is the
# standard way to push this kind of types on ports
typekit do
roptr_frame_t = ro_ptr('/base/samples/frame/Frame')
roptr_framepair_t = ro_ptr('/base/samples/frame/FramePair')
if type_export_policy == :all
# Currently the all export from orogen is broken, throw a warning and falling back to selected
OroGen.warn "base/orogen/type export is requested with exporting all types, but this is not supported yet"
OroGen.warn "falling back to :selected."
OroGen.warn "For Details see: https://github.com/orocos-toolchain/orogen/issues/50"
type_export_policy :selected
end
if type_export_policy == :used
# We assume that, if the caller wants a 'used' type policy, it means he
# wants partial exports. Move to 'selected'. oroGen would have changed
# it to 'all'
type_export_policy :selected
end
export_types roptr_frame_t,
roptr_framepair_t,
'/base/Pose',
'/base/commands/Motion2D',
'/base/commands/Speed6D',
'/base/commands/AUVMotion',
'/base/commands/AUVPosition',
'/base/commands/Joints',
'/base/JointState',
'/base/JointLimits',
'/base/JointTransform',
'/base/JointTransformVector',
'/base/JointsTrajectory',
'/base/Trajectory',
'/std/vector</base/Trajectory>',
'/base/samples/Joints',
'/base/samples/Pointcloud',
'/base/samples/DistanceImage',
'/base/samples/LaserScan',
'/base/samples/SonarBeam',
'/base/samples/SonarScan',
'/base/samples/frame/FramePair',
'/base/samples/frame/frame_mode_t',
'/base/samples/frame/Frame',
'/base/samples/RigidBodyState',
'/base/samples/RigidBodyAcceleration',
'/base/samples/IMUSensors',
'/base/Wrench',
'/base/samples/Wrench',
'/base/samples/Wrenches',
'/base/samples/Motion2D',
'/base/samples/DepthMap',
'/base/actuators/Status',
'/base/actuators/Command',
'/base/geometry/Spline<1>',
'/base/geometry/Spline<3>',
'/base/Time',
'/base/Position',
'/std/vector</base/Vector3d>',
'/base/Waypoint',
'/std/vector</base/Waypoint>',
'/std/vector</uint32_t>',
'/base/Vector2d',
'/base/Vector3d',
'/base/Vector4d',
'/base/Vector6d',
'/base/VectorXd',
'/base/Matrix3d',
'/base/Matrix4d',
'/base/Matrix6d',
'/base/MatrixXd',
'/base/Quaterniond',
'/std/string',
'/base/Angle',
'/base/Temperature',
'/base/Pressure',
'/base/samples/Pressure',
'/std/vector</std/string>'
ros_mappings \
'/std/string' => 'std_msgs/String',
'/base/Time' => 'std_msgs/Time',
'/base/samples/frame/Frame' => 'sensor_msgs/Image',
roptr_frame_t => 'sensor_msgs/Image',
'/base/samples/Joints' => 'sensor_msgs/JointState',
'/base/JointsTrajectory' => 'trajectory_msgs/JointTrajectory',
'/base/samples/RigidBodyState' => 'geometry_msgs/PoseStamped',
'/base/Pose' => 'geometry_msgs/Pose',
'/base/samples/Pointcloud' => 'sensor_msgs/PointCloud2'
end