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,825 @@
1
+ # autogenerated by genmsg_ruby from InteractiveMarkerUpdate.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/InteractiveMarker"
10
+ require "visualization_msgs/MenuEntry"
11
+ require "visualization_msgs/InteractiveMarkerPose"
12
+ require "std_msgs/ColorRGBA"
13
+ require "geometry_msgs/Quaternion"
14
+ require "geometry_msgs/Vector3"
15
+ require "geometry_msgs/Pose"
16
+
17
+ module Visualization_msgs
18
+
19
+ class InteractiveMarkerUpdate <::ROS::Message
20
+ def self.md5sum
21
+ "f9687b34e042d26cfd564728fc644bff"
22
+ end
23
+
24
+ def self.type
25
+ "visualization_msgs/InteractiveMarkerUpdate"
26
+ end
27
+
28
+ def has_header?
29
+ false
30
+ end
31
+
32
+ def message_definition
33
+ "# Identifying string. Must be unique in the topic namespace
34
+ # that this server works on.
35
+ string server_id
36
+
37
+ # Sequence number.
38
+ # The client will use this to detect if it has missed an update.
39
+ uint64 seq_num
40
+
41
+ # Type holds the purpose of this message. It must be one of UPDATE or KEEP_ALIVE.
42
+ # UPDATE: Incremental update to previous state.
43
+ # The sequence number must be 1 higher than for
44
+ # the previous update.
45
+ # KEEP_ALIVE: Indicates the that the server is still living.
46
+ # The sequence number does not increase.
47
+ # No payload data should be filled out (markers, poses, or erases).
48
+ uint8 KEEP_ALIVE = 0
49
+ uint8 UPDATE = 1
50
+
51
+ uint8 type
52
+
53
+ #Note: No guarantees on the order of processing.
54
+ # Contents must be kept consistent by sender.
55
+
56
+ #Markers to be added or updated
57
+ InteractiveMarker[] markers
58
+
59
+ #Poses of markers that should be moved
60
+ InteractiveMarkerPose[] poses
61
+
62
+ #Names of markers to be erased
63
+ string[] erases
64
+
65
+ ================================================================================
66
+ MSG: visualization_msgs/InteractiveMarker
67
+ # Time/frame info.
68
+ # If header.time is set to 0, the marker will be retransformed into
69
+ # its frame on each timestep. You will receive the pose feedback
70
+ # in the same frame.
71
+ # Otherwise, you might receive feedback in a different frame.
72
+ # For rviz, this will be the current 'fixed frame' set by the user.
73
+ Header header
74
+
75
+ # Initial pose. Also, defines the pivot point for rotations.
76
+ geometry_msgs/Pose pose
77
+
78
+ # Identifying string. Must be globally unique in
79
+ # the topic that this message is sent through.
80
+ string name
81
+
82
+ # Short description (< 40 characters).
83
+ string description
84
+
85
+ # Scale to be used for default controls (default=1).
86
+ float32 scale
87
+
88
+ # All menu and submenu entries associated with this marker.
89
+ MenuEntry[] menu_entries
90
+
91
+ # List of controls displayed for this marker.
92
+ InteractiveMarkerControl[] controls
93
+
94
+ ================================================================================
95
+ MSG: std_msgs/Header
96
+ # Standard metadata for higher-level stamped data types.
97
+ # This is generally used to communicate timestamped data
98
+ # in a particular coordinate frame.
99
+ #
100
+ # sequence ID: consecutively increasing ID
101
+ uint32 seq
102
+ #Two-integer timestamp that is expressed as:
103
+ # * stamp.secs: seconds (stamp_secs) since epoch
104
+ # * stamp.nsecs: nanoseconds since stamp_secs
105
+ # time-handling sugar is provided by the client library
106
+ time stamp
107
+ #Frame this data is associated with
108
+ # 0: no frame
109
+ # 1: global frame
110
+ string frame_id
111
+
112
+ ================================================================================
113
+ MSG: geometry_msgs/Pose
114
+ # A representation of pose in free space, composed of postion and orientation.
115
+ Point position
116
+ Quaternion orientation
117
+
118
+ ================================================================================
119
+ MSG: geometry_msgs/Point
120
+ # This contains the position of a point in free space
121
+ float64 x
122
+ float64 y
123
+ float64 z
124
+
125
+ ================================================================================
126
+ MSG: geometry_msgs/Quaternion
127
+ # This represents an orientation in free space in quaternion form.
128
+
129
+ float64 x
130
+ float64 y
131
+ float64 z
132
+ float64 w
133
+
134
+ ================================================================================
135
+ MSG: visualization_msgs/MenuEntry
136
+ # MenuEntry message.
137
+
138
+ # Each InteractiveMarker message has an array of MenuEntry messages.
139
+ # A collection of MenuEntries together describe a
140
+ # menu/submenu/subsubmenu/etc tree, though they are stored in a flat
141
+ # array. The tree structure is represented by giving each menu entry
142
+ # an ID number and a \"parent_id\" field. Top-level entries are the
143
+ # ones with parent_id = 0. Menu entries are ordered within their
144
+ # level the same way they are ordered in the containing array. Parent
145
+ # entries must appear before their children.
146
+
147
+ # Example:
148
+ # - id = 3
149
+ # parent_id = 0
150
+ # title = \"fun\"
151
+ # - id = 2
152
+ # parent_id = 0
153
+ # title = \"robot\"
154
+ # - id = 4
155
+ # parent_id = 2
156
+ # title = \"pr2\"
157
+ # - id = 5
158
+ # parent_id = 2
159
+ # title = \"turtle\"
160
+ #
161
+ # Gives a menu tree like this:
162
+ # - fun
163
+ # - robot
164
+ # - pr2
165
+ # - turtle
166
+
167
+ # ID is a number for each menu entry. Must be unique within the
168
+ # control, and should never be 0.
169
+ uint32 id
170
+
171
+ # ID of the parent of this menu entry, if it is a submenu. If this
172
+ # menu entry is a top-level entry, set parent_id to 0.
173
+ uint32 parent_id
174
+
175
+ # menu / entry title
176
+ string title
177
+
178
+ # Arguments to command indicated by command_type (below)
179
+ string command
180
+
181
+ # Command_type stores the type of response desired when this menu
182
+ # entry is clicked.
183
+ # FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.
184
+ # ROSRUN: execute \"rosrun\" with arguments given in the command field (above).
185
+ # ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).
186
+ uint8 FEEDBACK=0
187
+ uint8 ROSRUN=1
188
+ uint8 ROSLAUNCH=2
189
+ uint8 command_type
190
+
191
+ ================================================================================
192
+ MSG: visualization_msgs/InteractiveMarkerControl
193
+ # Represents a control that is to be displayed together with an interactive marker
194
+
195
+ # Identifying string for this control.
196
+ # You need to assign a unique value to this to receive feedback from the GUI
197
+ # on what actions the user performs on this control (e.g. a button click).
198
+ string name
199
+
200
+
201
+ # Defines the local coordinate frame (relative to the pose of the parent
202
+ # interactive marker) in which is being rotated and translated.
203
+ # Default: Identity
204
+ geometry_msgs/Quaternion orientation
205
+
206
+
207
+ # Orientation mode: controls how orientation changes.
208
+ # INHERIT: Follow orientation of interactive marker
209
+ # FIXED: Keep orientation fixed at initial state
210
+ # VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).
211
+ uint8 INHERIT = 0
212
+ uint8 FIXED = 1
213
+ uint8 VIEW_FACING = 2
214
+
215
+ uint8 orientation_mode
216
+
217
+ # Interaction mode for this control
218
+ #
219
+ # NONE: This control is only meant for visualization; no context menu.
220
+ # MENU: Like NONE, but right-click menu is active.
221
+ # BUTTON: Element can be left-clicked.
222
+ # MOVE_AXIS: Translate along local x-axis.
223
+ # MOVE_PLANE: Translate in local y-z plane.
224
+ # ROTATE_AXIS: Rotate around local x-axis.
225
+ # MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.
226
+ uint8 NONE = 0
227
+ uint8 MENU = 1
228
+ uint8 BUTTON = 2
229
+ uint8 MOVE_AXIS = 3
230
+ uint8 MOVE_PLANE = 4
231
+ uint8 ROTATE_AXIS = 5
232
+ uint8 MOVE_ROTATE = 6
233
+
234
+ uint8 interaction_mode
235
+
236
+
237
+ # If true, the contained markers will also be visible
238
+ # when the gui is not in interactive mode.
239
+ bool always_visible
240
+
241
+
242
+ # Markers to be displayed as custom visual representation.
243
+ # Leave this empty to use the default control handles.
244
+ #
245
+ # Note:
246
+ # - The markers can be defined in an arbitrary coordinate frame,
247
+ # but will be transformed into the local frame of the interactive marker.
248
+ # - If the header of a marker is empty, its pose will be interpreted as
249
+ # relative to the pose of the parent interactive marker.
250
+ Marker[] markers
251
+
252
+
253
+ # In VIEW_FACING mode, set this to true if you don't want the markers
254
+ # to be aligned with the camera view point. The markers will show up
255
+ # as in INHERIT mode.
256
+ bool independent_marker_orientation
257
+
258
+
259
+ # Short description (< 40 characters) of what this control does,
260
+ # e.g. \"Move the robot\".
261
+ # Default: A generic description based on the interaction mode
262
+ string description
263
+
264
+ ================================================================================
265
+ MSG: visualization_msgs/Marker
266
+ # 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
267
+
268
+ uint8 ARROW=0
269
+ uint8 CUBE=1
270
+ uint8 SPHERE=2
271
+ uint8 CYLINDER=3
272
+ uint8 LINE_STRIP=4
273
+ uint8 LINE_LIST=5
274
+ uint8 CUBE_LIST=6
275
+ uint8 SPHERE_LIST=7
276
+ uint8 POINTS=8
277
+ uint8 TEXT_VIEW_FACING=9
278
+ uint8 MESH_RESOURCE=10
279
+ uint8 TRIANGLE_LIST=11
280
+
281
+ uint8 ADD=0
282
+ uint8 MODIFY=0
283
+ uint8 DELETE=2
284
+
285
+ Header header # header for time/frame information
286
+ string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object
287
+ int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later
288
+ int32 type # Type of object
289
+ int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object
290
+ geometry_msgs/Pose pose # Pose of the object
291
+ geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)
292
+ std_msgs/ColorRGBA color # Color [0.0-1.0]
293
+ duration lifetime # How long the object should last before being automatically deleted. 0 means forever
294
+ bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep
295
+
296
+ #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
297
+ geometry_msgs/Point[] points
298
+ #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
299
+ #number of colors must either be 0 or equal to the number of points
300
+ #NOTE: alpha is not yet used
301
+ std_msgs/ColorRGBA[] colors
302
+
303
+ # NOTE: only used for text markers
304
+ string text
305
+
306
+ # NOTE: only used for MESH_RESOURCE markers
307
+ string mesh_resource
308
+ bool mesh_use_embedded_materials
309
+
310
+ ================================================================================
311
+ MSG: geometry_msgs/Vector3
312
+ # This represents a vector in free space.
313
+
314
+ float64 x
315
+ float64 y
316
+ float64 z
317
+ ================================================================================
318
+ MSG: std_msgs/ColorRGBA
319
+ float32 r
320
+ float32 g
321
+ float32 b
322
+ float32 a
323
+
324
+ ================================================================================
325
+ MSG: visualization_msgs/InteractiveMarkerPose
326
+ # Time/frame info.
327
+ Header header
328
+
329
+ # Initial pose. Also, defines the pivot point for rotations.
330
+ geometry_msgs/Pose pose
331
+
332
+ # Identifying string. Must be globally unique in
333
+ # the topic that this message is sent through.
334
+ string name
335
+
336
+ "
337
+ end
338
+ # Pseudo-constants
339
+ KEEP_ALIVE = 0
340
+ UPDATE = 1
341
+
342
+ attr_accessor :server_id, :seq_num, :type, :markers, :poses, :erases
343
+
344
+ @@struct_C = ::ROS::Struct.new("C")
345
+ @@struct_f = ::ROS::Struct.new("f")
346
+ @@struct_l2 = ::ROS::Struct.new("l2")
347
+ @@struct_l3 = ::ROS::Struct.new("l3")
348
+ @@struct_QC = ::ROS::Struct.new("QC")
349
+ @@struct_f4 = ::ROS::Struct.new("f4")
350
+ @@struct_C3 = ::ROS::Struct.new("C3")
351
+ @@struct_d4 = ::ROS::Struct.new("d4")
352
+ @@struct_L2 = ::ROS::Struct.new("L2")
353
+ @@struct_d3 = ::ROS::Struct.new("d3")
354
+
355
+ @@struct_L = ::ROS::Struct.new("L")
356
+ @@slot_types = ['string','uint64','uint8','visualization_msgs/InteractiveMarker[]','visualization_msgs/InteractiveMarkerPose[]','string[]']
357
+
358
+ def initialize
359
+ # Constructor. Any message fields that are implicitly/explicitly
360
+ # set to None will be assigned a default value. The recommend
361
+ # use is keyword arguments as this is more robust to future message
362
+ # changes. You cannot mix in-order arguments and keyword arguments.
363
+ #
364
+ # The available fields are:
365
+ # server_id,seq_num,type,markers,poses,erases
366
+ #
367
+ # @param args: complete set of field values, in .msg order
368
+ # @param kwds: use keyword arguments corresponding to message field names
369
+ # to set specific fields.
370
+ #
371
+
372
+ # message fields cannot be None, assign default values for those that are
373
+ @server_id = ''
374
+ @seq_num = 0
375
+ @type = 0
376
+ @markers = []
377
+ @poses = []
378
+ @erases = []
379
+ end
380
+
381
+ def _get_types
382
+ # internal API method
383
+ return @slot_types
384
+ end
385
+
386
+ def serialize(buff)
387
+ # serialize message into buffer
388
+ # @param buff: buffer
389
+ # @type buff: StringIO
390
+ begin
391
+ _x = @server_id
392
+ length = _x.length
393
+ buff.write([length, _x].pack("La#{length}"))
394
+ buff.write(@@struct_QC.pack(@seq_num, @type))
395
+ length = @markers.length
396
+ buff.write(@@struct_L.pack(length))
397
+ for val1 in @markers
398
+ _v55 = val1.header
399
+ buff.write(@@struct_L.pack(_v55.seq))
400
+ _v56 = _v55.stamp
401
+ _x = _v56
402
+ buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
403
+ _x = _v55.frame_id
404
+ length = _x.length
405
+ buff.write([length, _x].pack("La#{length}"))
406
+ _v57 = val1.pose
407
+ _v58 = _v57.position
408
+ _x = _v58
409
+ buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
410
+ _v59 = _v57.orientation
411
+ _x = _v59
412
+ buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
413
+ _x = val1.name
414
+ length = _x.length
415
+ buff.write([length, _x].pack("La#{length}"))
416
+ _x = val1.description
417
+ length = _x.length
418
+ buff.write([length, _x].pack("La#{length}"))
419
+ buff.write(@@struct_f.pack(val1.scale))
420
+ length = val1.menu_entries.length
421
+ buff.write(@@struct_L.pack(length))
422
+ for val2 in val1.menu_entries
423
+ _x = val2
424
+ buff.write(@@struct_L2.pack(_x.id, _x.parent_id))
425
+ _x = val2.title
426
+ length = _x.length
427
+ buff.write([length, _x].pack("La#{length}"))
428
+ _x = val2.command
429
+ length = _x.length
430
+ buff.write([length, _x].pack("La#{length}"))
431
+ buff.write(@@struct_C.pack(val2.command_type))
432
+ end
433
+ length = val1.controls.length
434
+ buff.write(@@struct_L.pack(length))
435
+ for val2 in val1.controls
436
+ _x = val2.name
437
+ length = _x.length
438
+ buff.write([length, _x].pack("La#{length}"))
439
+ _v60 = val2.orientation
440
+ _x = _v60
441
+ buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
442
+ _x = val2
443
+ buff.write(@@struct_C3.pack(_x.orientation_mode, _x.interaction_mode, _x.always_visible))
444
+ length = val2.markers.length
445
+ buff.write(@@struct_L.pack(length))
446
+ for val3 in val2.markers
447
+ _v61 = val3.header
448
+ buff.write(@@struct_L.pack(_v61.seq))
449
+ _v62 = _v61.stamp
450
+ _x = _v62
451
+ buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
452
+ _x = _v61.frame_id
453
+ length = _x.length
454
+ buff.write([length, _x].pack("La#{length}"))
455
+ _x = val3.ns
456
+ length = _x.length
457
+ buff.write([length, _x].pack("La#{length}"))
458
+ _x = val3
459
+ buff.write(@@struct_l3.pack(_x.id, _x.type, _x.action))
460
+ _v63 = val3.pose
461
+ _v64 = _v63.position
462
+ _x = _v64
463
+ buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
464
+ _v65 = _v63.orientation
465
+ _x = _v65
466
+ buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
467
+ _v66 = val3.scale
468
+ _x = _v66
469
+ buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
470
+ _v67 = val3.color
471
+ _x = _v67
472
+ buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
473
+ _v68 = val3.lifetime
474
+ _x = _v68
475
+ buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
476
+ buff.write(@@struct_C.pack(val3.frame_locked))
477
+ length = val3.points.length
478
+ buff.write(@@struct_L.pack(length))
479
+ for val4 in val3.points
480
+ _x = val4
481
+ buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
482
+ end
483
+ length = val3.colors.length
484
+ buff.write(@@struct_L.pack(length))
485
+ for val4 in val3.colors
486
+ _x = val4
487
+ buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
488
+ end
489
+ _x = val3.text
490
+ length = _x.length
491
+ buff.write([length, _x].pack("La#{length}"))
492
+ _x = val3.mesh_resource
493
+ length = _x.length
494
+ buff.write([length, _x].pack("La#{length}"))
495
+ buff.write(@@struct_C.pack(val3.mesh_use_embedded_materials))
496
+ end
497
+ buff.write(@@struct_C.pack(val2.independent_marker_orientation))
498
+ _x = val2.description
499
+ length = _x.length
500
+ buff.write([length, _x].pack("La#{length}"))
501
+ end
502
+ end
503
+ length = @poses.length
504
+ buff.write(@@struct_L.pack(length))
505
+ for val1 in @poses
506
+ _v69 = val1.header
507
+ buff.write(@@struct_L.pack(_v69.seq))
508
+ _v70 = _v69.stamp
509
+ _x = _v70
510
+ buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
511
+ _x = _v69.frame_id
512
+ length = _x.length
513
+ buff.write([length, _x].pack("La#{length}"))
514
+ _v71 = val1.pose
515
+ _v72 = _v71.position
516
+ _x = _v72
517
+ buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
518
+ _v73 = _v71.orientation
519
+ _x = _v73
520
+ buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
521
+ _x = val1.name
522
+ length = _x.length
523
+ buff.write([length, _x].pack("La#{length}"))
524
+ end
525
+ length = @erases.length
526
+ buff.write(@@struct_L.pack(length))
527
+ for val1 in @erases
528
+ length = val1.length
529
+ buff.write([length, val1].pack("La#{length}"))
530
+ end
531
+ rescue => exception
532
+ raise "some erro in serialize: #{exception}"
533
+
534
+ end
535
+ end
536
+
537
+ def deserialize(str)
538
+ # unpack serialized message in str into this message instance
539
+ # @param str: byte array of serialized message
540
+ # @type str: str
541
+
542
+ begin
543
+ end_point = 0
544
+ start = end_point
545
+ end_point += 4
546
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
547
+ start = end_point
548
+ end_point += length
549
+ @server_id = str[start..(end_point-1)]
550
+ start = end_point
551
+ end_point += ROS::Struct::calc_size('QC')
552
+ (@seq_num, @type,) = @@struct_QC.unpack(str[start..(end_point-1)])
553
+ start = end_point
554
+ end_point += 4
555
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
556
+ @markers = []
557
+ length.times do
558
+ val1 = Visualization_msgs::InteractiveMarker.new
559
+ _v74 = val1.header
560
+ start = end_point
561
+ end_point += ROS::Struct::calc_size('L')
562
+ (_v74.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
563
+ _v75 = _v74.stamp
564
+ _x = _v75
565
+ start = end_point
566
+ end_point += ROS::Struct::calc_size('L2')
567
+ (_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
568
+ start = end_point
569
+ end_point += 4
570
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
571
+ start = end_point
572
+ end_point += length
573
+ _v74.frame_id = str[start..(end_point-1)]
574
+ _v76 = val1.pose
575
+ _v77 = _v76.position
576
+ _x = _v77
577
+ start = end_point
578
+ end_point += ROS::Struct::calc_size('d3')
579
+ (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
580
+ _v78 = _v76.orientation
581
+ _x = _v78
582
+ start = end_point
583
+ end_point += ROS::Struct::calc_size('d4')
584
+ (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
585
+ start = end_point
586
+ end_point += 4
587
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
588
+ start = end_point
589
+ end_point += length
590
+ val1.name = str[start..(end_point-1)]
591
+ start = end_point
592
+ end_point += 4
593
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
594
+ start = end_point
595
+ end_point += length
596
+ val1.description = str[start..(end_point-1)]
597
+ start = end_point
598
+ end_point += ROS::Struct::calc_size('f')
599
+ (val1.scale,) = @@struct_f.unpack(str[start..(end_point-1)])
600
+ start = end_point
601
+ end_point += 4
602
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
603
+ val1.menu_entries = []
604
+ length.times do
605
+ val2 = Visualization_msgs::MenuEntry.new
606
+ _x = val2
607
+ start = end_point
608
+ end_point += ROS::Struct::calc_size('L2')
609
+ (_x.id, _x.parent_id,) = @@struct_L2.unpack(str[start..(end_point-1)])
610
+ start = end_point
611
+ end_point += 4
612
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
613
+ start = end_point
614
+ end_point += length
615
+ val2.title = str[start..(end_point-1)]
616
+ start = end_point
617
+ end_point += 4
618
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
619
+ start = end_point
620
+ end_point += length
621
+ val2.command = str[start..(end_point-1)]
622
+ start = end_point
623
+ end_point += ROS::Struct::calc_size('C')
624
+ (val2.command_type,) = @@struct_C.unpack(str[start..(end_point-1)])
625
+ val1.menu_entries.push(val2)
626
+ end
627
+ start = end_point
628
+ end_point += 4
629
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
630
+ val1.controls = []
631
+ length.times do
632
+ val2 = Visualization_msgs::InteractiveMarkerControl.new
633
+ start = end_point
634
+ end_point += 4
635
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
636
+ start = end_point
637
+ end_point += length
638
+ val2.name = str[start..(end_point-1)]
639
+ _v79 = val2.orientation
640
+ _x = _v79
641
+ start = end_point
642
+ end_point += ROS::Struct::calc_size('d4')
643
+ (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
644
+ _x = val2
645
+ start = end_point
646
+ end_point += ROS::Struct::calc_size('C3')
647
+ (_x.orientation_mode, _x.interaction_mode, _x.always_visible,) = @@struct_C3.unpack(str[start..(end_point-1)])
648
+ val2.always_visible = bool(val2.always_visible)
649
+ start = end_point
650
+ end_point += 4
651
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
652
+ val2.markers = []
653
+ length.times do
654
+ val3 = Visualization_msgs::Marker.new
655
+ _v80 = val3.header
656
+ start = end_point
657
+ end_point += ROS::Struct::calc_size('L')
658
+ (_v80.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
659
+ _v81 = _v80.stamp
660
+ _x = _v81
661
+ start = end_point
662
+ end_point += ROS::Struct::calc_size('L2')
663
+ (_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
664
+ start = end_point
665
+ end_point += 4
666
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
667
+ start = end_point
668
+ end_point += length
669
+ _v80.frame_id = str[start..(end_point-1)]
670
+ start = end_point
671
+ end_point += 4
672
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
673
+ start = end_point
674
+ end_point += length
675
+ val3.ns = str[start..(end_point-1)]
676
+ _x = val3
677
+ start = end_point
678
+ end_point += ROS::Struct::calc_size('l3')
679
+ (_x.id, _x.type, _x.action,) = @@struct_l3.unpack(str[start..(end_point-1)])
680
+ _v82 = val3.pose
681
+ _v83 = _v82.position
682
+ _x = _v83
683
+ start = end_point
684
+ end_point += ROS::Struct::calc_size('d3')
685
+ (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
686
+ _v84 = _v82.orientation
687
+ _x = _v84
688
+ start = end_point
689
+ end_point += ROS::Struct::calc_size('d4')
690
+ (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
691
+ _v85 = val3.scale
692
+ _x = _v85
693
+ start = end_point
694
+ end_point += ROS::Struct::calc_size('d3')
695
+ (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
696
+ _v86 = val3.color
697
+ _x = _v86
698
+ start = end_point
699
+ end_point += ROS::Struct::calc_size('f4')
700
+ (_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
701
+ _v87 = val3.lifetime
702
+ _x = _v87
703
+ start = end_point
704
+ end_point += ROS::Struct::calc_size('l2')
705
+ (_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
706
+ start = end_point
707
+ end_point += ROS::Struct::calc_size('C')
708
+ (val3.frame_locked,) = @@struct_C.unpack(str[start..(end_point-1)])
709
+ val3.frame_locked = bool(val3.frame_locked)
710
+ start = end_point
711
+ end_point += 4
712
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
713
+ val3.points = []
714
+ length.times do
715
+ val4 = Geometry_msgs::Point.new
716
+ _x = val4
717
+ start = end_point
718
+ end_point += ROS::Struct::calc_size('d3')
719
+ (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
720
+ val3.points.push(val4)
721
+ end
722
+ start = end_point
723
+ end_point += 4
724
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
725
+ val3.colors = []
726
+ length.times do
727
+ val4 = Std_msgs::ColorRGBA.new
728
+ _x = val4
729
+ start = end_point
730
+ end_point += ROS::Struct::calc_size('f4')
731
+ (_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
732
+ val3.colors.push(val4)
733
+ end
734
+ start = end_point
735
+ end_point += 4
736
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
737
+ start = end_point
738
+ end_point += length
739
+ val3.text = str[start..(end_point-1)]
740
+ start = end_point
741
+ end_point += 4
742
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
743
+ start = end_point
744
+ end_point += length
745
+ val3.mesh_resource = str[start..(end_point-1)]
746
+ start = end_point
747
+ end_point += ROS::Struct::calc_size('C')
748
+ (val3.mesh_use_embedded_materials,) = @@struct_C.unpack(str[start..(end_point-1)])
749
+ val3.mesh_use_embedded_materials = bool(val3.mesh_use_embedded_materials)
750
+ val2.markers.push(val3)
751
+ end
752
+ start = end_point
753
+ end_point += ROS::Struct::calc_size('C')
754
+ (val2.independent_marker_orientation,) = @@struct_C.unpack(str[start..(end_point-1)])
755
+ val2.independent_marker_orientation = bool(val2.independent_marker_orientation)
756
+ start = end_point
757
+ end_point += 4
758
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
759
+ start = end_point
760
+ end_point += length
761
+ val2.description = str[start..(end_point-1)]
762
+ val1.controls.push(val2)
763
+ end
764
+ @markers.push(val1)
765
+ end
766
+ start = end_point
767
+ end_point += 4
768
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
769
+ @poses = []
770
+ length.times do
771
+ val1 = Visualization_msgs::InteractiveMarkerPose.new
772
+ _v88 = val1.header
773
+ start = end_point
774
+ end_point += ROS::Struct::calc_size('L')
775
+ (_v88.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
776
+ _v89 = _v88.stamp
777
+ _x = _v89
778
+ start = end_point
779
+ end_point += ROS::Struct::calc_size('L2')
780
+ (_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
781
+ start = end_point
782
+ end_point += 4
783
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
784
+ start = end_point
785
+ end_point += length
786
+ _v88.frame_id = str[start..(end_point-1)]
787
+ _v90 = val1.pose
788
+ _v91 = _v90.position
789
+ _x = _v91
790
+ start = end_point
791
+ end_point += ROS::Struct::calc_size('d3')
792
+ (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
793
+ _v92 = _v90.orientation
794
+ _x = _v92
795
+ start = end_point
796
+ end_point += ROS::Struct::calc_size('d4')
797
+ (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
798
+ start = end_point
799
+ end_point += 4
800
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
801
+ start = end_point
802
+ end_point += length
803
+ val1.name = str[start..(end_point-1)]
804
+ @poses.push(val1)
805
+ end
806
+ start = end_point
807
+ end_point += 4
808
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
809
+ @erases = []
810
+ length.times do
811
+ start = end_point
812
+ end_point += 4
813
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
814
+ start = end_point
815
+ end_point += length
816
+ val1 = str[start..(end_point-1)]
817
+ @erases.push(val1)
818
+ end
819
+ return self
820
+ rescue => exception
821
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
822
+ end
823
+ end
824
+ end # end of class
825
+ end # end of module