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
@@ -39,34 +39,34 @@ string id
39
39
  @@struct_L = ::ROS::Struct.new("L")
40
40
  @@slot_types = ['time','string']
41
41
 
42
- def initialize
43
- # Constructor. Any message fields that are implicitly/explicitly
44
- # set to None will be assigned a default value. The recommend
45
- # use is keyword arguments as this is more robust to future message
46
- # changes. You cannot mix in-order arguments and keyword arguments.
47
- #
48
- # The available fields are:
49
- # stamp,id
50
- #
51
- # @param args: complete set of field values, in .msg order
52
- # @param kwds: use keyword arguments corresponding to message field names
53
- # to set specific fields.
54
- #
55
-
42
+ # Constructor. You can set the default values using keyword operators.
43
+ #
44
+ # @param [Hash] args keyword for initializing values
45
+ # @option args [time] :stamp initialize value
46
+ # @option args [string] :id initialize value
47
+ def initialize(args={})
56
48
  # message fields cannot be None, assign default values for those that are
57
- @stamp = ROS::Time.new
58
- @id = ''
49
+ if args[:stamp]
50
+ @stamp = args[:stamp]
51
+ else
52
+ @stamp = ROS::Time.new
53
+ end
54
+ if args[:id]
55
+ @id = args[:id]
56
+ else
57
+ @id = ''
58
+ end
59
59
  end
60
60
 
61
+ # internal API method
62
+ # @return [String] Message type string.
61
63
  def _get_types
62
- # internal API method
63
- return @slot_types
64
+ @slot_types
64
65
  end
65
66
 
67
+ # serialize message into buffer
68
+ # @param [IO] buff buffer
66
69
  def serialize(buff)
67
- # serialize message into buffer
68
- # @param buff: buffer
69
- # @type buff: StringIO
70
70
  begin
71
71
  buff.write(@@struct_L2.pack(@stamp.secs, @stamp.nsecs))
72
72
  _x = @id
@@ -78,10 +78,9 @@ string id
78
78
  end
79
79
  end
80
80
 
81
+ # unpack serialized message in str into this message instance
82
+ # @param [String] str: byte array of serialized message
81
83
  def deserialize(str)
82
- # unpack serialized message in str into this message instance
83
- # @param str: byte array of serialized message
84
- # @type str: str
85
84
 
86
85
  begin
87
86
  if @stamp == nil
@@ -79,35 +79,40 @@ string id
79
79
  @@struct_L = ::ROS::Struct.new("L")
80
80
  @@slot_types = ['actionlib_msgs/GoalID','uint8','string']
81
81
 
82
- def initialize
83
- # Constructor. Any message fields that are implicitly/explicitly
84
- # set to None will be assigned a default value. The recommend
85
- # use is keyword arguments as this is more robust to future message
86
- # changes. You cannot mix in-order arguments and keyword arguments.
87
- #
88
- # The available fields are:
89
- # goal_id,status,text
90
- #
91
- # @param args: complete set of field values, in .msg order
92
- # @param kwds: use keyword arguments corresponding to message field names
93
- # to set specific fields.
94
- #
95
-
82
+ # Constructor. You can set the default values using keyword operators.
83
+ #
84
+ # @param [Hash] args keyword for initializing values
85
+ # @option args [actionlib_msgs/GoalID] :goal_id initialize value
86
+ # @option args [uint8] :status initialize value
87
+ # @option args [string] :text initialize value
88
+ def initialize(args={})
96
89
  # message fields cannot be None, assign default values for those that are
97
- @goal_id = Actionlib_msgs::GoalID.new
98
- @status = 0
99
- @text = ''
90
+ if args[:goal_id]
91
+ @goal_id = args[:goal_id]
92
+ else
93
+ @goal_id = Actionlib_msgs::GoalID.new
94
+ end
95
+ if args[:status]
96
+ @status = args[:status]
97
+ else
98
+ @status = 0
99
+ end
100
+ if args[:text]
101
+ @text = args[:text]
102
+ else
103
+ @text = ''
104
+ end
100
105
  end
101
106
 
107
+ # internal API method
108
+ # @return [String] Message type string.
102
109
  def _get_types
103
- # internal API method
104
- return @slot_types
110
+ @slot_types
105
111
  end
106
112
 
113
+ # serialize message into buffer
114
+ # @param [IO] buff buffer
107
115
  def serialize(buff)
108
- # serialize message into buffer
109
- # @param buff: buffer
110
- # @type buff: StringIO
111
116
  begin
112
117
  buff.write(@@struct_L2.pack(@goal_id.stamp.secs, @goal_id.stamp.nsecs))
113
118
  _x = @goal_id.id
@@ -123,10 +128,9 @@ string id
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 @goal_id == nil
@@ -96,34 +96,34 @@ string id
96
96
  @@struct_L = ::ROS::Struct.new("L")
97
97
  @@slot_types = ['Header','actionlib_msgs/GoalStatus[]']
98
98
 
99
- def initialize
100
- # Constructor. Any message fields that are implicitly/explicitly
101
- # set to None will be assigned a default value. The recommend
102
- # use is keyword arguments as this is more robust to future message
103
- # changes. You cannot mix in-order arguments and keyword arguments.
104
- #
105
- # The available fields are:
106
- # header,status_list
107
- #
108
- # @param args: complete set of field values, in .msg order
109
- # @param kwds: use keyword arguments corresponding to message field names
110
- # to set specific fields.
111
- #
112
-
99
+ # Constructor. You can set the default values using keyword operators.
100
+ #
101
+ # @param [Hash] args keyword for initializing values
102
+ # @option args [Header] :header initialize value
103
+ # @option args [actionlib_msgs/GoalStatus[]] :status_list initialize value
104
+ def initialize(args={})
113
105
  # message fields cannot be None, assign default values for those that are
114
- @header = Std_msgs::Header.new
115
- @status_list = []
106
+ if args[:header]
107
+ @header = args[:header]
108
+ else
109
+ @header = Std_msgs::Header.new
110
+ end
111
+ if args[:status_list]
112
+ @status_list = args[:status_list]
113
+ else
114
+ @status_list = []
115
+ end
116
116
  end
117
117
 
118
+ # internal API method
119
+ # @return [String] Message type string.
118
120
  def _get_types
119
- # internal API method
120
- return @slot_types
121
+ @slot_types
121
122
  end
122
123
 
124
+ # serialize message into buffer
125
+ # @param [IO] buff buffer
123
126
  def serialize(buff)
124
- # serialize message into buffer
125
- # @param buff: buffer
126
- # @type buff: StringIO
127
127
  begin
128
128
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
129
129
  _x = @header.frame_id
@@ -132,11 +132,11 @@ string id
132
132
  length = @status_list.length
133
133
  buff.write(@@struct_L.pack(length))
134
134
  for val1 in @status_list
135
- _v21 = val1.goal_id
136
- _v22 = _v21.stamp
137
- _x = _v22
135
+ _v1 = val1.goal_id
136
+ _v2 = _v1.stamp
137
+ _x = _v2
138
138
  buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
139
- _x = _v21.id
139
+ _x = _v1.id
140
140
  length = _x.length
141
141
  buff.write([length, _x].pack("La#{length}"))
142
142
  buff.write(@@struct_C.pack(val1.status))
@@ -150,10 +150,9 @@ string id
150
150
  end
151
151
  end
152
152
 
153
+ # unpack serialized message in str into this message instance
154
+ # @param [String] str: byte array of serialized message
153
155
  def deserialize(str)
154
- # unpack serialized message in str into this message instance
155
- # @param str: byte array of serialized message
156
- # @type str: str
157
156
 
158
157
  begin
159
158
  if @header == nil
@@ -175,9 +174,9 @@ string id
175
174
  @status_list = []
176
175
  length.times do
177
176
  val1 = Actionlib_msgs::GoalStatus.new
178
- _v23 = val1.goal_id
179
- _v24 = _v23.stamp
180
- _x = _v24
177
+ _v3 = val1.goal_id
178
+ _v4 = _v3.stamp
179
+ _x = _v4
181
180
  start = end_point
182
181
  end_point += ROS::Struct::calc_size('L2')
183
182
  (_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
@@ -186,7 +185,7 @@ string id
186
185
  (length,) = @@struct_L.unpack(str[start..(end_point-1)])
187
186
  start = end_point
188
187
  end_point += length
189
- _v23.id = str[start..(end_point-1)]
188
+ _v3.id = str[start..(end_point-1)]
190
189
  start = end_point
191
190
  end_point += ROS::Struct::calc_size('C')
192
191
  (val1.status,) = @@struct_C.unpack(str[start..(end_point-1)])
@@ -153,35 +153,40 @@ float32 std_dev
153
153
  @@struct_L = ::ROS::Struct.new("L")
154
154
  @@slot_types = ['actionlib_tutorials/AveragingActionGoal','actionlib_tutorials/AveragingActionResult','actionlib_tutorials/AveragingActionFeedback']
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
- # action_goal,action_result,action_feedback
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 [actionlib_tutorials/AveragingActionGoal] :action_goal initialize value
160
+ # @option args [actionlib_tutorials/AveragingActionResult] :action_result initialize value
161
+ # @option args [actionlib_tutorials/AveragingActionFeedback] :action_feedback initialize value
162
+ def initialize(args={})
170
163
  # message fields cannot be None, assign default values for those that are
171
- @action_goal = Actionlib_tutorials::AveragingActionGoal.new
172
- @action_result = Actionlib_tutorials::AveragingActionResult.new
173
- @action_feedback = Actionlib_tutorials::AveragingActionFeedback.new
164
+ if args[:action_goal]
165
+ @action_goal = args[:action_goal]
166
+ else
167
+ @action_goal = Actionlib_tutorials::AveragingActionGoal.new
168
+ end
169
+ if args[:action_result]
170
+ @action_result = args[:action_result]
171
+ else
172
+ @action_result = Actionlib_tutorials::AveragingActionResult.new
173
+ end
174
+ if args[:action_feedback]
175
+ @action_feedback = args[:action_feedback]
176
+ else
177
+ @action_feedback = Actionlib_tutorials::AveragingActionFeedback.new
178
+ end
174
179
  end
175
180
 
181
+ # internal API method
182
+ # @return [String] Message type string.
176
183
  def _get_types
177
- # internal API method
178
- return @slot_types
184
+ @slot_types
179
185
  end
180
186
 
187
+ # serialize message into buffer
188
+ # @param [IO] buff buffer
181
189
  def serialize(buff)
182
- # serialize message into buffer
183
- # @param buff: buffer
184
- # @type buff: StringIO
185
190
  begin
186
191
  buff.write(@@struct_L3.pack(@action_goal.header.seq, @action_goal.header.stamp.secs, @action_goal.header.stamp.nsecs))
187
192
  _x = @action_goal.header.frame_id
@@ -222,10 +227,9 @@ float32 std_dev
222
227
  end
223
228
  end
224
229
 
230
+ # unpack serialized message in str into this message instance
231
+ # @param [String] str: byte array of serialized message
225
232
  def deserialize(str)
226
- # unpack serialized message in str into this message instance
227
- # @param str: byte array of serialized message
228
- # @type str: str
229
233
 
230
234
  begin
231
235
  if @action_goal == nil
@@ -109,35 +109,40 @@ float32 std_dev
109
109
  @@struct_L = ::ROS::Struct.new("L")
110
110
  @@slot_types = ['Header','actionlib_msgs/GoalStatus','actionlib_tutorials/AveragingFeedback']
111
111
 
112
- def initialize
113
- # Constructor. Any message fields that are implicitly/explicitly
114
- # set to None will be assigned a default value. The recommend
115
- # use is keyword arguments as this is more robust to future message
116
- # changes. You cannot mix in-order arguments and keyword arguments.
117
- #
118
- # The available fields are:
119
- # header,status,feedback
120
- #
121
- # @param args: complete set of field values, in .msg order
122
- # @param kwds: use keyword arguments corresponding to message field names
123
- # to set specific fields.
124
- #
125
-
112
+ # Constructor. You can set the default values using keyword operators.
113
+ #
114
+ # @param [Hash] args keyword for initializing values
115
+ # @option args [Header] :header initialize value
116
+ # @option args [actionlib_msgs/GoalStatus] :status initialize value
117
+ # @option args [actionlib_tutorials/AveragingFeedback] :feedback initialize value
118
+ def initialize(args={})
126
119
  # message fields cannot be None, assign default values for those that are
127
- @header = Std_msgs::Header.new
128
- @status = Actionlib_msgs::GoalStatus.new
129
- @feedback = Actionlib_tutorials::AveragingFeedback.new
120
+ if args[:header]
121
+ @header = args[:header]
122
+ else
123
+ @header = Std_msgs::Header.new
124
+ end
125
+ if args[:status]
126
+ @status = args[:status]
127
+ else
128
+ @status = Actionlib_msgs::GoalStatus.new
129
+ end
130
+ if args[:feedback]
131
+ @feedback = args[:feedback]
132
+ else
133
+ @feedback = Actionlib_tutorials::AveragingFeedback.new
134
+ end
130
135
  end
131
136
 
137
+ # internal API method
138
+ # @return [String] Message type string.
132
139
  def _get_types
133
- # internal API method
134
- return @slot_types
140
+ @slot_types
135
141
  end
136
142
 
143
+ # serialize message into buffer
144
+ # @param [IO] buff buffer
137
145
  def serialize(buff)
138
- # serialize message into buffer
139
- # @param buff: buffer
140
- # @type buff: StringIO
141
146
  begin
142
147
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
143
148
  _x = @header.frame_id
@@ -158,10 +163,9 @@ float32 std_dev
158
163
  end
159
164
  end
160
165
 
166
+ # unpack serialized message in str into this message instance
167
+ # @param [String] str: byte array of serialized message
161
168
  def deserialize(str)
162
- # unpack serialized message in str into this message instance
163
- # @param str: byte array of serialized message
164
- # @type str: str
165
169
 
166
170
  begin
167
171
  if @header == nil
@@ -76,35 +76,40 @@ int32 samples
76
76
  @@struct_L = ::ROS::Struct.new("L")
77
77
  @@slot_types = ['Header','actionlib_msgs/GoalID','actionlib_tutorials/AveragingGoal']
78
78
 
79
- def initialize
80
- # Constructor. Any message fields that are implicitly/explicitly
81
- # set to None will be assigned a default value. The recommend
82
- # use is keyword arguments as this is more robust to future message
83
- # changes. You cannot mix in-order arguments and keyword arguments.
84
- #
85
- # The available fields are:
86
- # header,goal_id,goal
87
- #
88
- # @param args: complete set of field values, in .msg order
89
- # @param kwds: use keyword arguments corresponding to message field names
90
- # to set specific fields.
91
- #
92
-
79
+ # Constructor. You can set the default values using keyword operators.
80
+ #
81
+ # @param [Hash] args keyword for initializing values
82
+ # @option args [Header] :header initialize value
83
+ # @option args [actionlib_msgs/GoalID] :goal_id initialize value
84
+ # @option args [actionlib_tutorials/AveragingGoal] :goal initialize value
85
+ def initialize(args={})
93
86
  # message fields cannot be None, assign default values for those that are
94
- @header = Std_msgs::Header.new
95
- @goal_id = Actionlib_msgs::GoalID.new
96
- @goal = Actionlib_tutorials::AveragingGoal.new
87
+ if args[:header]
88
+ @header = args[:header]
89
+ else
90
+ @header = Std_msgs::Header.new
91
+ end
92
+ if args[:goal_id]
93
+ @goal_id = args[:goal_id]
94
+ else
95
+ @goal_id = Actionlib_msgs::GoalID.new
96
+ end
97
+ if args[:goal]
98
+ @goal = args[:goal]
99
+ else
100
+ @goal = Actionlib_tutorials::AveragingGoal.new
101
+ end
97
102
  end
98
103
 
104
+ # internal API method
105
+ # @return [String] Message type string.
99
106
  def _get_types
100
- # internal API method
101
- return @slot_types
107
+ @slot_types
102
108
  end
103
109
 
110
+ # serialize message into buffer
111
+ # @param [IO] buff buffer
104
112
  def serialize(buff)
105
- # serialize message into buffer
106
- # @param buff: buffer
107
- # @type buff: StringIO
108
113
  begin
109
114
  buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
110
115
  _x = @header.frame_id
@@ -121,10 +126,9 @@ int32 samples
121
126
  end
122
127
  end
123
128
 
129
+ # unpack serialized message in str into this message instance
130
+ # @param [String] str: byte array of serialized message
124
131
  def deserialize(str)
125
- # unpack serialized message in str into this message instance
126
- # @param str: byte array of serialized message
127
- # @type str: str
128
132
 
129
133
  begin
130
134
  if @header == nil