rosruby_msgs 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/actionlib_msgs/GoalID.rb +106 -0
- data/lib/actionlib_msgs/GoalStatus.rb +160 -0
- data/lib/actionlib_msgs/GoalStatusArray.rb +207 -0
- data/lib/actionlib_tutorials/AveragingAction.rb +322 -0
- data/lib/actionlib_tutorials/AveragingActionFeedback.rb +213 -0
- data/lib/actionlib_tutorials/AveragingActionGoal.rb +167 -0
- data/lib/actionlib_tutorials/AveragingActionResult.rb +209 -0
- data/lib/actionlib_tutorials/AveragingFeedback.rb +93 -0
- data/lib/actionlib_tutorials/AveragingGoal.rb +85 -0
- data/lib/actionlib_tutorials/AveragingResult.rb +87 -0
- data/lib/actionlib_tutorials/FibonacciAction.rb +334 -0
- data/lib/actionlib_tutorials/FibonacciActionFeedback.rb +216 -0
- data/lib/actionlib_tutorials/FibonacciActionGoal.rb +167 -0
- data/lib/actionlib_tutorials/FibonacciActionResult.rb +214 -0
- data/lib/actionlib_tutorials/FibonacciFeedback.rb +93 -0
- data/lib/actionlib_tutorials/FibonacciGoal.rb +85 -0
- data/lib/actionlib_tutorials/FibonacciResult.rb +91 -0
- data/lib/geometry_msgs/Point.rb +88 -0
- data/lib/geometry_msgs/Point32.rb +94 -0
- data/lib/geometry_msgs/PointStamped.rb +133 -0
- data/lib/geometry_msgs/Polygon.rb +112 -0
- data/lib/geometry_msgs/PolygonStamped.rb +159 -0
- data/lib/geometry_msgs/Pose.rb +110 -0
- data/lib/geometry_msgs/Pose2D.rb +88 -0
- data/lib/geometry_msgs/PoseArray.rb +174 -0
- data/lib/geometry_msgs/PoseStamped.rb +150 -0
- data/lib/geometry_msgs/PoseWithCovariance.rb +125 -0
- data/lib/geometry_msgs/PoseWithCovarianceStamped.rb +169 -0
- data/lib/geometry_msgs/Quaternion.rb +91 -0
- data/lib/geometry_msgs/QuaternionStamped.rb +136 -0
- data/lib/geometry_msgs/Transform.rb +111 -0
- data/lib/geometry_msgs/TransformStamped.rb +168 -0
- data/lib/geometry_msgs/Twist.rb +100 -0
- data/lib/geometry_msgs/TwistStamped.rb +140 -0
- data/lib/geometry_msgs/TwistWithCovariance.rb +115 -0
- data/lib/geometry_msgs/TwistWithCovarianceStamped.rb +158 -0
- data/lib/geometry_msgs/Vector3.rb +88 -0
- data/lib/geometry_msgs/Vector3Stamped.rb +133 -0
- data/lib/geometry_msgs/Wrench.rb +101 -0
- data/lib/geometry_msgs/WrenchStamped.rb +141 -0
- data/lib/nav_msgs/GetMap.rb +280 -0
- data/lib/nav_msgs/GetPlan.rb +406 -0
- data/lib/nav_msgs/GridCells.rb +153 -0
- data/lib/nav_msgs/MapMetaData.rb +130 -0
- data/lib/nav_msgs/OccupancyGrid.rb +187 -0
- data/lib/nav_msgs/Odometry.rb +223 -0
- data/lib/nav_msgs/Path.rb +205 -0
- data/lib/roscpp/Empty.rb +166 -0
- data/lib/roscpp/GetLoggers.rb +205 -0
- data/lib/roscpp/Logger.rb +98 -0
- data/lib/roscpp/SetLoggerLevel.rb +189 -0
- data/lib/roscpp_tutorials/TwoInts.rb +185 -0
- data/lib/rosgraph_msgs/Clock.rb +90 -0
- data/lib/rosgraph_msgs/Log.rb +210 -0
- data/lib/sensor_msgs/CameraInfo.rb +325 -0
- data/lib/sensor_msgs/ChannelFloat32.rb +122 -0
- data/lib/sensor_msgs/CompressedImage.rb +151 -0
- data/lib/sensor_msgs/Image.rb +179 -0
- data/lib/sensor_msgs/Imu.rb +193 -0
- data/lib/sensor_msgs/JointState.rb +195 -0
- data/lib/sensor_msgs/Joy.rb +141 -0
- data/lib/sensor_msgs/JoyFeedback.rb +104 -0
- data/lib/sensor_msgs/JoyFeedbackArray.rb +116 -0
- data/lib/sensor_msgs/LaserScan.rb +178 -0
- data/lib/sensor_msgs/NavSatFix.rb +215 -0
- data/lib/sensor_msgs/NavSatStatus.rb +115 -0
- data/lib/sensor_msgs/PointCloud.rb +222 -0
- data/lib/sensor_msgs/PointCloud2.rb +226 -0
- data/lib/sensor_msgs/PointField.rb +119 -0
- data/lib/sensor_msgs/Range.rb +157 -0
- data/lib/sensor_msgs/RegionOfInterest.rb +106 -0
- data/lib/sensor_msgs/SetCameraInfo.rb +437 -0
- data/lib/sensor_msgs/TimeReference.rb +140 -0
- data/lib/std_msgs/Bool.rb +83 -0
- data/lib/std_msgs/Byte.rb +83 -0
- data/lib/std_msgs/ByteMultiArray.rb +165 -0
- data/lib/std_msgs/Char.rb +82 -0
- data/lib/std_msgs/ColorRGBA.rb +89 -0
- data/lib/std_msgs/Duration.rb +87 -0
- data/lib/std_msgs/Empty.rb +75 -0
- data/lib/std_msgs/Float32.rb +82 -0
- data/lib/std_msgs/Float32MultiArray.rb +165 -0
- data/lib/std_msgs/Float64.rb +82 -0
- data/lib/std_msgs/Float64MultiArray.rb +165 -0
- data/lib/std_msgs/Header.rb +112 -0
- data/lib/std_msgs/Int16.rb +83 -0
- data/lib/std_msgs/Int16MultiArray.rb +165 -0
- data/lib/std_msgs/Int32.rb +82 -0
- data/lib/std_msgs/Int32MultiArray.rb +165 -0
- data/lib/std_msgs/Int64.rb +82 -0
- data/lib/std_msgs/Int64MultiArray.rb +165 -0
- data/lib/std_msgs/Int8.rb +83 -0
- data/lib/std_msgs/Int8MultiArray.rb +165 -0
- data/lib/std_msgs/MultiArrayDimension.rb +95 -0
- data/lib/std_msgs/MultiArrayLayout.rb +141 -0
- data/lib/std_msgs/String.rb +87 -0
- data/lib/std_msgs/Time.rb +87 -0
- data/lib/std_msgs/UInt16.rb +83 -0
- data/lib/std_msgs/UInt16MultiArray.rb +165 -0
- data/lib/std_msgs/UInt32.rb +81 -0
- data/lib/std_msgs/UInt32MultiArray.rb +165 -0
- data/lib/std_msgs/UInt64.rb +82 -0
- data/lib/std_msgs/UInt64MultiArray.rb +165 -0
- data/lib/std_msgs/UInt8.rb +83 -0
- data/lib/std_msgs/UInt8MultiArray.rb +168 -0
- data/lib/std_srvs/Empty.rb +166 -0
- data/lib/stereo_msgs/DisparityImage.rb +261 -0
- data/lib/tf/FrameGraph.rb +179 -0
- data/lib/tf/tfMessage.rb +202 -0
- data/lib/trajectory_msgs/JointTrajectory.rb +198 -0
- data/lib/trajectory_msgs/JointTrajectoryPoint.rb +125 -0
- data/lib/visualization_msgs/ImageMarker.rb +238 -0
- data/lib/visualization_msgs/InteractiveMarker.rb +651 -0
- data/lib/visualization_msgs/InteractiveMarkerControl.rb +469 -0
- data/lib/visualization_msgs/InteractiveMarkerFeedback.rb +235 -0
- data/lib/visualization_msgs/InteractiveMarkerInit.rb +707 -0
- data/lib/visualization_msgs/InteractiveMarkerPose.rb +166 -0
- data/lib/visualization_msgs/InteractiveMarkerUpdate.rb +825 -0
- data/lib/visualization_msgs/Marker.rb +318 -0
- data/lib/visualization_msgs/MarkerArray.rb +349 -0
- data/lib/visualization_msgs/MenuEntry.rb +168 -0
- metadata +123 -2
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from DisparityImage.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "std_msgs/Header"
|
|
5
|
+
require "sensor_msgs/RegionOfInterest"
|
|
6
|
+
require "sensor_msgs/Image"
|
|
7
|
+
|
|
8
|
+
module Stereo_msgs
|
|
9
|
+
|
|
10
|
+
class DisparityImage <::ROS::Message
|
|
11
|
+
def self.md5sum
|
|
12
|
+
"04a177815f75271039fa21f16acad8c9"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def self.type
|
|
16
|
+
"stereo_msgs/DisparityImage"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def has_header?
|
|
20
|
+
true
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def message_definition
|
|
24
|
+
"# Separate header for compatibility with current TimeSynchronizer.
|
|
25
|
+
# Likely to be removed in a later release, use image.header instead.
|
|
26
|
+
Header header
|
|
27
|
+
|
|
28
|
+
# Floating point disparity image. The disparities are pre-adjusted for any
|
|
29
|
+
# x-offset between the principal points of the two cameras (in the case
|
|
30
|
+
# that they are verged). That is: d = x_l - x_r - (cx_l - cx_r)
|
|
31
|
+
sensor_msgs/Image image
|
|
32
|
+
|
|
33
|
+
# Stereo geometry. For disparity d, the depth from the camera is Z = fT/d.
|
|
34
|
+
float32 f # Focal length, pixels
|
|
35
|
+
float32 T # Baseline, world units
|
|
36
|
+
|
|
37
|
+
# Subwindow of (potentially) valid disparity values.
|
|
38
|
+
sensor_msgs/RegionOfInterest valid_window
|
|
39
|
+
|
|
40
|
+
# The range of disparities searched.
|
|
41
|
+
# In the disparity image, any disparity less than min_disparity is invalid.
|
|
42
|
+
# The disparity search range defines the horopter, or 3D volume that the
|
|
43
|
+
# stereo algorithm can \"see\". Points with Z outside of:
|
|
44
|
+
# Z_min = fT / max_disparity
|
|
45
|
+
# Z_max = fT / min_disparity
|
|
46
|
+
# could not be found.
|
|
47
|
+
float32 min_disparity
|
|
48
|
+
float32 max_disparity
|
|
49
|
+
|
|
50
|
+
# Smallest allowed disparity increment. The smallest achievable depth range
|
|
51
|
+
# resolution is delta_Z = (Z^2/fT)*delta_d.
|
|
52
|
+
float32 delta_d
|
|
53
|
+
|
|
54
|
+
================================================================================
|
|
55
|
+
MSG: std_msgs/Header
|
|
56
|
+
# Standard metadata for higher-level stamped data types.
|
|
57
|
+
# This is generally used to communicate timestamped data
|
|
58
|
+
# in a particular coordinate frame.
|
|
59
|
+
#
|
|
60
|
+
# sequence ID: consecutively increasing ID
|
|
61
|
+
uint32 seq
|
|
62
|
+
#Two-integer timestamp that is expressed as:
|
|
63
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
64
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
65
|
+
# time-handling sugar is provided by the client library
|
|
66
|
+
time stamp
|
|
67
|
+
#Frame this data is associated with
|
|
68
|
+
# 0: no frame
|
|
69
|
+
# 1: global frame
|
|
70
|
+
string frame_id
|
|
71
|
+
|
|
72
|
+
================================================================================
|
|
73
|
+
MSG: sensor_msgs/Image
|
|
74
|
+
# This message contains an uncompressed image
|
|
75
|
+
# (0, 0) is at top-left corner of image
|
|
76
|
+
#
|
|
77
|
+
|
|
78
|
+
Header header # Header timestamp should be acquisition time of image
|
|
79
|
+
# Header frame_id should be optical frame of camera
|
|
80
|
+
# origin of frame should be optical center of cameara
|
|
81
|
+
# +x should point to the right in the image
|
|
82
|
+
# +y should point down in the image
|
|
83
|
+
# +z should point into to plane of the image
|
|
84
|
+
# If the frame_id here and the frame_id of the CameraInfo
|
|
85
|
+
# message associated with the image conflict
|
|
86
|
+
# the behavior is undefined
|
|
87
|
+
|
|
88
|
+
uint32 height # image height, that is, number of rows
|
|
89
|
+
uint32 width # image width, that is, number of columns
|
|
90
|
+
|
|
91
|
+
# The legal values for encoding are in file src/image_encodings.cpp
|
|
92
|
+
# If you want to standardize a new string format, join
|
|
93
|
+
# ros-users@lists.sourceforge.net and send an email proposing a new encoding.
|
|
94
|
+
|
|
95
|
+
string encoding # Encoding of pixels -- channel meaning, ordering, size
|
|
96
|
+
# taken from the list of strings in src/image_encodings.cpp
|
|
97
|
+
|
|
98
|
+
uint8 is_bigendian # is this data bigendian?
|
|
99
|
+
uint32 step # Full row length in bytes
|
|
100
|
+
uint8[] data # actual matrix data, size is (step * rows)
|
|
101
|
+
|
|
102
|
+
================================================================================
|
|
103
|
+
MSG: sensor_msgs/RegionOfInterest
|
|
104
|
+
# This message is used to specify a region of interest within an image.
|
|
105
|
+
#
|
|
106
|
+
# When used to specify the ROI setting of the camera when the image was
|
|
107
|
+
# taken, the height and width fields should either match the height and
|
|
108
|
+
# width fields for the associated image; or height = width = 0
|
|
109
|
+
# indicates that the full resolution image was captured.
|
|
110
|
+
|
|
111
|
+
uint32 x_offset # Leftmost pixel of the ROI
|
|
112
|
+
# (0 if the ROI includes the left edge of the image)
|
|
113
|
+
uint32 y_offset # Topmost pixel of the ROI
|
|
114
|
+
# (0 if the ROI includes the top edge of the image)
|
|
115
|
+
uint32 height # Height of ROI
|
|
116
|
+
uint32 width # Width of ROI
|
|
117
|
+
|
|
118
|
+
# True if a distinct rectified ROI should be calculated from the \"raw\"
|
|
119
|
+
# ROI in this message. Typically this should be False if the full image
|
|
120
|
+
# is captured (ROI not used), and True if a subwindow is captured (ROI
|
|
121
|
+
# used).
|
|
122
|
+
bool do_rectify
|
|
123
|
+
|
|
124
|
+
"
|
|
125
|
+
end
|
|
126
|
+
attr_accessor :header, :image, :f, :T, :valid_window, :min_disparity, :max_disparity, :delta_d
|
|
127
|
+
|
|
128
|
+
@@struct_f2L4Cf3 = ::ROS::Struct.new("f2L4Cf3")
|
|
129
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
130
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
|
131
|
+
@@struct_CL = ::ROS::Struct.new("CL")
|
|
132
|
+
|
|
133
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
134
|
+
@@slot_types = ['Header','sensor_msgs/Image','float32','float32','sensor_msgs/RegionOfInterest','float32','float32','float32']
|
|
135
|
+
|
|
136
|
+
def initialize
|
|
137
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
138
|
+
# set to None will be assigned a default value. The recommend
|
|
139
|
+
# use is keyword arguments as this is more robust to future message
|
|
140
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
141
|
+
#
|
|
142
|
+
# The available fields are:
|
|
143
|
+
# header,image,f,T,valid_window,min_disparity,max_disparity,delta_d
|
|
144
|
+
#
|
|
145
|
+
# @param args: complete set of field values, in .msg order
|
|
146
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
147
|
+
# to set specific fields.
|
|
148
|
+
#
|
|
149
|
+
|
|
150
|
+
# message fields cannot be None, assign default values for those that are
|
|
151
|
+
@header = Std_msgs::Header.new
|
|
152
|
+
@image = Sensor_msgs::Image.new
|
|
153
|
+
@f = 0.0
|
|
154
|
+
@T = 0.0
|
|
155
|
+
@valid_window = Sensor_msgs::RegionOfInterest.new
|
|
156
|
+
@min_disparity = 0.0
|
|
157
|
+
@max_disparity = 0.0
|
|
158
|
+
@delta_d = 0.0
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
def _get_types
|
|
162
|
+
# internal API method
|
|
163
|
+
return @slot_types
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
def serialize(buff)
|
|
167
|
+
# serialize message into buffer
|
|
168
|
+
# @param buff: buffer
|
|
169
|
+
# @type buff: StringIO
|
|
170
|
+
begin
|
|
171
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
172
|
+
_x = @header.frame_id
|
|
173
|
+
length = _x.length
|
|
174
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
175
|
+
buff.write(@@struct_L3.pack(@image.header.seq, @image.header.stamp.secs, @image.header.stamp.nsecs))
|
|
176
|
+
_x = @image.header.frame_id
|
|
177
|
+
length = _x.length
|
|
178
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
179
|
+
buff.write(@@struct_L2.pack(@image.height, @image.width))
|
|
180
|
+
_x = @image.encoding
|
|
181
|
+
length = _x.length
|
|
182
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
183
|
+
buff.write(@@struct_CL.pack(@image.is_bigendian, @image.step))
|
|
184
|
+
_x = @image.data
|
|
185
|
+
length = _x.length
|
|
186
|
+
# - if encoded as a list instead, serialize as bytes instead of string
|
|
187
|
+
if type(_x) in [list, tuple]
|
|
188
|
+
buff.write([length, *_x].pack("La#{length}"))
|
|
189
|
+
else
|
|
190
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
191
|
+
end
|
|
192
|
+
buff.write(@@struct_f2L4Cf3.pack(@f, @T, @valid_window.x_offset, @valid_window.y_offset, @valid_window.height, @valid_window.width, @valid_window.do_rectify, @min_disparity, @max_disparity, @delta_d))
|
|
193
|
+
rescue => exception
|
|
194
|
+
raise "some erro in serialize: #{exception}"
|
|
195
|
+
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
def deserialize(str)
|
|
200
|
+
# unpack serialized message in str into this message instance
|
|
201
|
+
# @param str: byte array of serialized message
|
|
202
|
+
# @type str: str
|
|
203
|
+
|
|
204
|
+
begin
|
|
205
|
+
if @header == nil
|
|
206
|
+
@header = Std_msgs::Header.new
|
|
207
|
+
end
|
|
208
|
+
if @image == nil
|
|
209
|
+
@image = Sensor_msgs::Image.new
|
|
210
|
+
end
|
|
211
|
+
if @valid_window == nil
|
|
212
|
+
@valid_window = Sensor_msgs::RegionOfInterest.new
|
|
213
|
+
end
|
|
214
|
+
end_point = 0
|
|
215
|
+
start = end_point
|
|
216
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
217
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
218
|
+
start = end_point
|
|
219
|
+
end_point += 4
|
|
220
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
221
|
+
start = end_point
|
|
222
|
+
end_point += length
|
|
223
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
224
|
+
start = end_point
|
|
225
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
226
|
+
(@image.header.seq, @image.header.stamp.secs, @image.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
227
|
+
start = end_point
|
|
228
|
+
end_point += 4
|
|
229
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
230
|
+
start = end_point
|
|
231
|
+
end_point += length
|
|
232
|
+
@image.header.frame_id = str[start..(end_point-1)]
|
|
233
|
+
start = end_point
|
|
234
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
235
|
+
(@image.height, @image.width,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
236
|
+
start = end_point
|
|
237
|
+
end_point += 4
|
|
238
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
239
|
+
start = end_point
|
|
240
|
+
end_point += length
|
|
241
|
+
@image.encoding = str[start..(end_point-1)]
|
|
242
|
+
start = end_point
|
|
243
|
+
end_point += ROS::Struct::calc_size('CL')
|
|
244
|
+
(@image.is_bigendian, @image.step,) = @@struct_CL.unpack(str[start..(end_point-1)])
|
|
245
|
+
start = end_point
|
|
246
|
+
end_point += 4
|
|
247
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
248
|
+
start = end_point
|
|
249
|
+
end_point += length
|
|
250
|
+
@image.data = str[start..(end_point-1)]
|
|
251
|
+
start = end_point
|
|
252
|
+
end_point += ROS::Struct::calc_size('f2L4Cf3')
|
|
253
|
+
(@f, @T, @valid_window.x_offset, @valid_window.y_offset, @valid_window.height, @valid_window.width, @valid_window.do_rectify, @min_disparity, @max_disparity, @delta_d,) = @@struct_f2L4Cf3.unpack(str[start..(end_point-1)])
|
|
254
|
+
@valid_window.do_rectify = bool(@valid_window.do_rectify)
|
|
255
|
+
return self
|
|
256
|
+
rescue => exception
|
|
257
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
end # end of class
|
|
261
|
+
end # end of module
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from FrameGraphRequest.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
module Tf
|
|
6
|
+
|
|
7
|
+
class FrameGraphRequest <::ROS::Message
|
|
8
|
+
def self.md5sum
|
|
9
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def self.type
|
|
13
|
+
"tf/FrameGraphRequest"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def has_header?
|
|
17
|
+
false
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def message_definition
|
|
21
|
+
"
|
|
22
|
+
"
|
|
23
|
+
end
|
|
24
|
+
attr_accessor
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
28
|
+
@@slot_types = []
|
|
29
|
+
|
|
30
|
+
def initialize
|
|
31
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
32
|
+
# set to None will be assigned a default value. The recommend
|
|
33
|
+
# use is keyword arguments as this is more robust to future message
|
|
34
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
35
|
+
#
|
|
36
|
+
# The available fields are:
|
|
37
|
+
#
|
|
38
|
+
#
|
|
39
|
+
# @param args: complete set of field values, in .msg order
|
|
40
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
41
|
+
# to set specific fields.
|
|
42
|
+
#
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _get_types
|
|
46
|
+
# internal API method
|
|
47
|
+
return @slot_types
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def serialize(buff)
|
|
51
|
+
# serialize message into buffer
|
|
52
|
+
# @param buff: buffer
|
|
53
|
+
# @type buff: StringIO
|
|
54
|
+
begin
|
|
55
|
+
pass
|
|
56
|
+
rescue => exception
|
|
57
|
+
raise "some erro in serialize: #{exception}"
|
|
58
|
+
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def deserialize(str)
|
|
63
|
+
# unpack serialized message in str into this message instance
|
|
64
|
+
# @param str: byte array of serialized message
|
|
65
|
+
# @type str: str
|
|
66
|
+
|
|
67
|
+
begin
|
|
68
|
+
end_point = 0
|
|
69
|
+
return self
|
|
70
|
+
rescue => exception
|
|
71
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end # end of class
|
|
75
|
+
end # end of module
|
|
76
|
+
# autogenerated by genmsg_ruby from FrameGraphResponse.msg. Do not edit.
|
|
77
|
+
require 'ros/message'
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
module Tf
|
|
81
|
+
|
|
82
|
+
class FrameGraphResponse <::ROS::Message
|
|
83
|
+
def self.md5sum
|
|
84
|
+
"c4af9ac907e58e906eb0b6e3c58478c0"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def self.type
|
|
88
|
+
"tf/FrameGraphResponse"
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
def has_header?
|
|
92
|
+
false
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
def message_definition
|
|
96
|
+
"string dot_graph
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
"
|
|
100
|
+
end
|
|
101
|
+
attr_accessor :dot_graph
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
105
|
+
@@slot_types = ['string']
|
|
106
|
+
|
|
107
|
+
def initialize
|
|
108
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
109
|
+
# set to None will be assigned a default value. The recommend
|
|
110
|
+
# use is keyword arguments as this is more robust to future message
|
|
111
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
112
|
+
#
|
|
113
|
+
# The available fields are:
|
|
114
|
+
# dot_graph
|
|
115
|
+
#
|
|
116
|
+
# @param args: complete set of field values, in .msg order
|
|
117
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
118
|
+
# to set specific fields.
|
|
119
|
+
#
|
|
120
|
+
|
|
121
|
+
# message fields cannot be None, assign default values for those that are
|
|
122
|
+
@dot_graph = ''
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def _get_types
|
|
126
|
+
# internal API method
|
|
127
|
+
return @slot_types
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
def serialize(buff)
|
|
131
|
+
# serialize message into buffer
|
|
132
|
+
# @param buff: buffer
|
|
133
|
+
# @type buff: StringIO
|
|
134
|
+
begin
|
|
135
|
+
_x = @dot_graph
|
|
136
|
+
length = _x.length
|
|
137
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
138
|
+
rescue => exception
|
|
139
|
+
raise "some erro in serialize: #{exception}"
|
|
140
|
+
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def deserialize(str)
|
|
145
|
+
# unpack serialized message in str into this message instance
|
|
146
|
+
# @param str: byte array of serialized message
|
|
147
|
+
# @type str: str
|
|
148
|
+
|
|
149
|
+
begin
|
|
150
|
+
end_point = 0
|
|
151
|
+
start = end_point
|
|
152
|
+
end_point += 4
|
|
153
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
154
|
+
start = end_point
|
|
155
|
+
end_point += length
|
|
156
|
+
@dot_graph = str[start..(end_point-1)]
|
|
157
|
+
return self
|
|
158
|
+
rescue => exception
|
|
159
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
end # end of class
|
|
163
|
+
end # end of module
|
|
164
|
+
module Tf
|
|
165
|
+
class FrameGraph
|
|
166
|
+
def self.type
|
|
167
|
+
'tf/FrameGraph'
|
|
168
|
+
end
|
|
169
|
+
def self.md5sum
|
|
170
|
+
'c4af9ac907e58e906eb0b6e3c58478c0'
|
|
171
|
+
end
|
|
172
|
+
def self.request_class
|
|
173
|
+
FrameGraphRequest
|
|
174
|
+
end
|
|
175
|
+
def self.response_class
|
|
176
|
+
FrameGraphResponse
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
data/lib/tf/tfMessage.rb
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from tfMessage.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "std_msgs/Header"
|
|
5
|
+
require "geometry_msgs/Quaternion"
|
|
6
|
+
require "geometry_msgs/Vector3"
|
|
7
|
+
require "geometry_msgs/Transform"
|
|
8
|
+
require "geometry_msgs/TransformStamped"
|
|
9
|
+
|
|
10
|
+
module Tf
|
|
11
|
+
|
|
12
|
+
class TfMessage <::ROS::Message
|
|
13
|
+
def self.md5sum
|
|
14
|
+
"94810edda583a504dfda3829e70d7eec"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def self.type
|
|
18
|
+
"tf/tfMessage"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def has_header?
|
|
22
|
+
false
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def message_definition
|
|
26
|
+
"geometry_msgs/TransformStamped[] transforms
|
|
27
|
+
|
|
28
|
+
================================================================================
|
|
29
|
+
MSG: geometry_msgs/TransformStamped
|
|
30
|
+
# This expresses a transform from coordinate frame header.frame_id
|
|
31
|
+
# to the coordinate frame child_frame_id
|
|
32
|
+
#
|
|
33
|
+
# This message is mostly used by the
|
|
34
|
+
# <a href=\"http://www.ros.org/wiki/tf\">tf</a> package.
|
|
35
|
+
# See it's documentation for more information.
|
|
36
|
+
|
|
37
|
+
Header header
|
|
38
|
+
string child_frame_id # the frame id of the child frame
|
|
39
|
+
Transform transform
|
|
40
|
+
|
|
41
|
+
================================================================================
|
|
42
|
+
MSG: std_msgs/Header
|
|
43
|
+
# Standard metadata for higher-level stamped data types.
|
|
44
|
+
# This is generally used to communicate timestamped data
|
|
45
|
+
# in a particular coordinate frame.
|
|
46
|
+
#
|
|
47
|
+
# sequence ID: consecutively increasing ID
|
|
48
|
+
uint32 seq
|
|
49
|
+
#Two-integer timestamp that is expressed as:
|
|
50
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
51
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
52
|
+
# time-handling sugar is provided by the client library
|
|
53
|
+
time stamp
|
|
54
|
+
#Frame this data is associated with
|
|
55
|
+
# 0: no frame
|
|
56
|
+
# 1: global frame
|
|
57
|
+
string frame_id
|
|
58
|
+
|
|
59
|
+
================================================================================
|
|
60
|
+
MSG: geometry_msgs/Transform
|
|
61
|
+
# This represents the transform between two coordinate frames in free space.
|
|
62
|
+
|
|
63
|
+
Vector3 translation
|
|
64
|
+
Quaternion rotation
|
|
65
|
+
|
|
66
|
+
================================================================================
|
|
67
|
+
MSG: geometry_msgs/Vector3
|
|
68
|
+
# This represents a vector in free space.
|
|
69
|
+
|
|
70
|
+
float64 x
|
|
71
|
+
float64 y
|
|
72
|
+
float64 z
|
|
73
|
+
================================================================================
|
|
74
|
+
MSG: geometry_msgs/Quaternion
|
|
75
|
+
# This represents an orientation in free space in quaternion form.
|
|
76
|
+
|
|
77
|
+
float64 x
|
|
78
|
+
float64 y
|
|
79
|
+
float64 z
|
|
80
|
+
float64 w
|
|
81
|
+
|
|
82
|
+
"
|
|
83
|
+
end
|
|
84
|
+
attr_accessor :transforms
|
|
85
|
+
|
|
86
|
+
@@struct_d4 = ::ROS::Struct.new("d4")
|
|
87
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
|
88
|
+
@@struct_d3 = ::ROS::Struct.new("d3")
|
|
89
|
+
|
|
90
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
91
|
+
@@slot_types = ['geometry_msgs/TransformStamped[]']
|
|
92
|
+
|
|
93
|
+
def initialize
|
|
94
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
95
|
+
# set to None will be assigned a default value. The recommend
|
|
96
|
+
# use is keyword arguments as this is more robust to future message
|
|
97
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
98
|
+
#
|
|
99
|
+
# The available fields are:
|
|
100
|
+
# transforms
|
|
101
|
+
#
|
|
102
|
+
# @param args: complete set of field values, in .msg order
|
|
103
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
104
|
+
# to set specific fields.
|
|
105
|
+
#
|
|
106
|
+
|
|
107
|
+
# message fields cannot be None, assign default values for those that are
|
|
108
|
+
@transforms = []
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def _get_types
|
|
112
|
+
# internal API method
|
|
113
|
+
return @slot_types
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def serialize(buff)
|
|
117
|
+
# serialize message into buffer
|
|
118
|
+
# @param buff: buffer
|
|
119
|
+
# @type buff: StringIO
|
|
120
|
+
begin
|
|
121
|
+
length = @transforms.length
|
|
122
|
+
buff.write(@@struct_L.pack(length))
|
|
123
|
+
for val1 in @transforms
|
|
124
|
+
_v1 = val1.header
|
|
125
|
+
buff.write(@@struct_L.pack(_v1.seq))
|
|
126
|
+
_v2 = _v1.stamp
|
|
127
|
+
_x = _v2
|
|
128
|
+
buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
|
|
129
|
+
_x = _v1.frame_id
|
|
130
|
+
length = _x.length
|
|
131
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
132
|
+
_x = val1.child_frame_id
|
|
133
|
+
length = _x.length
|
|
134
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
135
|
+
_v3 = val1.transform
|
|
136
|
+
_v4 = _v3.translation
|
|
137
|
+
_x = _v4
|
|
138
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
139
|
+
_v5 = _v3.rotation
|
|
140
|
+
_x = _v5
|
|
141
|
+
buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
|
|
142
|
+
end
|
|
143
|
+
rescue => exception
|
|
144
|
+
raise "some erro in serialize: #{exception}"
|
|
145
|
+
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
def deserialize(str)
|
|
150
|
+
# unpack serialized message in str into this message instance
|
|
151
|
+
# @param str: byte array of serialized message
|
|
152
|
+
# @type str: str
|
|
153
|
+
|
|
154
|
+
begin
|
|
155
|
+
end_point = 0
|
|
156
|
+
start = end_point
|
|
157
|
+
end_point += 4
|
|
158
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
159
|
+
@transforms = []
|
|
160
|
+
length.times do
|
|
161
|
+
val1 = Geometry_msgs::TransformStamped.new
|
|
162
|
+
_v6 = val1.header
|
|
163
|
+
start = end_point
|
|
164
|
+
end_point += ROS::Struct::calc_size('L')
|
|
165
|
+
(_v6.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
166
|
+
_v7 = _v6.stamp
|
|
167
|
+
_x = _v7
|
|
168
|
+
start = end_point
|
|
169
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
170
|
+
(_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
171
|
+
start = end_point
|
|
172
|
+
end_point += 4
|
|
173
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
174
|
+
start = end_point
|
|
175
|
+
end_point += length
|
|
176
|
+
_v6.frame_id = str[start..(end_point-1)]
|
|
177
|
+
start = end_point
|
|
178
|
+
end_point += 4
|
|
179
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
180
|
+
start = end_point
|
|
181
|
+
end_point += length
|
|
182
|
+
val1.child_frame_id = str[start..(end_point-1)]
|
|
183
|
+
_v8 = val1.transform
|
|
184
|
+
_v9 = _v8.translation
|
|
185
|
+
_x = _v9
|
|
186
|
+
start = end_point
|
|
187
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
188
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
189
|
+
_v10 = _v8.rotation
|
|
190
|
+
_x = _v10
|
|
191
|
+
start = end_point
|
|
192
|
+
end_point += ROS::Struct::calc_size('d4')
|
|
193
|
+
(_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
|
|
194
|
+
@transforms.push(val1)
|
|
195
|
+
end
|
|
196
|
+
return self
|
|
197
|
+
rescue => exception
|
|
198
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
end # end of class
|
|
202
|
+
end # end of module
|