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.
Files changed (122) hide show
  1. data/lib/actionlib_msgs/GoalID.rb +106 -0
  2. data/lib/actionlib_msgs/GoalStatus.rb +160 -0
  3. data/lib/actionlib_msgs/GoalStatusArray.rb +207 -0
  4. data/lib/actionlib_tutorials/AveragingAction.rb +322 -0
  5. data/lib/actionlib_tutorials/AveragingActionFeedback.rb +213 -0
  6. data/lib/actionlib_tutorials/AveragingActionGoal.rb +167 -0
  7. data/lib/actionlib_tutorials/AveragingActionResult.rb +209 -0
  8. data/lib/actionlib_tutorials/AveragingFeedback.rb +93 -0
  9. data/lib/actionlib_tutorials/AveragingGoal.rb +85 -0
  10. data/lib/actionlib_tutorials/AveragingResult.rb +87 -0
  11. data/lib/actionlib_tutorials/FibonacciAction.rb +334 -0
  12. data/lib/actionlib_tutorials/FibonacciActionFeedback.rb +216 -0
  13. data/lib/actionlib_tutorials/FibonacciActionGoal.rb +167 -0
  14. data/lib/actionlib_tutorials/FibonacciActionResult.rb +214 -0
  15. data/lib/actionlib_tutorials/FibonacciFeedback.rb +93 -0
  16. data/lib/actionlib_tutorials/FibonacciGoal.rb +85 -0
  17. data/lib/actionlib_tutorials/FibonacciResult.rb +91 -0
  18. data/lib/geometry_msgs/Point.rb +88 -0
  19. data/lib/geometry_msgs/Point32.rb +94 -0
  20. data/lib/geometry_msgs/PointStamped.rb +133 -0
  21. data/lib/geometry_msgs/Polygon.rb +112 -0
  22. data/lib/geometry_msgs/PolygonStamped.rb +159 -0
  23. data/lib/geometry_msgs/Pose.rb +110 -0
  24. data/lib/geometry_msgs/Pose2D.rb +88 -0
  25. data/lib/geometry_msgs/PoseArray.rb +174 -0
  26. data/lib/geometry_msgs/PoseStamped.rb +150 -0
  27. data/lib/geometry_msgs/PoseWithCovariance.rb +125 -0
  28. data/lib/geometry_msgs/PoseWithCovarianceStamped.rb +169 -0
  29. data/lib/geometry_msgs/Quaternion.rb +91 -0
  30. data/lib/geometry_msgs/QuaternionStamped.rb +136 -0
  31. data/lib/geometry_msgs/Transform.rb +111 -0
  32. data/lib/geometry_msgs/TransformStamped.rb +168 -0
  33. data/lib/geometry_msgs/Twist.rb +100 -0
  34. data/lib/geometry_msgs/TwistStamped.rb +140 -0
  35. data/lib/geometry_msgs/TwistWithCovariance.rb +115 -0
  36. data/lib/geometry_msgs/TwistWithCovarianceStamped.rb +158 -0
  37. data/lib/geometry_msgs/Vector3.rb +88 -0
  38. data/lib/geometry_msgs/Vector3Stamped.rb +133 -0
  39. data/lib/geometry_msgs/Wrench.rb +101 -0
  40. data/lib/geometry_msgs/WrenchStamped.rb +141 -0
  41. data/lib/nav_msgs/GetMap.rb +280 -0
  42. data/lib/nav_msgs/GetPlan.rb +406 -0
  43. data/lib/nav_msgs/GridCells.rb +153 -0
  44. data/lib/nav_msgs/MapMetaData.rb +130 -0
  45. data/lib/nav_msgs/OccupancyGrid.rb +187 -0
  46. data/lib/nav_msgs/Odometry.rb +223 -0
  47. data/lib/nav_msgs/Path.rb +205 -0
  48. data/lib/roscpp/Empty.rb +166 -0
  49. data/lib/roscpp/GetLoggers.rb +205 -0
  50. data/lib/roscpp/Logger.rb +98 -0
  51. data/lib/roscpp/SetLoggerLevel.rb +189 -0
  52. data/lib/roscpp_tutorials/TwoInts.rb +185 -0
  53. data/lib/rosgraph_msgs/Clock.rb +90 -0
  54. data/lib/rosgraph_msgs/Log.rb +210 -0
  55. data/lib/sensor_msgs/CameraInfo.rb +325 -0
  56. data/lib/sensor_msgs/ChannelFloat32.rb +122 -0
  57. data/lib/sensor_msgs/CompressedImage.rb +151 -0
  58. data/lib/sensor_msgs/Image.rb +179 -0
  59. data/lib/sensor_msgs/Imu.rb +193 -0
  60. data/lib/sensor_msgs/JointState.rb +195 -0
  61. data/lib/sensor_msgs/Joy.rb +141 -0
  62. data/lib/sensor_msgs/JoyFeedback.rb +104 -0
  63. data/lib/sensor_msgs/JoyFeedbackArray.rb +116 -0
  64. data/lib/sensor_msgs/LaserScan.rb +178 -0
  65. data/lib/sensor_msgs/NavSatFix.rb +215 -0
  66. data/lib/sensor_msgs/NavSatStatus.rb +115 -0
  67. data/lib/sensor_msgs/PointCloud.rb +222 -0
  68. data/lib/sensor_msgs/PointCloud2.rb +226 -0
  69. data/lib/sensor_msgs/PointField.rb +119 -0
  70. data/lib/sensor_msgs/Range.rb +157 -0
  71. data/lib/sensor_msgs/RegionOfInterest.rb +106 -0
  72. data/lib/sensor_msgs/SetCameraInfo.rb +437 -0
  73. data/lib/sensor_msgs/TimeReference.rb +140 -0
  74. data/lib/std_msgs/Bool.rb +83 -0
  75. data/lib/std_msgs/Byte.rb +83 -0
  76. data/lib/std_msgs/ByteMultiArray.rb +165 -0
  77. data/lib/std_msgs/Char.rb +82 -0
  78. data/lib/std_msgs/ColorRGBA.rb +89 -0
  79. data/lib/std_msgs/Duration.rb +87 -0
  80. data/lib/std_msgs/Empty.rb +75 -0
  81. data/lib/std_msgs/Float32.rb +82 -0
  82. data/lib/std_msgs/Float32MultiArray.rb +165 -0
  83. data/lib/std_msgs/Float64.rb +82 -0
  84. data/lib/std_msgs/Float64MultiArray.rb +165 -0
  85. data/lib/std_msgs/Header.rb +112 -0
  86. data/lib/std_msgs/Int16.rb +83 -0
  87. data/lib/std_msgs/Int16MultiArray.rb +165 -0
  88. data/lib/std_msgs/Int32.rb +82 -0
  89. data/lib/std_msgs/Int32MultiArray.rb +165 -0
  90. data/lib/std_msgs/Int64.rb +82 -0
  91. data/lib/std_msgs/Int64MultiArray.rb +165 -0
  92. data/lib/std_msgs/Int8.rb +83 -0
  93. data/lib/std_msgs/Int8MultiArray.rb +165 -0
  94. data/lib/std_msgs/MultiArrayDimension.rb +95 -0
  95. data/lib/std_msgs/MultiArrayLayout.rb +141 -0
  96. data/lib/std_msgs/String.rb +87 -0
  97. data/lib/std_msgs/Time.rb +87 -0
  98. data/lib/std_msgs/UInt16.rb +83 -0
  99. data/lib/std_msgs/UInt16MultiArray.rb +165 -0
  100. data/lib/std_msgs/UInt32.rb +81 -0
  101. data/lib/std_msgs/UInt32MultiArray.rb +165 -0
  102. data/lib/std_msgs/UInt64.rb +82 -0
  103. data/lib/std_msgs/UInt64MultiArray.rb +165 -0
  104. data/lib/std_msgs/UInt8.rb +83 -0
  105. data/lib/std_msgs/UInt8MultiArray.rb +168 -0
  106. data/lib/std_srvs/Empty.rb +166 -0
  107. data/lib/stereo_msgs/DisparityImage.rb +261 -0
  108. data/lib/tf/FrameGraph.rb +179 -0
  109. data/lib/tf/tfMessage.rb +202 -0
  110. data/lib/trajectory_msgs/JointTrajectory.rb +198 -0
  111. data/lib/trajectory_msgs/JointTrajectoryPoint.rb +125 -0
  112. data/lib/visualization_msgs/ImageMarker.rb +238 -0
  113. data/lib/visualization_msgs/InteractiveMarker.rb +651 -0
  114. data/lib/visualization_msgs/InteractiveMarkerControl.rb +469 -0
  115. data/lib/visualization_msgs/InteractiveMarkerFeedback.rb +235 -0
  116. data/lib/visualization_msgs/InteractiveMarkerInit.rb +707 -0
  117. data/lib/visualization_msgs/InteractiveMarkerPose.rb +166 -0
  118. data/lib/visualization_msgs/InteractiveMarkerUpdate.rb +825 -0
  119. data/lib/visualization_msgs/Marker.rb +318 -0
  120. data/lib/visualization_msgs/MarkerArray.rb +349 -0
  121. data/lib/visualization_msgs/MenuEntry.rb +168 -0
  122. metadata +123 -2
@@ -0,0 +1,651 @@
1
+ # autogenerated by genmsg_ruby from InteractiveMarker.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "visualization_msgs/InteractiveMarkerControl"
5
+ require "visualization_msgs/Marker"
6
+ require "ros/duration"
7
+ require "std_msgs/Header"
8
+ require "geometry_msgs/Point"
9
+ require "visualization_msgs/MenuEntry"
10
+ require "std_msgs/ColorRGBA"
11
+ require "geometry_msgs/Quaternion"
12
+ require "geometry_msgs/Vector3"
13
+ require "geometry_msgs/Pose"
14
+
15
+ module Visualization_msgs
16
+
17
+ class InteractiveMarker <::ROS::Message
18
+ def self.md5sum
19
+ "97d10a9c6371692b469f5814d4156b68"
20
+ end
21
+
22
+ def self.type
23
+ "visualization_msgs/InteractiveMarker"
24
+ end
25
+
26
+ def has_header?
27
+ true
28
+ end
29
+
30
+ def message_definition
31
+ "# Time/frame info.
32
+ # If header.time is set to 0, the marker will be retransformed into
33
+ # its frame on each timestep. You will receive the pose feedback
34
+ # in the same frame.
35
+ # Otherwise, you might receive feedback in a different frame.
36
+ # For rviz, this will be the current 'fixed frame' set by the user.
37
+ Header header
38
+
39
+ # Initial pose. Also, defines the pivot point for rotations.
40
+ geometry_msgs/Pose pose
41
+
42
+ # Identifying string. Must be globally unique in
43
+ # the topic that this message is sent through.
44
+ string name
45
+
46
+ # Short description (< 40 characters).
47
+ string description
48
+
49
+ # Scale to be used for default controls (default=1).
50
+ float32 scale
51
+
52
+ # All menu and submenu entries associated with this marker.
53
+ MenuEntry[] menu_entries
54
+
55
+ # List of controls displayed for this marker.
56
+ InteractiveMarkerControl[] controls
57
+
58
+ ================================================================================
59
+ MSG: std_msgs/Header
60
+ # Standard metadata for higher-level stamped data types.
61
+ # This is generally used to communicate timestamped data
62
+ # in a particular coordinate frame.
63
+ #
64
+ # sequence ID: consecutively increasing ID
65
+ uint32 seq
66
+ #Two-integer timestamp that is expressed as:
67
+ # * stamp.secs: seconds (stamp_secs) since epoch
68
+ # * stamp.nsecs: nanoseconds since stamp_secs
69
+ # time-handling sugar is provided by the client library
70
+ time stamp
71
+ #Frame this data is associated with
72
+ # 0: no frame
73
+ # 1: global frame
74
+ string frame_id
75
+
76
+ ================================================================================
77
+ MSG: geometry_msgs/Pose
78
+ # A representation of pose in free space, composed of postion and orientation.
79
+ Point position
80
+ Quaternion orientation
81
+
82
+ ================================================================================
83
+ MSG: geometry_msgs/Point
84
+ # This contains the position of a point in free space
85
+ float64 x
86
+ float64 y
87
+ float64 z
88
+
89
+ ================================================================================
90
+ MSG: geometry_msgs/Quaternion
91
+ # This represents an orientation in free space in quaternion form.
92
+
93
+ float64 x
94
+ float64 y
95
+ float64 z
96
+ float64 w
97
+
98
+ ================================================================================
99
+ MSG: visualization_msgs/MenuEntry
100
+ # MenuEntry message.
101
+
102
+ # Each InteractiveMarker message has an array of MenuEntry messages.
103
+ # A collection of MenuEntries together describe a
104
+ # menu/submenu/subsubmenu/etc tree, though they are stored in a flat
105
+ # array. The tree structure is represented by giving each menu entry
106
+ # an ID number and a \"parent_id\" field. Top-level entries are the
107
+ # ones with parent_id = 0. Menu entries are ordered within their
108
+ # level the same way they are ordered in the containing array. Parent
109
+ # entries must appear before their children.
110
+
111
+ # Example:
112
+ # - id = 3
113
+ # parent_id = 0
114
+ # title = \"fun\"
115
+ # - id = 2
116
+ # parent_id = 0
117
+ # title = \"robot\"
118
+ # - id = 4
119
+ # parent_id = 2
120
+ # title = \"pr2\"
121
+ # - id = 5
122
+ # parent_id = 2
123
+ # title = \"turtle\"
124
+ #
125
+ # Gives a menu tree like this:
126
+ # - fun
127
+ # - robot
128
+ # - pr2
129
+ # - turtle
130
+
131
+ # ID is a number for each menu entry. Must be unique within the
132
+ # control, and should never be 0.
133
+ uint32 id
134
+
135
+ # ID of the parent of this menu entry, if it is a submenu. If this
136
+ # menu entry is a top-level entry, set parent_id to 0.
137
+ uint32 parent_id
138
+
139
+ # menu / entry title
140
+ string title
141
+
142
+ # Arguments to command indicated by command_type (below)
143
+ string command
144
+
145
+ # Command_type stores the type of response desired when this menu
146
+ # entry is clicked.
147
+ # FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.
148
+ # ROSRUN: execute \"rosrun\" with arguments given in the command field (above).
149
+ # ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).
150
+ uint8 FEEDBACK=0
151
+ uint8 ROSRUN=1
152
+ uint8 ROSLAUNCH=2
153
+ uint8 command_type
154
+
155
+ ================================================================================
156
+ MSG: visualization_msgs/InteractiveMarkerControl
157
+ # Represents a control that is to be displayed together with an interactive marker
158
+
159
+ # Identifying string for this control.
160
+ # You need to assign a unique value to this to receive feedback from the GUI
161
+ # on what actions the user performs on this control (e.g. a button click).
162
+ string name
163
+
164
+
165
+ # Defines the local coordinate frame (relative to the pose of the parent
166
+ # interactive marker) in which is being rotated and translated.
167
+ # Default: Identity
168
+ geometry_msgs/Quaternion orientation
169
+
170
+
171
+ # Orientation mode: controls how orientation changes.
172
+ # INHERIT: Follow orientation of interactive marker
173
+ # FIXED: Keep orientation fixed at initial state
174
+ # VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).
175
+ uint8 INHERIT = 0
176
+ uint8 FIXED = 1
177
+ uint8 VIEW_FACING = 2
178
+
179
+ uint8 orientation_mode
180
+
181
+ # Interaction mode for this control
182
+ #
183
+ # NONE: This control is only meant for visualization; no context menu.
184
+ # MENU: Like NONE, but right-click menu is active.
185
+ # BUTTON: Element can be left-clicked.
186
+ # MOVE_AXIS: Translate along local x-axis.
187
+ # MOVE_PLANE: Translate in local y-z plane.
188
+ # ROTATE_AXIS: Rotate around local x-axis.
189
+ # MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.
190
+ uint8 NONE = 0
191
+ uint8 MENU = 1
192
+ uint8 BUTTON = 2
193
+ uint8 MOVE_AXIS = 3
194
+ uint8 MOVE_PLANE = 4
195
+ uint8 ROTATE_AXIS = 5
196
+ uint8 MOVE_ROTATE = 6
197
+
198
+ uint8 interaction_mode
199
+
200
+
201
+ # If true, the contained markers will also be visible
202
+ # when the gui is not in interactive mode.
203
+ bool always_visible
204
+
205
+
206
+ # Markers to be displayed as custom visual representation.
207
+ # Leave this empty to use the default control handles.
208
+ #
209
+ # Note:
210
+ # - The markers can be defined in an arbitrary coordinate frame,
211
+ # but will be transformed into the local frame of the interactive marker.
212
+ # - If the header of a marker is empty, its pose will be interpreted as
213
+ # relative to the pose of the parent interactive marker.
214
+ Marker[] markers
215
+
216
+
217
+ # In VIEW_FACING mode, set this to true if you don't want the markers
218
+ # to be aligned with the camera view point. The markers will show up
219
+ # as in INHERIT mode.
220
+ bool independent_marker_orientation
221
+
222
+
223
+ # Short description (< 40 characters) of what this control does,
224
+ # e.g. \"Move the robot\".
225
+ # Default: A generic description based on the interaction mode
226
+ string description
227
+
228
+ ================================================================================
229
+ MSG: visualization_msgs/Marker
230
+ # See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz
231
+
232
+ uint8 ARROW=0
233
+ uint8 CUBE=1
234
+ uint8 SPHERE=2
235
+ uint8 CYLINDER=3
236
+ uint8 LINE_STRIP=4
237
+ uint8 LINE_LIST=5
238
+ uint8 CUBE_LIST=6
239
+ uint8 SPHERE_LIST=7
240
+ uint8 POINTS=8
241
+ uint8 TEXT_VIEW_FACING=9
242
+ uint8 MESH_RESOURCE=10
243
+ uint8 TRIANGLE_LIST=11
244
+
245
+ uint8 ADD=0
246
+ uint8 MODIFY=0
247
+ uint8 DELETE=2
248
+
249
+ Header header # header for time/frame information
250
+ string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object
251
+ int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later
252
+ int32 type # Type of object
253
+ int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object
254
+ geometry_msgs/Pose pose # Pose of the object
255
+ geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)
256
+ std_msgs/ColorRGBA color # Color [0.0-1.0]
257
+ duration lifetime # How long the object should last before being automatically deleted. 0 means forever
258
+ bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep
259
+
260
+ #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
261
+ geometry_msgs/Point[] points
262
+ #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
263
+ #number of colors must either be 0 or equal to the number of points
264
+ #NOTE: alpha is not yet used
265
+ std_msgs/ColorRGBA[] colors
266
+
267
+ # NOTE: only used for text markers
268
+ string text
269
+
270
+ # NOTE: only used for MESH_RESOURCE markers
271
+ string mesh_resource
272
+ bool mesh_use_embedded_materials
273
+
274
+ ================================================================================
275
+ MSG: geometry_msgs/Vector3
276
+ # This represents a vector in free space.
277
+
278
+ float64 x
279
+ float64 y
280
+ float64 z
281
+ ================================================================================
282
+ MSG: std_msgs/ColorRGBA
283
+ float32 r
284
+ float32 g
285
+ float32 b
286
+ float32 a
287
+
288
+ "
289
+ end
290
+ attr_accessor :header, :pose, :name, :description, :scale, :menu_entries, :controls
291
+
292
+ @@struct_d7 = ::ROS::Struct.new("d7")
293
+ @@struct_f = ::ROS::Struct.new("f")
294
+ @@struct_l3 = ::ROS::Struct.new("l3")
295
+ @@struct_l2 = ::ROS::Struct.new("l2")
296
+ @@struct_L3 = ::ROS::Struct.new("L3")
297
+ @@struct_C = ::ROS::Struct.new("C")
298
+ @@struct_f4 = ::ROS::Struct.new("f4")
299
+ @@struct_C3 = ::ROS::Struct.new("C3")
300
+ @@struct_d4 = ::ROS::Struct.new("d4")
301
+ @@struct_L2 = ::ROS::Struct.new("L2")
302
+ @@struct_d3 = ::ROS::Struct.new("d3")
303
+
304
+ @@struct_L = ::ROS::Struct.new("L")
305
+ @@slot_types = ['Header','geometry_msgs/Pose','string','string','float32','visualization_msgs/MenuEntry[]','visualization_msgs/InteractiveMarkerControl[]']
306
+
307
+ def initialize
308
+ # Constructor. Any message fields that are implicitly/explicitly
309
+ # set to None will be assigned a default value. The recommend
310
+ # use is keyword arguments as this is more robust to future message
311
+ # changes. You cannot mix in-order arguments and keyword arguments.
312
+ #
313
+ # The available fields are:
314
+ # header,pose,name,description,scale,menu_entries,controls
315
+ #
316
+ # @param args: complete set of field values, in .msg order
317
+ # @param kwds: use keyword arguments corresponding to message field names
318
+ # to set specific fields.
319
+ #
320
+
321
+ # message fields cannot be None, assign default values for those that are
322
+ @header = Std_msgs::Header.new
323
+ @pose = Geometry_msgs::Pose.new
324
+ @name = ''
325
+ @description = ''
326
+ @scale = 0.0
327
+ @menu_entries = []
328
+ @controls = []
329
+ end
330
+
331
+ def _get_types
332
+ # internal API method
333
+ return @slot_types
334
+ end
335
+
336
+ def serialize(buff)
337
+ # serialize message into buffer
338
+ # @param buff: buffer
339
+ # @type buff: StringIO
340
+ begin
341
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
342
+ _x = @header.frame_id
343
+ length = _x.length
344
+ buff.write([length, _x].pack("La#{length}"))
345
+ buff.write(@@struct_d7.pack(@pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w))
346
+ _x = @name
347
+ length = _x.length
348
+ buff.write([length, _x].pack("La#{length}"))
349
+ _x = @description
350
+ length = _x.length
351
+ buff.write([length, _x].pack("La#{length}"))
352
+ buff.write(@@struct_f.pack(@scale))
353
+ length = @menu_entries.length
354
+ buff.write(@@struct_L.pack(length))
355
+ for val1 in @menu_entries
356
+ _x = val1
357
+ buff.write(@@struct_L2.pack(_x.id, _x.parent_id))
358
+ _x = val1.title
359
+ length = _x.length
360
+ buff.write([length, _x].pack("La#{length}"))
361
+ _x = val1.command
362
+ length = _x.length
363
+ buff.write([length, _x].pack("La#{length}"))
364
+ buff.write(@@struct_C.pack(val1.command_type))
365
+ end
366
+ length = @controls.length
367
+ buff.write(@@struct_L.pack(length))
368
+ for val1 in @controls
369
+ _x = val1.name
370
+ length = _x.length
371
+ buff.write([length, _x].pack("La#{length}"))
372
+ _v21 = val1.orientation
373
+ _x = _v21
374
+ buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
375
+ _x = val1
376
+ buff.write(@@struct_C3.pack(_x.orientation_mode, _x.interaction_mode, _x.always_visible))
377
+ length = val1.markers.length
378
+ buff.write(@@struct_L.pack(length))
379
+ for val2 in val1.markers
380
+ _v22 = val2.header
381
+ buff.write(@@struct_L.pack(_v22.seq))
382
+ _v23 = _v22.stamp
383
+ _x = _v23
384
+ buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
385
+ _x = _v22.frame_id
386
+ length = _x.length
387
+ buff.write([length, _x].pack("La#{length}"))
388
+ _x = val2.ns
389
+ length = _x.length
390
+ buff.write([length, _x].pack("La#{length}"))
391
+ _x = val2
392
+ buff.write(@@struct_l3.pack(_x.id, _x.type, _x.action))
393
+ _v24 = val2.pose
394
+ _v25 = _v24.position
395
+ _x = _v25
396
+ buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
397
+ _v26 = _v24.orientation
398
+ _x = _v26
399
+ buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
400
+ _v27 = val2.scale
401
+ _x = _v27
402
+ buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
403
+ _v28 = val2.color
404
+ _x = _v28
405
+ buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
406
+ _v29 = val2.lifetime
407
+ _x = _v29
408
+ buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
409
+ buff.write(@@struct_C.pack(val2.frame_locked))
410
+ length = val2.points.length
411
+ buff.write(@@struct_L.pack(length))
412
+ for val3 in val2.points
413
+ _x = val3
414
+ buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
415
+ end
416
+ length = val2.colors.length
417
+ buff.write(@@struct_L.pack(length))
418
+ for val3 in val2.colors
419
+ _x = val3
420
+ buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
421
+ end
422
+ _x = val2.text
423
+ length = _x.length
424
+ buff.write([length, _x].pack("La#{length}"))
425
+ _x = val2.mesh_resource
426
+ length = _x.length
427
+ buff.write([length, _x].pack("La#{length}"))
428
+ buff.write(@@struct_C.pack(val2.mesh_use_embedded_materials))
429
+ end
430
+ buff.write(@@struct_C.pack(val1.independent_marker_orientation))
431
+ _x = val1.description
432
+ length = _x.length
433
+ buff.write([length, _x].pack("La#{length}"))
434
+ end
435
+ rescue => exception
436
+ raise "some erro in serialize: #{exception}"
437
+
438
+ end
439
+ end
440
+
441
+ def deserialize(str)
442
+ # unpack serialized message in str into this message instance
443
+ # @param str: byte array of serialized message
444
+ # @type str: str
445
+
446
+ begin
447
+ if @header == nil
448
+ @header = Std_msgs::Header.new
449
+ end
450
+ if @pose == nil
451
+ @pose = Geometry_msgs::Pose.new
452
+ end
453
+ end_point = 0
454
+ start = end_point
455
+ end_point += ROS::Struct::calc_size('L3')
456
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
457
+ start = end_point
458
+ end_point += 4
459
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
460
+ start = end_point
461
+ end_point += length
462
+ @header.frame_id = str[start..(end_point-1)]
463
+ start = end_point
464
+ end_point += ROS::Struct::calc_size('d7')
465
+ (@pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w,) = @@struct_d7.unpack(str[start..(end_point-1)])
466
+ start = end_point
467
+ end_point += 4
468
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
469
+ start = end_point
470
+ end_point += length
471
+ @name = str[start..(end_point-1)]
472
+ start = end_point
473
+ end_point += 4
474
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
475
+ start = end_point
476
+ end_point += length
477
+ @description = str[start..(end_point-1)]
478
+ start = end_point
479
+ end_point += ROS::Struct::calc_size('f')
480
+ (@scale,) = @@struct_f.unpack(str[start..(end_point-1)])
481
+ start = end_point
482
+ end_point += 4
483
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
484
+ @menu_entries = []
485
+ length.times do
486
+ val1 = Visualization_msgs::MenuEntry.new
487
+ _x = val1
488
+ start = end_point
489
+ end_point += ROS::Struct::calc_size('L2')
490
+ (_x.id, _x.parent_id,) = @@struct_L2.unpack(str[start..(end_point-1)])
491
+ start = end_point
492
+ end_point += 4
493
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
494
+ start = end_point
495
+ end_point += length
496
+ val1.title = str[start..(end_point-1)]
497
+ start = end_point
498
+ end_point += 4
499
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
500
+ start = end_point
501
+ end_point += length
502
+ val1.command = str[start..(end_point-1)]
503
+ start = end_point
504
+ end_point += ROS::Struct::calc_size('C')
505
+ (val1.command_type,) = @@struct_C.unpack(str[start..(end_point-1)])
506
+ @menu_entries.push(val1)
507
+ end
508
+ start = end_point
509
+ end_point += 4
510
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
511
+ @controls = []
512
+ length.times do
513
+ val1 = Visualization_msgs::InteractiveMarkerControl.new
514
+ start = end_point
515
+ end_point += 4
516
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
517
+ start = end_point
518
+ end_point += length
519
+ val1.name = str[start..(end_point-1)]
520
+ _v30 = val1.orientation
521
+ _x = _v30
522
+ start = end_point
523
+ end_point += ROS::Struct::calc_size('d4')
524
+ (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
525
+ _x = val1
526
+ start = end_point
527
+ end_point += ROS::Struct::calc_size('C3')
528
+ (_x.orientation_mode, _x.interaction_mode, _x.always_visible,) = @@struct_C3.unpack(str[start..(end_point-1)])
529
+ val1.always_visible = bool(val1.always_visible)
530
+ start = end_point
531
+ end_point += 4
532
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
533
+ val1.markers = []
534
+ length.times do
535
+ val2 = Visualization_msgs::Marker.new
536
+ _v31 = val2.header
537
+ start = end_point
538
+ end_point += ROS::Struct::calc_size('L')
539
+ (_v31.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
540
+ _v32 = _v31.stamp
541
+ _x = _v32
542
+ start = end_point
543
+ end_point += ROS::Struct::calc_size('L2')
544
+ (_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
545
+ start = end_point
546
+ end_point += 4
547
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
548
+ start = end_point
549
+ end_point += length
550
+ _v31.frame_id = str[start..(end_point-1)]
551
+ start = end_point
552
+ end_point += 4
553
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
554
+ start = end_point
555
+ end_point += length
556
+ val2.ns = str[start..(end_point-1)]
557
+ _x = val2
558
+ start = end_point
559
+ end_point += ROS::Struct::calc_size('l3')
560
+ (_x.id, _x.type, _x.action,) = @@struct_l3.unpack(str[start..(end_point-1)])
561
+ _v33 = val2.pose
562
+ _v34 = _v33.position
563
+ _x = _v34
564
+ start = end_point
565
+ end_point += ROS::Struct::calc_size('d3')
566
+ (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
567
+ _v35 = _v33.orientation
568
+ _x = _v35
569
+ start = end_point
570
+ end_point += ROS::Struct::calc_size('d4')
571
+ (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
572
+ _v36 = val2.scale
573
+ _x = _v36
574
+ start = end_point
575
+ end_point += ROS::Struct::calc_size('d3')
576
+ (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
577
+ _v37 = val2.color
578
+ _x = _v37
579
+ start = end_point
580
+ end_point += ROS::Struct::calc_size('f4')
581
+ (_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
582
+ _v38 = val2.lifetime
583
+ _x = _v38
584
+ start = end_point
585
+ end_point += ROS::Struct::calc_size('l2')
586
+ (_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
587
+ start = end_point
588
+ end_point += ROS::Struct::calc_size('C')
589
+ (val2.frame_locked,) = @@struct_C.unpack(str[start..(end_point-1)])
590
+ val2.frame_locked = bool(val2.frame_locked)
591
+ start = end_point
592
+ end_point += 4
593
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
594
+ val2.points = []
595
+ length.times do
596
+ val3 = Geometry_msgs::Point.new
597
+ _x = val3
598
+ start = end_point
599
+ end_point += ROS::Struct::calc_size('d3')
600
+ (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
601
+ val2.points.push(val3)
602
+ end
603
+ start = end_point
604
+ end_point += 4
605
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
606
+ val2.colors = []
607
+ length.times do
608
+ val3 = Std_msgs::ColorRGBA.new
609
+ _x = val3
610
+ start = end_point
611
+ end_point += ROS::Struct::calc_size('f4')
612
+ (_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
613
+ val2.colors.push(val3)
614
+ end
615
+ start = end_point
616
+ end_point += 4
617
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
618
+ start = end_point
619
+ end_point += length
620
+ val2.text = str[start..(end_point-1)]
621
+ start = end_point
622
+ end_point += 4
623
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
624
+ start = end_point
625
+ end_point += length
626
+ val2.mesh_resource = str[start..(end_point-1)]
627
+ start = end_point
628
+ end_point += ROS::Struct::calc_size('C')
629
+ (val2.mesh_use_embedded_materials,) = @@struct_C.unpack(str[start..(end_point-1)])
630
+ val2.mesh_use_embedded_materials = bool(val2.mesh_use_embedded_materials)
631
+ val1.markers.push(val2)
632
+ end
633
+ start = end_point
634
+ end_point += ROS::Struct::calc_size('C')
635
+ (val1.independent_marker_orientation,) = @@struct_C.unpack(str[start..(end_point-1)])
636
+ val1.independent_marker_orientation = bool(val1.independent_marker_orientation)
637
+ start = end_point
638
+ end_point += 4
639
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
640
+ start = end_point
641
+ end_point += length
642
+ val1.description = str[start..(end_point-1)]
643
+ @controls.push(val1)
644
+ end
645
+ return self
646
+ rescue => exception
647
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
648
+ end
649
+ end
650
+ end # end of class
651
+ end # end of module