rosruby_msgs 0.0.1 → 0.0.2

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