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,322 @@
1
+ # autogenerated by genmsg_ruby from AveragingAction.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "ros/time"
5
+ require "actionlib_tutorials/AveragingActionResult"
6
+ require "actionlib_tutorials/AveragingFeedback"
7
+ require "std_msgs/Header"
8
+ require "actionlib_msgs/GoalID"
9
+ require "actionlib_tutorials/AveragingActionGoal"
10
+ require "actionlib_tutorials/AveragingActionFeedback"
11
+ require "actionlib_msgs/GoalStatus"
12
+ require "actionlib_tutorials/AveragingResult"
13
+ require "actionlib_tutorials/AveragingGoal"
14
+
15
+ module Actionlib_tutorials
16
+
17
+ class AveragingAction <::ROS::Message
18
+ def self.md5sum
19
+ "628678f2b4fa6a5951746a4a2d39e716"
20
+ end
21
+
22
+ def self.type
23
+ "actionlib_tutorials/AveragingAction"
24
+ end
25
+
26
+ def has_header?
27
+ false
28
+ end
29
+
30
+ def message_definition
31
+ "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
32
+
33
+ AveragingActionGoal action_goal
34
+ AveragingActionResult action_result
35
+ AveragingActionFeedback action_feedback
36
+
37
+ ================================================================================
38
+ MSG: actionlib_tutorials/AveragingActionGoal
39
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
40
+
41
+ Header header
42
+ actionlib_msgs/GoalID goal_id
43
+ AveragingGoal goal
44
+
45
+ ================================================================================
46
+ MSG: std_msgs/Header
47
+ # Standard metadata for higher-level stamped data types.
48
+ # This is generally used to communicate timestamped data
49
+ # in a particular coordinate frame.
50
+ #
51
+ # sequence ID: consecutively increasing ID
52
+ uint32 seq
53
+ #Two-integer timestamp that is expressed as:
54
+ # * stamp.secs: seconds (stamp_secs) since epoch
55
+ # * stamp.nsecs: nanoseconds since stamp_secs
56
+ # time-handling sugar is provided by the client library
57
+ time stamp
58
+ #Frame this data is associated with
59
+ # 0: no frame
60
+ # 1: global frame
61
+ string frame_id
62
+
63
+ ================================================================================
64
+ MSG: actionlib_msgs/GoalID
65
+ # The stamp should store the time at which this goal was requested.
66
+ # It is used by an action server when it tries to preempt all
67
+ # goals that were requested before a certain time
68
+ time stamp
69
+
70
+ # The id provides a way to associate feedback and
71
+ # result message with specific goal requests. The id
72
+ # specified must be unique.
73
+ string id
74
+
75
+
76
+ ================================================================================
77
+ MSG: actionlib_tutorials/AveragingGoal
78
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
79
+ #goal definition
80
+ int32 samples
81
+
82
+ ================================================================================
83
+ MSG: actionlib_tutorials/AveragingActionResult
84
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
85
+
86
+ Header header
87
+ actionlib_msgs/GoalStatus status
88
+ AveragingResult result
89
+
90
+ ================================================================================
91
+ MSG: actionlib_msgs/GoalStatus
92
+ GoalID goal_id
93
+ uint8 status
94
+ uint8 PENDING = 0 # The goal has yet to be processed by the action server
95
+ uint8 ACTIVE = 1 # The goal is currently being processed by the action server
96
+ uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
97
+ # and has since completed its execution (Terminal State)
98
+ uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
99
+ uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
100
+ # to some failure (Terminal State)
101
+ uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
102
+ # because the goal was unattainable or invalid (Terminal State)
103
+ uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
104
+ # and has not yet completed execution
105
+ uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
106
+ # but the action server has not yet confirmed that the goal is canceled
107
+ uint8 RECALLED = 8 # The goal received a cancel request before it started executing
108
+ # and was successfully cancelled (Terminal State)
109
+ uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
110
+ # sent over the wire by an action server
111
+
112
+ #Allow for the user to associate a string with GoalStatus for debugging
113
+ string text
114
+
115
+
116
+ ================================================================================
117
+ MSG: actionlib_tutorials/AveragingResult
118
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
119
+ #result definition
120
+ float32 mean
121
+ float32 std_dev
122
+
123
+ ================================================================================
124
+ MSG: actionlib_tutorials/AveragingActionFeedback
125
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
126
+
127
+ Header header
128
+ actionlib_msgs/GoalStatus status
129
+ AveragingFeedback feedback
130
+
131
+ ================================================================================
132
+ MSG: actionlib_tutorials/AveragingFeedback
133
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
134
+ #feedback
135
+ int32 sample
136
+ float32 data
137
+ float32 mean
138
+ float32 std_dev
139
+
140
+
141
+
142
+ "
143
+ end
144
+ attr_accessor :action_goal, :action_result, :action_feedback
145
+
146
+ @@struct_C = ::ROS::Struct.new("C")
147
+ @@struct_f2L3 = ::ROS::Struct.new("f2L3")
148
+ @@struct_lL3 = ::ROS::Struct.new("lL3")
149
+ @@struct_lf3 = ::ROS::Struct.new("lf3")
150
+ @@struct_L3 = ::ROS::Struct.new("L3")
151
+ @@struct_L2 = ::ROS::Struct.new("L2")
152
+
153
+ @@struct_L = ::ROS::Struct.new("L")
154
+ @@slot_types = ['actionlib_tutorials/AveragingActionGoal','actionlib_tutorials/AveragingActionResult','actionlib_tutorials/AveragingActionFeedback']
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
+
170
+ # 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
174
+ end
175
+
176
+ def _get_types
177
+ # internal API method
178
+ return @slot_types
179
+ end
180
+
181
+ def serialize(buff)
182
+ # serialize message into buffer
183
+ # @param buff: buffer
184
+ # @type buff: StringIO
185
+ begin
186
+ buff.write(@@struct_L3.pack(@action_goal.header.seq, @action_goal.header.stamp.secs, @action_goal.header.stamp.nsecs))
187
+ _x = @action_goal.header.frame_id
188
+ length = _x.length
189
+ buff.write([length, _x].pack("La#{length}"))
190
+ buff.write(@@struct_L2.pack(@action_goal.goal_id.stamp.secs, @action_goal.goal_id.stamp.nsecs))
191
+ _x = @action_goal.goal_id.id
192
+ length = _x.length
193
+ buff.write([length, _x].pack("La#{length}"))
194
+ buff.write(@@struct_lL3.pack(@action_goal.goal.samples, @action_result.header.seq, @action_result.header.stamp.secs, @action_result.header.stamp.nsecs))
195
+ _x = @action_result.header.frame_id
196
+ length = _x.length
197
+ buff.write([length, _x].pack("La#{length}"))
198
+ buff.write(@@struct_L2.pack(@action_result.status.goal_id.stamp.secs, @action_result.status.goal_id.stamp.nsecs))
199
+ _x = @action_result.status.goal_id.id
200
+ length = _x.length
201
+ buff.write([length, _x].pack("La#{length}"))
202
+ buff.write(@@struct_C.pack(@action_result.status.status))
203
+ _x = @action_result.status.text
204
+ length = _x.length
205
+ buff.write([length, _x].pack("La#{length}"))
206
+ buff.write(@@struct_f2L3.pack(@action_result.result.mean, @action_result.result.std_dev, @action_feedback.header.seq, @action_feedback.header.stamp.secs, @action_feedback.header.stamp.nsecs))
207
+ _x = @action_feedback.header.frame_id
208
+ length = _x.length
209
+ buff.write([length, _x].pack("La#{length}"))
210
+ buff.write(@@struct_L2.pack(@action_feedback.status.goal_id.stamp.secs, @action_feedback.status.goal_id.stamp.nsecs))
211
+ _x = @action_feedback.status.goal_id.id
212
+ length = _x.length
213
+ buff.write([length, _x].pack("La#{length}"))
214
+ buff.write(@@struct_C.pack(@action_feedback.status.status))
215
+ _x = @action_feedback.status.text
216
+ length = _x.length
217
+ buff.write([length, _x].pack("La#{length}"))
218
+ buff.write(@@struct_lf3.pack(@action_feedback.feedback.sample, @action_feedback.feedback.data, @action_feedback.feedback.mean, @action_feedback.feedback.std_dev))
219
+ rescue => exception
220
+ raise "some erro in serialize: #{exception}"
221
+
222
+ end
223
+ end
224
+
225
+ 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
+
230
+ begin
231
+ if @action_goal == nil
232
+ @action_goal = Actionlib_tutorials::AveragingActionGoal.new
233
+ end
234
+ if @action_result == nil
235
+ @action_result = Actionlib_tutorials::AveragingActionResult.new
236
+ end
237
+ if @action_feedback == nil
238
+ @action_feedback = Actionlib_tutorials::AveragingActionFeedback.new
239
+ end
240
+ end_point = 0
241
+ start = end_point
242
+ end_point += ROS::Struct::calc_size('L3')
243
+ (@action_goal.header.seq, @action_goal.header.stamp.secs, @action_goal.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
244
+ start = end_point
245
+ end_point += 4
246
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
247
+ start = end_point
248
+ end_point += length
249
+ @action_goal.header.frame_id = str[start..(end_point-1)]
250
+ start = end_point
251
+ end_point += ROS::Struct::calc_size('L2')
252
+ (@action_goal.goal_id.stamp.secs, @action_goal.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
253
+ start = end_point
254
+ end_point += 4
255
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
256
+ start = end_point
257
+ end_point += length
258
+ @action_goal.goal_id.id = str[start..(end_point-1)]
259
+ start = end_point
260
+ end_point += ROS::Struct::calc_size('lL3')
261
+ (@action_goal.goal.samples, @action_result.header.seq, @action_result.header.stamp.secs, @action_result.header.stamp.nsecs,) = @@struct_lL3.unpack(str[start..(end_point-1)])
262
+ start = end_point
263
+ end_point += 4
264
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
265
+ start = end_point
266
+ end_point += length
267
+ @action_result.header.frame_id = str[start..(end_point-1)]
268
+ start = end_point
269
+ end_point += ROS::Struct::calc_size('L2')
270
+ (@action_result.status.goal_id.stamp.secs, @action_result.status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
271
+ start = end_point
272
+ end_point += 4
273
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
274
+ start = end_point
275
+ end_point += length
276
+ @action_result.status.goal_id.id = str[start..(end_point-1)]
277
+ start = end_point
278
+ end_point += ROS::Struct::calc_size('C')
279
+ (@action_result.status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
280
+ start = end_point
281
+ end_point += 4
282
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
283
+ start = end_point
284
+ end_point += length
285
+ @action_result.status.text = str[start..(end_point-1)]
286
+ start = end_point
287
+ end_point += ROS::Struct::calc_size('f2L3')
288
+ (@action_result.result.mean, @action_result.result.std_dev, @action_feedback.header.seq, @action_feedback.header.stamp.secs, @action_feedback.header.stamp.nsecs,) = @@struct_f2L3.unpack(str[start..(end_point-1)])
289
+ start = end_point
290
+ end_point += 4
291
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
292
+ start = end_point
293
+ end_point += length
294
+ @action_feedback.header.frame_id = str[start..(end_point-1)]
295
+ start = end_point
296
+ end_point += ROS::Struct::calc_size('L2')
297
+ (@action_feedback.status.goal_id.stamp.secs, @action_feedback.status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
298
+ start = end_point
299
+ end_point += 4
300
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
301
+ start = end_point
302
+ end_point += length
303
+ @action_feedback.status.goal_id.id = str[start..(end_point-1)]
304
+ start = end_point
305
+ end_point += ROS::Struct::calc_size('C')
306
+ (@action_feedback.status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
307
+ start = end_point
308
+ end_point += 4
309
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
310
+ start = end_point
311
+ end_point += length
312
+ @action_feedback.status.text = str[start..(end_point-1)]
313
+ start = end_point
314
+ end_point += ROS::Struct::calc_size('lf3')
315
+ (@action_feedback.feedback.sample, @action_feedback.feedback.data, @action_feedback.feedback.mean, @action_feedback.feedback.std_dev,) = @@struct_lf3.unpack(str[start..(end_point-1)])
316
+ return self
317
+ rescue => exception
318
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
319
+ end
320
+ end
321
+ end # end of class
322
+ end # end of module
@@ -0,0 +1,213 @@
1
+ # autogenerated by genmsg_ruby from AveragingActionFeedback.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "std_msgs/Header"
5
+ require "actionlib_msgs/GoalID"
6
+ require "actionlib_msgs/GoalStatus"
7
+ require "actionlib_tutorials/AveragingFeedback"
8
+ require "ros/time"
9
+
10
+ module Actionlib_tutorials
11
+
12
+ class AveragingActionFeedback <::ROS::Message
13
+ def self.md5sum
14
+ "78a4a09241b1791069223ae7ebd5b16b"
15
+ end
16
+
17
+ def self.type
18
+ "actionlib_tutorials/AveragingActionFeedback"
19
+ end
20
+
21
+ def has_header?
22
+ true
23
+ end
24
+
25
+ def message_definition
26
+ "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
27
+
28
+ Header header
29
+ actionlib_msgs/GoalStatus status
30
+ AveragingFeedback feedback
31
+
32
+ ================================================================================
33
+ MSG: std_msgs/Header
34
+ # Standard metadata for higher-level stamped data types.
35
+ # This is generally used to communicate timestamped data
36
+ # in a particular coordinate frame.
37
+ #
38
+ # sequence ID: consecutively increasing ID
39
+ uint32 seq
40
+ #Two-integer timestamp that is expressed as:
41
+ # * stamp.secs: seconds (stamp_secs) since epoch
42
+ # * stamp.nsecs: nanoseconds since stamp_secs
43
+ # time-handling sugar is provided by the client library
44
+ time stamp
45
+ #Frame this data is associated with
46
+ # 0: no frame
47
+ # 1: global frame
48
+ string frame_id
49
+
50
+ ================================================================================
51
+ MSG: actionlib_msgs/GoalStatus
52
+ GoalID goal_id
53
+ uint8 status
54
+ uint8 PENDING = 0 # The goal has yet to be processed by the action server
55
+ uint8 ACTIVE = 1 # The goal is currently being processed by the action server
56
+ uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
57
+ # and has since completed its execution (Terminal State)
58
+ uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
59
+ uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
60
+ # to some failure (Terminal State)
61
+ uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
62
+ # because the goal was unattainable or invalid (Terminal State)
63
+ uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
64
+ # and has not yet completed execution
65
+ uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
66
+ # but the action server has not yet confirmed that the goal is canceled
67
+ uint8 RECALLED = 8 # The goal received a cancel request before it started executing
68
+ # and was successfully cancelled (Terminal State)
69
+ uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
70
+ # sent over the wire by an action server
71
+
72
+ #Allow for the user to associate a string with GoalStatus for debugging
73
+ string text
74
+
75
+
76
+ ================================================================================
77
+ MSG: actionlib_msgs/GoalID
78
+ # The stamp should store the time at which this goal was requested.
79
+ # It is used by an action server when it tries to preempt all
80
+ # goals that were requested before a certain time
81
+ time stamp
82
+
83
+ # The id provides a way to associate feedback and
84
+ # result message with specific goal requests. The id
85
+ # specified must be unique.
86
+ string id
87
+
88
+
89
+ ================================================================================
90
+ MSG: actionlib_tutorials/AveragingFeedback
91
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
92
+ #feedback
93
+ int32 sample
94
+ float32 data
95
+ float32 mean
96
+ float32 std_dev
97
+
98
+
99
+
100
+ "
101
+ end
102
+ attr_accessor :header, :status, :feedback
103
+
104
+ @@struct_L3 = ::ROS::Struct.new("L3")
105
+ @@struct_C = ::ROS::Struct.new("C")
106
+ @@struct_L2 = ::ROS::Struct.new("L2")
107
+ @@struct_lf3 = ::ROS::Struct.new("lf3")
108
+
109
+ @@struct_L = ::ROS::Struct.new("L")
110
+ @@slot_types = ['Header','actionlib_msgs/GoalStatus','actionlib_tutorials/AveragingFeedback']
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
+
126
+ # 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
130
+ end
131
+
132
+ def _get_types
133
+ # internal API method
134
+ return @slot_types
135
+ end
136
+
137
+ def serialize(buff)
138
+ # serialize message into buffer
139
+ # @param buff: buffer
140
+ # @type buff: StringIO
141
+ begin
142
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
143
+ _x = @header.frame_id
144
+ length = _x.length
145
+ buff.write([length, _x].pack("La#{length}"))
146
+ buff.write(@@struct_L2.pack(@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs))
147
+ _x = @status.goal_id.id
148
+ length = _x.length
149
+ buff.write([length, _x].pack("La#{length}"))
150
+ buff.write(@@struct_C.pack(@status.status))
151
+ _x = @status.text
152
+ length = _x.length
153
+ buff.write([length, _x].pack("La#{length}"))
154
+ buff.write(@@struct_lf3.pack(@feedback.sample, @feedback.data, @feedback.mean, @feedback.std_dev))
155
+ rescue => exception
156
+ raise "some erro in serialize: #{exception}"
157
+
158
+ end
159
+ end
160
+
161
+ 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
+
166
+ begin
167
+ if @header == nil
168
+ @header = Std_msgs::Header.new
169
+ end
170
+ if @status == nil
171
+ @status = Actionlib_msgs::GoalStatus.new
172
+ end
173
+ if @feedback == nil
174
+ @feedback = Actionlib_tutorials::AveragingFeedback.new
175
+ end
176
+ end_point = 0
177
+ start = end_point
178
+ end_point += ROS::Struct::calc_size('L3')
179
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
180
+ start = end_point
181
+ end_point += 4
182
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
183
+ start = end_point
184
+ end_point += length
185
+ @header.frame_id = str[start..(end_point-1)]
186
+ start = end_point
187
+ end_point += ROS::Struct::calc_size('L2')
188
+ (@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
189
+ start = end_point
190
+ end_point += 4
191
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
192
+ start = end_point
193
+ end_point += length
194
+ @status.goal_id.id = str[start..(end_point-1)]
195
+ start = end_point
196
+ end_point += ROS::Struct::calc_size('C')
197
+ (@status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
198
+ start = end_point
199
+ end_point += 4
200
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
201
+ start = end_point
202
+ end_point += length
203
+ @status.text = str[start..(end_point-1)]
204
+ start = end_point
205
+ end_point += ROS::Struct::calc_size('lf3')
206
+ (@feedback.sample, @feedback.data, @feedback.mean, @feedback.std_dev,) = @@struct_lf3.unpack(str[start..(end_point-1)])
207
+ return self
208
+ rescue => exception
209
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
210
+ end
211
+ end
212
+ end # end of class
213
+ end # end of module
@@ -0,0 +1,167 @@
1
+ # autogenerated by genmsg_ruby from AveragingActionGoal.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "std_msgs/Header"
5
+ require "actionlib_msgs/GoalID"
6
+ require "actionlib_tutorials/AveragingGoal"
7
+ require "ros/time"
8
+
9
+ module Actionlib_tutorials
10
+
11
+ class AveragingActionGoal <::ROS::Message
12
+ def self.md5sum
13
+ "1561825b734ebd6039851c501e3fb570"
14
+ end
15
+
16
+ def self.type
17
+ "actionlib_tutorials/AveragingActionGoal"
18
+ end
19
+
20
+ def has_header?
21
+ true
22
+ end
23
+
24
+ def message_definition
25
+ "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
26
+
27
+ Header header
28
+ actionlib_msgs/GoalID goal_id
29
+ AveragingGoal goal
30
+
31
+ ================================================================================
32
+ MSG: std_msgs/Header
33
+ # Standard metadata for higher-level stamped data types.
34
+ # This is generally used to communicate timestamped data
35
+ # in a particular coordinate frame.
36
+ #
37
+ # sequence ID: consecutively increasing ID
38
+ uint32 seq
39
+ #Two-integer timestamp that is expressed as:
40
+ # * stamp.secs: seconds (stamp_secs) since epoch
41
+ # * stamp.nsecs: nanoseconds since stamp_secs
42
+ # time-handling sugar is provided by the client library
43
+ time stamp
44
+ #Frame this data is associated with
45
+ # 0: no frame
46
+ # 1: global frame
47
+ string frame_id
48
+
49
+ ================================================================================
50
+ MSG: actionlib_msgs/GoalID
51
+ # The stamp should store the time at which this goal was requested.
52
+ # It is used by an action server when it tries to preempt all
53
+ # goals that were requested before a certain time
54
+ time stamp
55
+
56
+ # The id provides a way to associate feedback and
57
+ # result message with specific goal requests. The id
58
+ # specified must be unique.
59
+ string id
60
+
61
+
62
+ ================================================================================
63
+ MSG: actionlib_tutorials/AveragingGoal
64
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
65
+ #goal definition
66
+ int32 samples
67
+
68
+ "
69
+ end
70
+ attr_accessor :header, :goal_id, :goal
71
+
72
+ @@struct_l = ::ROS::Struct.new("l")
73
+ @@struct_L3 = ::ROS::Struct.new("L3")
74
+ @@struct_L2 = ::ROS::Struct.new("L2")
75
+
76
+ @@struct_L = ::ROS::Struct.new("L")
77
+ @@slot_types = ['Header','actionlib_msgs/GoalID','actionlib_tutorials/AveragingGoal']
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
+
93
+ # 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
97
+ end
98
+
99
+ def _get_types
100
+ # internal API method
101
+ return @slot_types
102
+ end
103
+
104
+ def serialize(buff)
105
+ # serialize message into buffer
106
+ # @param buff: buffer
107
+ # @type buff: StringIO
108
+ begin
109
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
110
+ _x = @header.frame_id
111
+ length = _x.length
112
+ buff.write([length, _x].pack("La#{length}"))
113
+ buff.write(@@struct_L2.pack(@goal_id.stamp.secs, @goal_id.stamp.nsecs))
114
+ _x = @goal_id.id
115
+ length = _x.length
116
+ buff.write([length, _x].pack("La#{length}"))
117
+ buff.write(@@struct_l.pack(@goal.samples))
118
+ rescue => exception
119
+ raise "some erro in serialize: #{exception}"
120
+
121
+ end
122
+ end
123
+
124
+ 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
+
129
+ begin
130
+ if @header == nil
131
+ @header = Std_msgs::Header.new
132
+ end
133
+ if @goal_id == nil
134
+ @goal_id = Actionlib_msgs::GoalID.new
135
+ end
136
+ if @goal == nil
137
+ @goal = Actionlib_tutorials::AveragingGoal.new
138
+ end
139
+ end_point = 0
140
+ start = end_point
141
+ end_point += ROS::Struct::calc_size('L3')
142
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
143
+ start = end_point
144
+ end_point += 4
145
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
146
+ start = end_point
147
+ end_point += length
148
+ @header.frame_id = str[start..(end_point-1)]
149
+ start = end_point
150
+ end_point += ROS::Struct::calc_size('L2')
151
+ (@goal_id.stamp.secs, @goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
152
+ start = end_point
153
+ end_point += 4
154
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
155
+ start = end_point
156
+ end_point += length
157
+ @goal_id.id = str[start..(end_point-1)]
158
+ start = end_point
159
+ end_point += ROS::Struct::calc_size('l')
160
+ (@goal.samples,) = @@struct_l.unpack(str[start..(end_point-1)])
161
+ return self
162
+ rescue => exception
163
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
164
+ end
165
+ end
166
+ end # end of class
167
+ end # end of module