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
@@ -58,35 +58,40 @@ duration time_from_start
58
58
  @@struct_L = ::ROS::Struct.new("L")
59
59
  @@slot_types = ['Header','string[]','trajectory_msgs/JointTrajectoryPoint[]']
60
60
 
61
- def initialize
62
- # Constructor. Any message fields that are implicitly/explicitly
63
- # set to None will be assigned a default value. The recommend
64
- # use is keyword arguments as this is more robust to future message
65
- # changes. You cannot mix in-order arguments and keyword arguments.
66
- #
67
- # The available fields are:
68
- # header,joint_names,points
69
- #
70
- # @param args: complete set of field values, in .msg order
71
- # @param kwds: use keyword arguments corresponding to message field names
72
- # to set specific fields.
73
- #
74
-
61
+ # Constructor. You can set the default values using keyword operators.
62
+ #
63
+ # @param [Hash] args keyword for initializing values
64
+ # @option args [Header] :header initialize value
65
+ # @option args [string[]] :joint_names initialize value
66
+ # @option args [trajectory_msgs/JointTrajectoryPoint[]] :points initialize value
67
+ def initialize(args={})
75
68
  # message fields cannot be None, assign default values for those that are
76
- @header = Std_msgs::Header.new
77
- @joint_names = []
78
- @points = []
69
+ if args[:header]
70
+ @header = args[:header]
71
+ else
72
+ @header = Std_msgs::Header.new
73
+ end
74
+ if args[:joint_names]
75
+ @joint_names = args[:joint_names]
76
+ else
77
+ @joint_names = []
78
+ end
79
+ if args[:points]
80
+ @points = args[:points]
81
+ else
82
+ @points = []
83
+ end
79
84
  end
80
85
 
86
+ # internal API method
87
+ # @return [String] Message type string.
81
88
  def _get_types
82
- # internal API method
83
- return @slot_types
89
+ @slot_types
84
90
  end
85
91
 
92
+ # serialize message into buffer
93
+ # @param [IO] buff buffer
86
94
  def serialize(buff)
87
- # serialize message into buffer
88
- # @param buff: buffer
89
- # @type buff: StringIO
90
95
  begin
91
96
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
92
97
  _x = @header.frame_id
@@ -113,8 +118,8 @@ duration time_from_start
113
118
  buff.write(@@struct_L.pack(length))
114
119
  pattern = "d#{length}"
115
120
  buff.write(*val1.accelerations.pack(pattern))
116
- _v25 = val1.time_from_start
117
- _x = _v25
121
+ _v5 = val1.time_from_start
122
+ _x = _v5
118
123
  buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
119
124
  end
120
125
  rescue => exception
@@ -123,10 +128,9 @@ duration time_from_start
123
128
  end
124
129
  end
125
130
 
131
+ # unpack serialized message in str into this message instance
132
+ # @param [String] str: byte array of serialized message
126
133
  def deserialize(str)
127
- # unpack serialized message in str into this message instance
128
- # @param str: byte array of serialized message
129
- # @type str: str
130
134
 
131
135
  begin
132
136
  if @header == nil
@@ -182,8 +186,8 @@ duration time_from_start
182
186
  start = end_point
183
187
  end_point += ROS::Struct::calc_size("#{pattern}")
184
188
  val1.accelerations = str[start..(end_point-1)].unpack(pattern)
185
- _v26 = val1.time_from_start
186
- _x = _v26
189
+ _v6 = val1.time_from_start
190
+ _x = _v6
187
191
  start = end_point
188
192
  end_point += ROS::Struct::calc_size('l2')
189
193
  (_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
@@ -32,36 +32,46 @@ duration time_from_start
32
32
  @@struct_L = ::ROS::Struct.new("L")
33
33
  @@slot_types = ['float64[]','float64[]','float64[]','duration']
34
34
 
35
- def initialize
36
- # Constructor. Any message fields that are implicitly/explicitly
37
- # set to None will be assigned a default value. The recommend
38
- # use is keyword arguments as this is more robust to future message
39
- # changes. You cannot mix in-order arguments and keyword arguments.
40
- #
41
- # The available fields are:
42
- # positions,velocities,accelerations,time_from_start
43
- #
44
- # @param args: complete set of field values, in .msg order
45
- # @param kwds: use keyword arguments corresponding to message field names
46
- # to set specific fields.
47
- #
48
-
35
+ # Constructor. You can set the default values using keyword operators.
36
+ #
37
+ # @param [Hash] args keyword for initializing values
38
+ # @option args [float64[]] :positions initialize value
39
+ # @option args [float64[]] :velocities initialize value
40
+ # @option args [float64[]] :accelerations initialize value
41
+ # @option args [duration] :time_from_start initialize value
42
+ def initialize(args={})
49
43
  # message fields cannot be None, assign default values for those that are
50
- @positions = []
51
- @velocities = []
52
- @accelerations = []
53
- @time_from_start = ROS::Duration.new
44
+ if args[:positions]
45
+ @positions = args[:positions]
46
+ else
47
+ @positions = []
48
+ end
49
+ if args[:velocities]
50
+ @velocities = args[:velocities]
51
+ else
52
+ @velocities = []
53
+ end
54
+ if args[:accelerations]
55
+ @accelerations = args[:accelerations]
56
+ else
57
+ @accelerations = []
58
+ end
59
+ if args[:time_from_start]
60
+ @time_from_start = args[:time_from_start]
61
+ else
62
+ @time_from_start = ROS::Duration.new
63
+ end
54
64
  end
55
65
 
66
+ # internal API method
67
+ # @return [String] Message type string.
56
68
  def _get_types
57
- # internal API method
58
- return @slot_types
69
+ @slot_types
59
70
  end
60
71
 
72
+ # serialize message into buffer
73
+ # @param [IO] buff buffer
61
74
  def serialize(buff)
62
- # serialize message into buffer
63
- # @param buff: buffer
64
- # @type buff: StringIO
65
75
  begin
66
76
  length = @positions.length
67
77
  buff.write(@@struct_L.pack(length))
@@ -82,10 +92,9 @@ duration time_from_start
82
92
  end
83
93
  end
84
94
 
95
+ # unpack serialized message in str into this message instance
96
+ # @param [String] str: byte array of serialized message
85
97
  def deserialize(str)
86
- # unpack serialized message in str into this message instance
87
- # @param str: byte array of serialized message
88
- # @type str: str
89
98
 
90
99
  begin
91
100
  if @time_from_start == nil
@@ -99,45 +99,100 @@ float32 a
99
99
  @@struct_L = ::ROS::Struct.new("L")
100
100
  @@slot_types = ['Header','string','int32','int32','int32','geometry_msgs/Point','float32','std_msgs/ColorRGBA','uint8','std_msgs/ColorRGBA','duration','geometry_msgs/Point[]','std_msgs/ColorRGBA[]']
101
101
 
102
- def initialize
103
- # Constructor. Any message fields that are implicitly/explicitly
104
- # set to None will be assigned a default value. The recommend
105
- # use is keyword arguments as this is more robust to future message
106
- # changes. You cannot mix in-order arguments and keyword arguments.
107
- #
108
- # The available fields are:
109
- # header,ns,id,type,action,position,scale,outline_color,filled,fill_color,lifetime,points,outline_colors
110
- #
111
- # @param args: complete set of field values, in .msg order
112
- # @param kwds: use keyword arguments corresponding to message field names
113
- # to set specific fields.
114
- #
115
-
102
+ # Constructor. You can set the default values using keyword operators.
103
+ #
104
+ # @param [Hash] args keyword for initializing values
105
+ # @option args [Header] :header initialize value
106
+ # @option args [string] :ns initialize value
107
+ # @option args [int32] :id initialize value
108
+ # @option args [int32] :type initialize value
109
+ # @option args [int32] :action initialize value
110
+ # @option args [geometry_msgs/Point] :position initialize value
111
+ # @option args [float32] :scale initialize value
112
+ # @option args [std_msgs/ColorRGBA] :outline_color initialize value
113
+ # @option args [uint8] :filled initialize value
114
+ # @option args [std_msgs/ColorRGBA] :fill_color initialize value
115
+ # @option args [duration] :lifetime initialize value
116
+ # @option args [geometry_msgs/Point[]] :points initialize value
117
+ # @option args [std_msgs/ColorRGBA[]] :outline_colors initialize value
118
+ def initialize(args={})
116
119
  # message fields cannot be None, assign default values for those that are
117
- @header = Std_msgs::Header.new
118
- @ns = ''
119
- @id = 0
120
- @type = 0
121
- @action = 0
122
- @position = Geometry_msgs::Point.new
123
- @scale = 0.0
124
- @outline_color = Std_msgs::ColorRGBA.new
125
- @filled = 0
126
- @fill_color = Std_msgs::ColorRGBA.new
127
- @lifetime = ROS::Duration.new
128
- @points = []
129
- @outline_colors = []
120
+ if args[:header]
121
+ @header = args[:header]
122
+ else
123
+ @header = Std_msgs::Header.new
124
+ end
125
+ if args[:ns]
126
+ @ns = args[:ns]
127
+ else
128
+ @ns = ''
129
+ end
130
+ if args[:id]
131
+ @id = args[:id]
132
+ else
133
+ @id = 0
134
+ end
135
+ if args[:type]
136
+ @type = args[:type]
137
+ else
138
+ @type = 0
139
+ end
140
+ if args[:action]
141
+ @action = args[:action]
142
+ else
143
+ @action = 0
144
+ end
145
+ if args[:position]
146
+ @position = args[:position]
147
+ else
148
+ @position = Geometry_msgs::Point.new
149
+ end
150
+ if args[:scale]
151
+ @scale = args[:scale]
152
+ else
153
+ @scale = 0.0
154
+ end
155
+ if args[:outline_color]
156
+ @outline_color = args[:outline_color]
157
+ else
158
+ @outline_color = Std_msgs::ColorRGBA.new
159
+ end
160
+ if args[:filled]
161
+ @filled = args[:filled]
162
+ else
163
+ @filled = 0
164
+ end
165
+ if args[:fill_color]
166
+ @fill_color = args[:fill_color]
167
+ else
168
+ @fill_color = Std_msgs::ColorRGBA.new
169
+ end
170
+ if args[:lifetime]
171
+ @lifetime = args[:lifetime]
172
+ else
173
+ @lifetime = ROS::Duration.new
174
+ end
175
+ if args[:points]
176
+ @points = args[:points]
177
+ else
178
+ @points = []
179
+ end
180
+ if args[:outline_colors]
181
+ @outline_colors = args[:outline_colors]
182
+ else
183
+ @outline_colors = []
184
+ end
130
185
  end
131
186
 
187
+ # internal API method
188
+ # @return [String] Message type string.
132
189
  def _get_types
133
- # internal API method
134
- return @slot_types
190
+ @slot_types
135
191
  end
136
192
 
193
+ # serialize message into buffer
194
+ # @param [IO] buff buffer
137
195
  def serialize(buff)
138
- # serialize message into buffer
139
- # @param buff: buffer
140
- # @type buff: StringIO
141
196
  begin
142
197
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
143
198
  _x = @header.frame_id
@@ -165,10 +220,9 @@ float32 a
165
220
  end
166
221
  end
167
222
 
223
+ # unpack serialized message in str into this message instance
224
+ # @param [String] str: byte array of serialized message
168
225
  def deserialize(str)
169
- # unpack serialized message in str into this message instance
170
- # @param str: byte array of serialized message
171
- # @type str: str
172
226
 
173
227
  begin
174
228
  if @header == nil
@@ -304,39 +304,64 @@ float32 a
304
304
  @@struct_L = ::ROS::Struct.new("L")
305
305
  @@slot_types = ['Header','geometry_msgs/Pose','string','string','float32','visualization_msgs/MenuEntry[]','visualization_msgs/InteractiveMarkerControl[]']
306
306
 
307
- def initialize
308
- # Constructor. Any message fields that are implicitly/explicitly
309
- # set to None will be assigned a default value. The recommend
310
- # use is keyword arguments as this is more robust to future message
311
- # changes. You cannot mix in-order arguments and keyword arguments.
312
- #
313
- # The available fields are:
314
- # header,pose,name,description,scale,menu_entries,controls
315
- #
316
- # @param args: complete set of field values, in .msg order
317
- # @param kwds: use keyword arguments corresponding to message field names
318
- # to set specific fields.
319
- #
320
-
307
+ # Constructor. You can set the default values using keyword operators.
308
+ #
309
+ # @param [Hash] args keyword for initializing values
310
+ # @option args [Header] :header initialize value
311
+ # @option args [geometry_msgs/Pose] :pose initialize value
312
+ # @option args [string] :name initialize value
313
+ # @option args [string] :description initialize value
314
+ # @option args [float32] :scale initialize value
315
+ # @option args [visualization_msgs/MenuEntry[]] :menu_entries initialize value
316
+ # @option args [visualization_msgs/InteractiveMarkerControl[]] :controls initialize value
317
+ def initialize(args={})
321
318
  # message fields cannot be None, assign default values for those that are
322
- @header = Std_msgs::Header.new
323
- @pose = Geometry_msgs::Pose.new
324
- @name = ''
325
- @description = ''
326
- @scale = 0.0
327
- @menu_entries = []
328
- @controls = []
319
+ if args[:header]
320
+ @header = args[:header]
321
+ else
322
+ @header = Std_msgs::Header.new
323
+ end
324
+ if args[:pose]
325
+ @pose = args[:pose]
326
+ else
327
+ @pose = Geometry_msgs::Pose.new
328
+ end
329
+ if args[:name]
330
+ @name = args[:name]
331
+ else
332
+ @name = ''
333
+ end
334
+ if args[:description]
335
+ @description = args[:description]
336
+ else
337
+ @description = ''
338
+ end
339
+ if args[:scale]
340
+ @scale = args[:scale]
341
+ else
342
+ @scale = 0.0
343
+ end
344
+ if args[:menu_entries]
345
+ @menu_entries = args[:menu_entries]
346
+ else
347
+ @menu_entries = []
348
+ end
349
+ if args[:controls]
350
+ @controls = args[:controls]
351
+ else
352
+ @controls = []
353
+ end
329
354
  end
330
355
 
356
+ # internal API method
357
+ # @return [String] Message type string.
331
358
  def _get_types
332
- # internal API method
333
- return @slot_types
359
+ @slot_types
334
360
  end
335
361
 
362
+ # serialize message into buffer
363
+ # @param [IO] buff buffer
336
364
  def serialize(buff)
337
- # serialize message into buffer
338
- # @param buff: buffer
339
- # @type buff: StringIO
340
365
  begin
341
366
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
342
367
  _x = @header.frame_id
@@ -369,20 +394,20 @@ float32 a
369
394
  _x = val1.name
370
395
  length = _x.length
371
396
  buff.write([length, _x].pack("La#{length}"))
372
- _v21 = val1.orientation
373
- _x = _v21
397
+ _v43 = val1.orientation
398
+ _x = _v43
374
399
  buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
375
400
  _x = val1
376
401
  buff.write(@@struct_C3.pack(_x.orientation_mode, _x.interaction_mode, _x.always_visible))
377
402
  length = val1.markers.length
378
403
  buff.write(@@struct_L.pack(length))
379
404
  for val2 in val1.markers
380
- _v22 = val2.header
381
- buff.write(@@struct_L.pack(_v22.seq))
382
- _v23 = _v22.stamp
383
- _x = _v23
405
+ _v44 = val2.header
406
+ buff.write(@@struct_L.pack(_v44.seq))
407
+ _v45 = _v44.stamp
408
+ _x = _v45
384
409
  buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
385
- _x = _v22.frame_id
410
+ _x = _v44.frame_id
386
411
  length = _x.length
387
412
  buff.write([length, _x].pack("La#{length}"))
388
413
  _x = val2.ns
@@ -390,21 +415,21 @@ float32 a
390
415
  buff.write([length, _x].pack("La#{length}"))
391
416
  _x = val2
392
417
  buff.write(@@struct_l3.pack(_x.id, _x.type, _x.action))
393
- _v24 = val2.pose
394
- _v25 = _v24.position
395
- _x = _v25
418
+ _v46 = val2.pose
419
+ _v47 = _v46.position
420
+ _x = _v47
396
421
  buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
397
- _v26 = _v24.orientation
398
- _x = _v26
422
+ _v48 = _v46.orientation
423
+ _x = _v48
399
424
  buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
400
- _v27 = val2.scale
401
- _x = _v27
425
+ _v49 = val2.scale
426
+ _x = _v49
402
427
  buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
403
- _v28 = val2.color
404
- _x = _v28
428
+ _v50 = val2.color
429
+ _x = _v50
405
430
  buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
406
- _v29 = val2.lifetime
407
- _x = _v29
431
+ _v51 = val2.lifetime
432
+ _x = _v51
408
433
  buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
409
434
  buff.write(@@struct_C.pack(val2.frame_locked))
410
435
  length = val2.points.length
@@ -438,10 +463,9 @@ float32 a
438
463
  end
439
464
  end
440
465
 
466
+ # unpack serialized message in str into this message instance
467
+ # @param [String] str: byte array of serialized message
441
468
  def deserialize(str)
442
- # unpack serialized message in str into this message instance
443
- # @param str: byte array of serialized message
444
- # @type str: str
445
469
 
446
470
  begin
447
471
  if @header == nil
@@ -517,8 +541,8 @@ float32 a
517
541
  start = end_point
518
542
  end_point += length
519
543
  val1.name = str[start..(end_point-1)]
520
- _v30 = val1.orientation
521
- _x = _v30
544
+ _v52 = val1.orientation
545
+ _x = _v52
522
546
  start = end_point
523
547
  end_point += ROS::Struct::calc_size('d4')
524
548
  (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
@@ -533,12 +557,12 @@ float32 a
533
557
  val1.markers = []
534
558
  length.times do
535
559
  val2 = Visualization_msgs::Marker.new
536
- _v31 = val2.header
560
+ _v53 = val2.header
537
561
  start = end_point
538
562
  end_point += ROS::Struct::calc_size('L')
539
- (_v31.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
540
- _v32 = _v31.stamp
541
- _x = _v32
563
+ (_v53.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
564
+ _v54 = _v53.stamp
565
+ _x = _v54
542
566
  start = end_point
543
567
  end_point += ROS::Struct::calc_size('L2')
544
568
  (_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
@@ -547,7 +571,7 @@ float32 a
547
571
  (length,) = @@struct_L.unpack(str[start..(end_point-1)])
548
572
  start = end_point
549
573
  end_point += length
550
- _v31.frame_id = str[start..(end_point-1)]
574
+ _v53.frame_id = str[start..(end_point-1)]
551
575
  start = end_point
552
576
  end_point += 4
553
577
  (length,) = @@struct_L.unpack(str[start..(end_point-1)])
@@ -558,29 +582,29 @@ float32 a
558
582
  start = end_point
559
583
  end_point += ROS::Struct::calc_size('l3')
560
584
  (_x.id, _x.type, _x.action,) = @@struct_l3.unpack(str[start..(end_point-1)])
561
- _v33 = val2.pose
562
- _v34 = _v33.position
563
- _x = _v34
585
+ _v55 = val2.pose
586
+ _v56 = _v55.position
587
+ _x = _v56
564
588
  start = end_point
565
589
  end_point += ROS::Struct::calc_size('d3')
566
590
  (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
567
- _v35 = _v33.orientation
568
- _x = _v35
591
+ _v57 = _v55.orientation
592
+ _x = _v57
569
593
  start = end_point
570
594
  end_point += ROS::Struct::calc_size('d4')
571
595
  (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
572
- _v36 = val2.scale
573
- _x = _v36
596
+ _v58 = val2.scale
597
+ _x = _v58
574
598
  start = end_point
575
599
  end_point += ROS::Struct::calc_size('d3')
576
600
  (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
577
- _v37 = val2.color
578
- _x = _v37
601
+ _v59 = val2.color
602
+ _x = _v59
579
603
  start = end_point
580
604
  end_point += ROS::Struct::calc_size('f4')
581
605
  (_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
582
- _v38 = val2.lifetime
583
- _x = _v38
606
+ _v60 = val2.lifetime
607
+ _x = _v60
584
608
  start = end_point
585
609
  end_point += ROS::Struct::calc_size('l2')
586
610
  (_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])