rosruby_msgs 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. data/{lib/actionlib_msgs → actionlib_msgs}/GoalID.rb +23 -24
  2. data/{lib/actionlib_msgs → actionlib_msgs}/GoalStatus.rb +29 -25
  3. data/{lib/actionlib_msgs → actionlib_msgs}/GoalStatusArray.rb +31 -32
  4. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingAction.rb +29 -25
  5. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionFeedback.rb +29 -25
  6. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionGoal.rb +29 -25
  7. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionResult.rb +29 -25
  8. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingFeedback.rb +35 -26
  9. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingGoal.rb +17 -23
  10. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingResult.rb +23 -24
  11. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciAction.rb +29 -25
  12. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionFeedback.rb +29 -25
  13. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionGoal.rb +29 -25
  14. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionResult.rb +29 -25
  15. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciFeedback.rb +17 -23
  16. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciGoal.rb +17 -23
  17. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciResult.rb +17 -23
  18. data/{lib/geometry_msgs → geometry_msgs}/Point.rb +29 -25
  19. data/{lib/geometry_msgs → geometry_msgs}/Point32.rb +29 -25
  20. data/{lib/geometry_msgs → geometry_msgs}/PointStamped.rb +23 -24
  21. data/{lib/geometry_msgs → geometry_msgs}/Polygon.rb +17 -23
  22. data/{lib/geometry_msgs → geometry_msgs}/PolygonStamped.rb +23 -24
  23. data/{lib/geometry_msgs → geometry_msgs}/Pose.rb +23 -24
  24. data/{lib/geometry_msgs → geometry_msgs}/Pose2D.rb +29 -25
  25. data/{lib/geometry_msgs → geometry_msgs}/PoseArray.rb +31 -32
  26. data/{lib/geometry_msgs → geometry_msgs}/PoseStamped.rb +23 -24
  27. data/{lib/geometry_msgs → geometry_msgs}/PoseWithCovariance.rb +23 -24
  28. data/{lib/geometry_msgs → geometry_msgs}/PoseWithCovarianceStamped.rb +23 -24
  29. data/{lib/geometry_msgs → geometry_msgs}/Quaternion.rb +35 -26
  30. data/{lib/geometry_msgs → geometry_msgs}/QuaternionStamped.rb +23 -24
  31. data/{lib/geometry_msgs → geometry_msgs}/Transform.rb +23 -24
  32. data/{lib/geometry_msgs → geometry_msgs}/TransformStamped.rb +29 -25
  33. data/{lib/geometry_msgs → geometry_msgs}/Twist.rb +23 -24
  34. data/{lib/geometry_msgs → geometry_msgs}/TwistStamped.rb +23 -24
  35. data/{lib/geometry_msgs → geometry_msgs}/TwistWithCovariance.rb +23 -24
  36. data/{lib/geometry_msgs → geometry_msgs}/TwistWithCovarianceStamped.rb +23 -24
  37. data/{lib/geometry_msgs → geometry_msgs}/Vector3.rb +29 -25
  38. data/{lib/geometry_msgs → geometry_msgs}/Vector3Stamped.rb +23 -24
  39. data/{lib/geometry_msgs → geometry_msgs}/Wrench.rb +23 -24
  40. data/{lib/geometry_msgs → geometry_msgs}/WrenchStamped.rb +23 -24
  41. data/{lib/nav_msgs → nav_msgs}/GetMap.rb +29 -45
  42. data/{lib/nav_msgs → nav_msgs}/GetPlan.rb +66 -68
  43. data/{lib/nav_msgs → nav_msgs}/GridCells.rb +35 -26
  44. data/{lib/nav_msgs → nav_msgs}/MapMetaData.rb +41 -27
  45. data/{lib/nav_msgs → nav_msgs}/OccupancyGrid.rb +29 -25
  46. data/{lib/nav_msgs → nav_msgs}/Odometry.rb +35 -26
  47. data/{lib/nav_msgs → nav_msgs}/Path.rb +43 -44
  48. data/pr2_controllers_msgs/JointTrajectoryAction.rb +409 -0
  49. data/pr2_controllers_msgs/JointTrajectoryActionFeedback.rb +206 -0
  50. data/pr2_controllers_msgs/JointTrajectoryActionGoal.rb +265 -0
  51. data/pr2_controllers_msgs/JointTrajectoryActionResult.rb +205 -0
  52. data/pr2_controllers_msgs/JointTrajectoryControllerState.rb +284 -0
  53. data/pr2_controllers_msgs/JointTrajectoryFeedback.rb +67 -0
  54. data/pr2_controllers_msgs/JointTrajectoryGoal.rb +196 -0
  55. data/pr2_controllers_msgs/JointTrajectoryResult.rb +66 -0
  56. data/pr2_controllers_msgs/PointHeadActionFeedback.rb +211 -0
  57. data/pr2_controllers_msgs/PointHeadActionGoal.rb +225 -0
  58. data/pr2_controllers_msgs/PointHeadActionResult.rb +205 -0
  59. data/pr2_controllers_msgs/PointHeadGoal.rb +186 -0
  60. data/pr2_controllers_msgs/Pr2GripperCommandAction.rb +334 -0
  61. data/pr2_controllers_msgs/Pr2GripperCommandActionGoal.rb +0 -0
  62. data/pr2_controllers_msgs/Pr2GripperCommandActionResult.rb +216 -0
  63. data/pr2_controllers_msgs/Pr2GripperCommandFeedback.rb +102 -0
  64. data/pr2_controllers_msgs/Pr2GripperCommandGoal.rb +87 -0
  65. data/pr2_controllers_msgs/Pr2GripperCommandResult.rb +101 -0
  66. data/pr2_controllers_msgs/SingleJointPositionAction.rb +335 -0
  67. data/pr2_controllers_msgs/SingleJointPositionActionFeedback.rb +228 -0
  68. data/pr2_controllers_msgs/SingleJointPositionActionGoal.rb +173 -0
  69. data/pr2_controllers_msgs/SingleJointPositionActionResult.rb +205 -0
  70. data/pr2_controllers_msgs/SingleJointPositionGoal.rb +96 -0
  71. data/pr2_controllers_msgs/SingleJointPositionResult.rb +66 -0
  72. data/{lib/roscpp → roscpp}/Empty.rb +24 -44
  73. data/{lib/roscpp → roscpp}/GetLoggers.rb +29 -45
  74. data/{lib/roscpp → roscpp}/Logger.rb +23 -24
  75. data/{lib/roscpp → roscpp}/SetLoggerLevel.rb +35 -46
  76. data/{lib/roscpp_tutorials → roscpp_tutorials}/TwoInts.rb +40 -47
  77. data/{lib/rosgraph_msgs → rosgraph_msgs}/Clock.rb +17 -23
  78. data/{lib/rosgraph_msgs → rosgraph_msgs}/Log.rb +59 -30
  79. data/{lib/sensor_msgs → sensor_msgs}/CameraInfo.rb +77 -33
  80. data/{lib/sensor_msgs → sensor_msgs}/ChannelFloat32.rb +23 -24
  81. data/{lib/sensor_msgs → sensor_msgs}/CompressedImage.rb +30 -31
  82. data/{lib/sensor_msgs → sensor_msgs}/Image.rb +54 -35
  83. data/{lib/sensor_msgs → sensor_msgs}/Imu.rb +53 -29
  84. data/{lib/sensor_msgs → sensor_msgs}/JointState.rb +41 -27
  85. data/{lib/sensor_msgs → sensor_msgs}/Joy.rb +29 -25
  86. data/{lib/sensor_msgs → sensor_msgs}/JoyFeedback.rb +29 -25
  87. data/{lib/sensor_msgs → sensor_msgs}/JoyFeedbackArray.rb +17 -23
  88. data/{lib/sensor_msgs → sensor_msgs}/LaserScan.rb +71 -32
  89. data/{lib/sensor_msgs → sensor_msgs}/NavSatFix.rb +53 -29
  90. data/{lib/sensor_msgs → sensor_msgs}/NavSatStatus.rb +23 -24
  91. data/{lib/sensor_msgs → sensor_msgs}/PointCloud.rb +29 -25
  92. data/{lib/sensor_msgs → sensor_msgs}/PointCloud2.rb +66 -37
  93. data/{lib/sensor_msgs → sensor_msgs}/PointField.rb +35 -26
  94. data/{lib/sensor_msgs → sensor_msgs}/Range.rb +47 -28
  95. data/{lib/sensor_msgs → sensor_msgs}/RegionOfInterest.rb +41 -27
  96. data/{lib/sensor_msgs → sensor_msgs}/SetCameraInfo.rb +40 -47
  97. data/{lib/sensor_msgs → sensor_msgs}/TimeReference.rb +29 -25
  98. data/{lib/std_msgs → std_msgs}/Bool.rb +17 -23
  99. data/{lib/std_msgs → std_msgs}/Byte.rb +17 -23
  100. data/{lib/std_msgs → std_msgs}/ByteMultiArray.rb +23 -24
  101. data/{lib/std_msgs → std_msgs}/Char.rb +17 -23
  102. data/{lib/std_msgs → std_msgs}/ColorRGBA.rb +35 -26
  103. data/{lib/std_msgs → std_msgs}/Duration.rb +17 -23
  104. data/std_msgs/Empty.rb +65 -0
  105. data/{lib/std_msgs → std_msgs}/Float32.rb +17 -23
  106. data/{lib/std_msgs → std_msgs}/Float32MultiArray.rb +23 -24
  107. data/{lib/std_msgs → std_msgs}/Float64.rb +17 -23
  108. data/{lib/std_msgs → std_msgs}/Float64MultiArray.rb +23 -24
  109. data/{lib/std_msgs → std_msgs}/Header.rb +29 -25
  110. data/{lib/std_msgs → std_msgs}/Int16.rb +17 -23
  111. data/{lib/std_msgs → std_msgs}/Int16MultiArray.rb +23 -24
  112. data/{lib/std_msgs → std_msgs}/Int32.rb +17 -23
  113. data/{lib/std_msgs → std_msgs}/Int32MultiArray.rb +23 -24
  114. data/{lib/std_msgs → std_msgs}/Int64.rb +17 -23
  115. data/{lib/std_msgs → std_msgs}/Int64MultiArray.rb +23 -24
  116. data/{lib/std_msgs → std_msgs}/Int8.rb +17 -23
  117. data/{lib/std_msgs → std_msgs}/Int8MultiArray.rb +23 -24
  118. data/{lib/std_msgs → std_msgs}/MultiArrayDimension.rb +29 -25
  119. data/{lib/std_msgs → std_msgs}/MultiArrayLayout.rb +23 -24
  120. data/{lib/std_msgs → std_msgs}/String.rb +17 -23
  121. data/{lib/std_msgs → std_msgs}/Time.rb +17 -23
  122. data/{lib/std_msgs → std_msgs}/UInt16.rb +17 -23
  123. data/{lib/std_msgs → std_msgs}/UInt16MultiArray.rb +23 -24
  124. data/{lib/std_msgs → std_msgs}/UInt32.rb +17 -23
  125. data/{lib/std_msgs → std_msgs}/UInt32MultiArray.rb +23 -24
  126. data/{lib/std_msgs → std_msgs}/UInt64.rb +17 -23
  127. data/{lib/std_msgs → std_msgs}/UInt64MultiArray.rb +23 -24
  128. data/{lib/std_msgs → std_msgs}/UInt8.rb +17 -23
  129. data/{lib/std_msgs → std_msgs}/UInt8MultiArray.rb +24 -30
  130. data/{lib/std_srvs → std_srvs}/Empty.rb +24 -44
  131. data/{lib/stereo_msgs → stereo_msgs}/DisparityImage.rb +60 -36
  132. data/{lib/tf → tf}/FrameGraph.rb +29 -45
  133. data/{lib/tf → tf}/tfMessage.rb +37 -43
  134. data/{lib/trajectory_msgs → trajectory_msgs}/JointTrajectory.rb +33 -29
  135. data/{lib/trajectory_msgs → trajectory_msgs}/JointTrajectoryPoint.rb +35 -26
  136. data/{lib/visualization_msgs → visualization_msgs}/ImageMarker.rb +89 -35
  137. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarker.rb +89 -65
  138. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerControl.rb +91 -62
  139. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerFeedback.rb +65 -31
  140. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerInit.rb +85 -81
  141. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerPose.rb +29 -25
  142. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerUpdate.rb +123 -104
  143. data/{lib/visualization_msgs → visualization_msgs}/Marker.rb +101 -37
  144. data/{lib/visualization_msgs → visualization_msgs}/MarkerArray.rb +49 -55
  145. data/{lib/visualization_msgs → visualization_msgs}/MenuEntry.rb +41 -27
  146. metadata +149 -129
  147. data/lib/std_msgs/Empty.rb +0 -75
@@ -82,35 +82,40 @@ float64 w
82
82
  @@struct_L = ::ROS::Struct.new("L")
83
83
  @@slot_types = ['Header','geometry_msgs/Pose','string']
84
84
 
85
- def initialize
86
- # Constructor. Any message fields that are implicitly/explicitly
87
- # set to None will be assigned a default value. The recommend
88
- # use is keyword arguments as this is more robust to future message
89
- # changes. You cannot mix in-order arguments and keyword arguments.
90
- #
91
- # The available fields are:
92
- # header,pose,name
93
- #
94
- # @param args: complete set of field values, in .msg order
95
- # @param kwds: use keyword arguments corresponding to message field names
96
- # to set specific fields.
97
- #
98
-
85
+ # Constructor. You can set the default values using keyword operators.
86
+ #
87
+ # @param [Hash] args keyword for initializing values
88
+ # @option args [Header] :header initialize value
89
+ # @option args [geometry_msgs/Pose] :pose initialize value
90
+ # @option args [string] :name initialize value
91
+ def initialize(args={})
99
92
  # message fields cannot be None, assign default values for those that are
100
- @header = Std_msgs::Header.new
101
- @pose = Geometry_msgs::Pose.new
102
- @name = ''
93
+ if args[:header]
94
+ @header = args[:header]
95
+ else
96
+ @header = Std_msgs::Header.new
97
+ end
98
+ if args[:pose]
99
+ @pose = args[:pose]
100
+ else
101
+ @pose = Geometry_msgs::Pose.new
102
+ end
103
+ if args[:name]
104
+ @name = args[:name]
105
+ else
106
+ @name = ''
107
+ end
103
108
  end
104
109
 
110
+ # internal API method
111
+ # @return [String] Message type string.
105
112
  def _get_types
106
- # internal API method
107
- return @slot_types
113
+ @slot_types
108
114
  end
109
115
 
116
+ # serialize message into buffer
117
+ # @param [IO] buff buffer
110
118
  def serialize(buff)
111
- # serialize message into buffer
112
- # @param buff: buffer
113
- # @type buff: StringIO
114
119
  begin
115
120
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
116
121
  _x = @header.frame_id
@@ -126,10 +131,9 @@ float64 w
126
131
  end
127
132
  end
128
133
 
134
+ # unpack serialized message in str into this message instance
135
+ # @param [String] str: byte array of serialized message
129
136
  def deserialize(str)
130
- # unpack serialized message in str into this message instance
131
- # @param str: byte array of serialized message
132
- # @type str: str
133
137
 
134
138
  begin
135
139
  if @header == nil
@@ -355,38 +355,58 @@ string name
355
355
  @@struct_L = ::ROS::Struct.new("L")
356
356
  @@slot_types = ['string','uint64','uint8','visualization_msgs/InteractiveMarker[]','visualization_msgs/InteractiveMarkerPose[]','string[]']
357
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
-
358
+ # Constructor. You can set the default values using keyword operators.
359
+ #
360
+ # @param [Hash] args keyword for initializing values
361
+ # @option args [string] :server_id initialize value
362
+ # @option args [uint64] :seq_num initialize value
363
+ # @option args [uint8] :type initialize value
364
+ # @option args [visualization_msgs/InteractiveMarker[]] :markers initialize value
365
+ # @option args [visualization_msgs/InteractiveMarkerPose[]] :poses initialize value
366
+ # @option args [string[]] :erases initialize value
367
+ def initialize(args={})
372
368
  # 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 = []
369
+ if args[:server_id]
370
+ @server_id = args[:server_id]
371
+ else
372
+ @server_id = ''
373
+ end
374
+ if args[:seq_num]
375
+ @seq_num = args[:seq_num]
376
+ else
377
+ @seq_num = 0
378
+ end
379
+ if args[:type]
380
+ @type = args[:type]
381
+ else
382
+ @type = 0
383
+ end
384
+ if args[:markers]
385
+ @markers = args[:markers]
386
+ else
387
+ @markers = []
388
+ end
389
+ if args[:poses]
390
+ @poses = args[:poses]
391
+ else
392
+ @poses = []
393
+ end
394
+ if args[:erases]
395
+ @erases = args[:erases]
396
+ else
397
+ @erases = []
398
+ end
379
399
  end
380
400
 
401
+ # internal API method
402
+ # @return [String] Message type string.
381
403
  def _get_types
382
- # internal API method
383
- return @slot_types
404
+ @slot_types
384
405
  end
385
406
 
407
+ # serialize message into buffer
408
+ # @param [IO] buff buffer
386
409
  def serialize(buff)
387
- # serialize message into buffer
388
- # @param buff: buffer
389
- # @type buff: StringIO
390
410
  begin
391
411
  _x = @server_id
392
412
  length = _x.length
@@ -395,20 +415,20 @@ string name
395
415
  length = @markers.length
396
416
  buff.write(@@struct_L.pack(length))
397
417
  for val1 in @markers
398
- _v55 = val1.header
399
- buff.write(@@struct_L.pack(_v55.seq))
400
- _v56 = _v55.stamp
401
- _x = _v56
418
+ _v77 = val1.header
419
+ buff.write(@@struct_L.pack(_v77.seq))
420
+ _v78 = _v77.stamp
421
+ _x = _v78
402
422
  buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
403
- _x = _v55.frame_id
423
+ _x = _v77.frame_id
404
424
  length = _x.length
405
425
  buff.write([length, _x].pack("La#{length}"))
406
- _v57 = val1.pose
407
- _v58 = _v57.position
408
- _x = _v58
426
+ _v79 = val1.pose
427
+ _v80 = _v79.position
428
+ _x = _v80
409
429
  buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
410
- _v59 = _v57.orientation
411
- _x = _v59
430
+ _v81 = _v79.orientation
431
+ _x = _v81
412
432
  buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
413
433
  _x = val1.name
414
434
  length = _x.length
@@ -436,20 +456,20 @@ string name
436
456
  _x = val2.name
437
457
  length = _x.length
438
458
  buff.write([length, _x].pack("La#{length}"))
439
- _v60 = val2.orientation
440
- _x = _v60
459
+ _v82 = val2.orientation
460
+ _x = _v82
441
461
  buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
442
462
  _x = val2
443
463
  buff.write(@@struct_C3.pack(_x.orientation_mode, _x.interaction_mode, _x.always_visible))
444
464
  length = val2.markers.length
445
465
  buff.write(@@struct_L.pack(length))
446
466
  for val3 in val2.markers
447
- _v61 = val3.header
448
- buff.write(@@struct_L.pack(_v61.seq))
449
- _v62 = _v61.stamp
450
- _x = _v62
467
+ _v83 = val3.header
468
+ buff.write(@@struct_L.pack(_v83.seq))
469
+ _v84 = _v83.stamp
470
+ _x = _v84
451
471
  buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
452
- _x = _v61.frame_id
472
+ _x = _v83.frame_id
453
473
  length = _x.length
454
474
  buff.write([length, _x].pack("La#{length}"))
455
475
  _x = val3.ns
@@ -457,21 +477,21 @@ string name
457
477
  buff.write([length, _x].pack("La#{length}"))
458
478
  _x = val3
459
479
  buff.write(@@struct_l3.pack(_x.id, _x.type, _x.action))
460
- _v63 = val3.pose
461
- _v64 = _v63.position
462
- _x = _v64
480
+ _v85 = val3.pose
481
+ _v86 = _v85.position
482
+ _x = _v86
463
483
  buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
464
- _v65 = _v63.orientation
465
- _x = _v65
484
+ _v87 = _v85.orientation
485
+ _x = _v87
466
486
  buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
467
- _v66 = val3.scale
468
- _x = _v66
487
+ _v88 = val3.scale
488
+ _x = _v88
469
489
  buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
470
- _v67 = val3.color
471
- _x = _v67
490
+ _v89 = val3.color
491
+ _x = _v89
472
492
  buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
473
- _v68 = val3.lifetime
474
- _x = _v68
493
+ _v90 = val3.lifetime
494
+ _x = _v90
475
495
  buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
476
496
  buff.write(@@struct_C.pack(val3.frame_locked))
477
497
  length = val3.points.length
@@ -503,20 +523,20 @@ string name
503
523
  length = @poses.length
504
524
  buff.write(@@struct_L.pack(length))
505
525
  for val1 in @poses
506
- _v69 = val1.header
507
- buff.write(@@struct_L.pack(_v69.seq))
508
- _v70 = _v69.stamp
509
- _x = _v70
526
+ _v91 = val1.header
527
+ buff.write(@@struct_L.pack(_v91.seq))
528
+ _v92 = _v91.stamp
529
+ _x = _v92
510
530
  buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
511
- _x = _v69.frame_id
531
+ _x = _v91.frame_id
512
532
  length = _x.length
513
533
  buff.write([length, _x].pack("La#{length}"))
514
- _v71 = val1.pose
515
- _v72 = _v71.position
516
- _x = _v72
534
+ _v93 = val1.pose
535
+ _v94 = _v93.position
536
+ _x = _v94
517
537
  buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
518
- _v73 = _v71.orientation
519
- _x = _v73
538
+ _v95 = _v93.orientation
539
+ _x = _v95
520
540
  buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
521
541
  _x = val1.name
522
542
  length = _x.length
@@ -534,10 +554,9 @@ string name
534
554
  end
535
555
  end
536
556
 
557
+ # unpack serialized message in str into this message instance
558
+ # @param [String] str: byte array of serialized message
537
559
  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
560
 
542
561
  begin
543
562
  end_point = 0
@@ -556,12 +575,12 @@ string name
556
575
  @markers = []
557
576
  length.times do
558
577
  val1 = Visualization_msgs::InteractiveMarker.new
559
- _v74 = val1.header
578
+ _v96 = val1.header
560
579
  start = end_point
561
580
  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
581
+ (_v96.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
582
+ _v97 = _v96.stamp
583
+ _x = _v97
565
584
  start = end_point
566
585
  end_point += ROS::Struct::calc_size('L2')
567
586
  (_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
@@ -570,15 +589,15 @@ string name
570
589
  (length,) = @@struct_L.unpack(str[start..(end_point-1)])
571
590
  start = end_point
572
591
  end_point += length
573
- _v74.frame_id = str[start..(end_point-1)]
574
- _v76 = val1.pose
575
- _v77 = _v76.position
576
- _x = _v77
592
+ _v96.frame_id = str[start..(end_point-1)]
593
+ _v98 = val1.pose
594
+ _v99 = _v98.position
595
+ _x = _v99
577
596
  start = end_point
578
597
  end_point += ROS::Struct::calc_size('d3')
579
598
  (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
580
- _v78 = _v76.orientation
581
- _x = _v78
599
+ _v100 = _v98.orientation
600
+ _x = _v100
582
601
  start = end_point
583
602
  end_point += ROS::Struct::calc_size('d4')
584
603
  (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
@@ -636,8 +655,8 @@ string name
636
655
  start = end_point
637
656
  end_point += length
638
657
  val2.name = str[start..(end_point-1)]
639
- _v79 = val2.orientation
640
- _x = _v79
658
+ _v101 = val2.orientation
659
+ _x = _v101
641
660
  start = end_point
642
661
  end_point += ROS::Struct::calc_size('d4')
643
662
  (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
@@ -652,12 +671,12 @@ string name
652
671
  val2.markers = []
653
672
  length.times do
654
673
  val3 = Visualization_msgs::Marker.new
655
- _v80 = val3.header
674
+ _v102 = val3.header
656
675
  start = end_point
657
676
  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
677
+ (_v102.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
678
+ _v103 = _v102.stamp
679
+ _x = _v103
661
680
  start = end_point
662
681
  end_point += ROS::Struct::calc_size('L2')
663
682
  (_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
@@ -666,7 +685,7 @@ string name
666
685
  (length,) = @@struct_L.unpack(str[start..(end_point-1)])
667
686
  start = end_point
668
687
  end_point += length
669
- _v80.frame_id = str[start..(end_point-1)]
688
+ _v102.frame_id = str[start..(end_point-1)]
670
689
  start = end_point
671
690
  end_point += 4
672
691
  (length,) = @@struct_L.unpack(str[start..(end_point-1)])
@@ -677,29 +696,29 @@ string name
677
696
  start = end_point
678
697
  end_point += ROS::Struct::calc_size('l3')
679
698
  (_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
699
+ _v104 = val3.pose
700
+ _v105 = _v104.position
701
+ _x = _v105
683
702
  start = end_point
684
703
  end_point += ROS::Struct::calc_size('d3')
685
704
  (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
686
- _v84 = _v82.orientation
687
- _x = _v84
705
+ _v106 = _v104.orientation
706
+ _x = _v106
688
707
  start = end_point
689
708
  end_point += ROS::Struct::calc_size('d4')
690
709
  (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
691
- _v85 = val3.scale
692
- _x = _v85
710
+ _v107 = val3.scale
711
+ _x = _v107
693
712
  start = end_point
694
713
  end_point += ROS::Struct::calc_size('d3')
695
714
  (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
696
- _v86 = val3.color
697
- _x = _v86
715
+ _v108 = val3.color
716
+ _x = _v108
698
717
  start = end_point
699
718
  end_point += ROS::Struct::calc_size('f4')
700
719
  (_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
701
- _v87 = val3.lifetime
702
- _x = _v87
720
+ _v109 = val3.lifetime
721
+ _x = _v109
703
722
  start = end_point
704
723
  end_point += ROS::Struct::calc_size('l2')
705
724
  (_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
@@ -769,12 +788,12 @@ string name
769
788
  @poses = []
770
789
  length.times do
771
790
  val1 = Visualization_msgs::InteractiveMarkerPose.new
772
- _v88 = val1.header
791
+ _v110 = val1.header
773
792
  start = end_point
774
793
  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
794
+ (_v110.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
795
+ _v111 = _v110.stamp
796
+ _x = _v111
778
797
  start = end_point
779
798
  end_point += ROS::Struct::calc_size('L2')
780
799
  (_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
@@ -783,15 +802,15 @@ string name
783
802
  (length,) = @@struct_L.unpack(str[start..(end_point-1)])
784
803
  start = end_point
785
804
  end_point += length
786
- _v88.frame_id = str[start..(end_point-1)]
787
- _v90 = val1.pose
788
- _v91 = _v90.position
789
- _x = _v91
805
+ _v110.frame_id = str[start..(end_point-1)]
806
+ _v112 = val1.pose
807
+ _v113 = _v112.position
808
+ _x = _v113
790
809
  start = end_point
791
810
  end_point += ROS::Struct::calc_size('d3')
792
811
  (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
793
- _v92 = _v90.orientation
794
- _x = _v92
812
+ _v114 = _v112.orientation
813
+ _x = _v114
795
814
  start = end_point
796
815
  end_point += ROS::Struct::calc_size('d4')
797
816
  (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
@@ -153,47 +153,112 @@ float32 a
153
153
  @@struct_L = ::ROS::Struct.new("L")
154
154
  @@slot_types = ['Header','string','int32','int32','int32','geometry_msgs/Pose','geometry_msgs/Vector3','std_msgs/ColorRGBA','duration','bool','geometry_msgs/Point[]','std_msgs/ColorRGBA[]','string','string','bool']
155
155
 
156
- def initialize
157
- # Constructor. Any message fields that are implicitly/explicitly
158
- # set to None will be assigned a default value. The recommend
159
- # use is keyword arguments as this is more robust to future message
160
- # changes. You cannot mix in-order arguments and keyword arguments.
161
- #
162
- # The available fields are:
163
- # header,ns,id,type,action,pose,scale,color,lifetime,frame_locked,points,colors,text,mesh_resource,mesh_use_embedded_materials
164
- #
165
- # @param args: complete set of field values, in .msg order
166
- # @param kwds: use keyword arguments corresponding to message field names
167
- # to set specific fields.
168
- #
169
-
156
+ # Constructor. You can set the default values using keyword operators.
157
+ #
158
+ # @param [Hash] args keyword for initializing values
159
+ # @option args [Header] :header initialize value
160
+ # @option args [string] :ns initialize value
161
+ # @option args [int32] :id initialize value
162
+ # @option args [int32] :type initialize value
163
+ # @option args [int32] :action initialize value
164
+ # @option args [geometry_msgs/Pose] :pose initialize value
165
+ # @option args [geometry_msgs/Vector3] :scale initialize value
166
+ # @option args [std_msgs/ColorRGBA] :color initialize value
167
+ # @option args [duration] :lifetime initialize value
168
+ # @option args [bool] :frame_locked initialize value
169
+ # @option args [geometry_msgs/Point[]] :points initialize value
170
+ # @option args [std_msgs/ColorRGBA[]] :colors initialize value
171
+ # @option args [string] :text initialize value
172
+ # @option args [string] :mesh_resource initialize value
173
+ # @option args [bool] :mesh_use_embedded_materials initialize value
174
+ def initialize(args={})
170
175
  # message fields cannot be None, assign default values for those that are
171
- @header = Std_msgs::Header.new
172
- @ns = ''
173
- @id = 0
174
- @type = 0
175
- @action = 0
176
- @pose = Geometry_msgs::Pose.new
177
- @scale = Geometry_msgs::Vector3.new
178
- @color = Std_msgs::ColorRGBA.new
179
- @lifetime = ROS::Duration.new
180
- @frame_locked = false
181
- @points = []
182
- @colors = []
183
- @text = ''
184
- @mesh_resource = ''
185
- @mesh_use_embedded_materials = false
176
+ if args[:header]
177
+ @header = args[:header]
178
+ else
179
+ @header = Std_msgs::Header.new
180
+ end
181
+ if args[:ns]
182
+ @ns = args[:ns]
183
+ else
184
+ @ns = ''
185
+ end
186
+ if args[:id]
187
+ @id = args[:id]
188
+ else
189
+ @id = 0
190
+ end
191
+ if args[:type]
192
+ @type = args[:type]
193
+ else
194
+ @type = 0
195
+ end
196
+ if args[:action]
197
+ @action = args[:action]
198
+ else
199
+ @action = 0
200
+ end
201
+ if args[:pose]
202
+ @pose = args[:pose]
203
+ else
204
+ @pose = Geometry_msgs::Pose.new
205
+ end
206
+ if args[:scale]
207
+ @scale = args[:scale]
208
+ else
209
+ @scale = Geometry_msgs::Vector3.new
210
+ end
211
+ if args[:color]
212
+ @color = args[:color]
213
+ else
214
+ @color = Std_msgs::ColorRGBA.new
215
+ end
216
+ if args[:lifetime]
217
+ @lifetime = args[:lifetime]
218
+ else
219
+ @lifetime = ROS::Duration.new
220
+ end
221
+ if args[:frame_locked]
222
+ @frame_locked = args[:frame_locked]
223
+ else
224
+ @frame_locked = false
225
+ end
226
+ if args[:points]
227
+ @points = args[:points]
228
+ else
229
+ @points = []
230
+ end
231
+ if args[:colors]
232
+ @colors = args[:colors]
233
+ else
234
+ @colors = []
235
+ end
236
+ if args[:text]
237
+ @text = args[:text]
238
+ else
239
+ @text = ''
240
+ end
241
+ if args[:mesh_resource]
242
+ @mesh_resource = args[:mesh_resource]
243
+ else
244
+ @mesh_resource = ''
245
+ end
246
+ if args[:mesh_use_embedded_materials]
247
+ @mesh_use_embedded_materials = args[:mesh_use_embedded_materials]
248
+ else
249
+ @mesh_use_embedded_materials = false
250
+ end
186
251
  end
187
252
 
253
+ # internal API method
254
+ # @return [String] Message type string.
188
255
  def _get_types
189
- # internal API method
190
- return @slot_types
256
+ @slot_types
191
257
  end
192
258
 
259
+ # serialize message into buffer
260
+ # @param [IO] buff buffer
193
261
  def serialize(buff)
194
- # serialize message into buffer
195
- # @param buff: buffer
196
- # @type buff: StringIO
197
262
  begin
198
263
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
199
264
  _x = @header.frame_id
@@ -228,10 +293,9 @@ float32 a
228
293
  end
229
294
  end
230
295
 
296
+ # unpack serialized message in str into this message instance
297
+ # @param [String] str: byte array of serialized message
231
298
  def deserialize(str)
232
- # unpack serialized message in str into this message instance
233
- # @param str: byte array of serialized message
234
- # @type str: str
235
299
 
236
300
  begin
237
301
  if @header == nil