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.
- data/lib/actionlib_msgs/GoalID.rb +106 -0
- data/lib/actionlib_msgs/GoalStatus.rb +160 -0
- data/lib/actionlib_msgs/GoalStatusArray.rb +207 -0
- data/lib/actionlib_tutorials/AveragingAction.rb +322 -0
- data/lib/actionlib_tutorials/AveragingActionFeedback.rb +213 -0
- data/lib/actionlib_tutorials/AveragingActionGoal.rb +167 -0
- data/lib/actionlib_tutorials/AveragingActionResult.rb +209 -0
- data/lib/actionlib_tutorials/AveragingFeedback.rb +93 -0
- data/lib/actionlib_tutorials/AveragingGoal.rb +85 -0
- data/lib/actionlib_tutorials/AveragingResult.rb +87 -0
- data/lib/actionlib_tutorials/FibonacciAction.rb +334 -0
- data/lib/actionlib_tutorials/FibonacciActionFeedback.rb +216 -0
- data/lib/actionlib_tutorials/FibonacciActionGoal.rb +167 -0
- data/lib/actionlib_tutorials/FibonacciActionResult.rb +214 -0
- data/lib/actionlib_tutorials/FibonacciFeedback.rb +93 -0
- data/lib/actionlib_tutorials/FibonacciGoal.rb +85 -0
- data/lib/actionlib_tutorials/FibonacciResult.rb +91 -0
- data/lib/geometry_msgs/Point.rb +88 -0
- data/lib/geometry_msgs/Point32.rb +94 -0
- data/lib/geometry_msgs/PointStamped.rb +133 -0
- data/lib/geometry_msgs/Polygon.rb +112 -0
- data/lib/geometry_msgs/PolygonStamped.rb +159 -0
- data/lib/geometry_msgs/Pose.rb +110 -0
- data/lib/geometry_msgs/Pose2D.rb +88 -0
- data/lib/geometry_msgs/PoseArray.rb +174 -0
- data/lib/geometry_msgs/PoseStamped.rb +150 -0
- data/lib/geometry_msgs/PoseWithCovariance.rb +125 -0
- data/lib/geometry_msgs/PoseWithCovarianceStamped.rb +169 -0
- data/lib/geometry_msgs/Quaternion.rb +91 -0
- data/lib/geometry_msgs/QuaternionStamped.rb +136 -0
- data/lib/geometry_msgs/Transform.rb +111 -0
- data/lib/geometry_msgs/TransformStamped.rb +168 -0
- data/lib/geometry_msgs/Twist.rb +100 -0
- data/lib/geometry_msgs/TwistStamped.rb +140 -0
- data/lib/geometry_msgs/TwistWithCovariance.rb +115 -0
- data/lib/geometry_msgs/TwistWithCovarianceStamped.rb +158 -0
- data/lib/geometry_msgs/Vector3.rb +88 -0
- data/lib/geometry_msgs/Vector3Stamped.rb +133 -0
- data/lib/geometry_msgs/Wrench.rb +101 -0
- data/lib/geometry_msgs/WrenchStamped.rb +141 -0
- data/lib/nav_msgs/GetMap.rb +280 -0
- data/lib/nav_msgs/GetPlan.rb +406 -0
- data/lib/nav_msgs/GridCells.rb +153 -0
- data/lib/nav_msgs/MapMetaData.rb +130 -0
- data/lib/nav_msgs/OccupancyGrid.rb +187 -0
- data/lib/nav_msgs/Odometry.rb +223 -0
- data/lib/nav_msgs/Path.rb +205 -0
- data/lib/roscpp/Empty.rb +166 -0
- data/lib/roscpp/GetLoggers.rb +205 -0
- data/lib/roscpp/Logger.rb +98 -0
- data/lib/roscpp/SetLoggerLevel.rb +189 -0
- data/lib/roscpp_tutorials/TwoInts.rb +185 -0
- data/lib/rosgraph_msgs/Clock.rb +90 -0
- data/lib/rosgraph_msgs/Log.rb +210 -0
- data/lib/sensor_msgs/CameraInfo.rb +325 -0
- data/lib/sensor_msgs/ChannelFloat32.rb +122 -0
- data/lib/sensor_msgs/CompressedImage.rb +151 -0
- data/lib/sensor_msgs/Image.rb +179 -0
- data/lib/sensor_msgs/Imu.rb +193 -0
- data/lib/sensor_msgs/JointState.rb +195 -0
- data/lib/sensor_msgs/Joy.rb +141 -0
- data/lib/sensor_msgs/JoyFeedback.rb +104 -0
- data/lib/sensor_msgs/JoyFeedbackArray.rb +116 -0
- data/lib/sensor_msgs/LaserScan.rb +178 -0
- data/lib/sensor_msgs/NavSatFix.rb +215 -0
- data/lib/sensor_msgs/NavSatStatus.rb +115 -0
- data/lib/sensor_msgs/PointCloud.rb +222 -0
- data/lib/sensor_msgs/PointCloud2.rb +226 -0
- data/lib/sensor_msgs/PointField.rb +119 -0
- data/lib/sensor_msgs/Range.rb +157 -0
- data/lib/sensor_msgs/RegionOfInterest.rb +106 -0
- data/lib/sensor_msgs/SetCameraInfo.rb +437 -0
- data/lib/sensor_msgs/TimeReference.rb +140 -0
- data/lib/std_msgs/Bool.rb +83 -0
- data/lib/std_msgs/Byte.rb +83 -0
- data/lib/std_msgs/ByteMultiArray.rb +165 -0
- data/lib/std_msgs/Char.rb +82 -0
- data/lib/std_msgs/ColorRGBA.rb +89 -0
- data/lib/std_msgs/Duration.rb +87 -0
- data/lib/std_msgs/Empty.rb +75 -0
- data/lib/std_msgs/Float32.rb +82 -0
- data/lib/std_msgs/Float32MultiArray.rb +165 -0
- data/lib/std_msgs/Float64.rb +82 -0
- data/lib/std_msgs/Float64MultiArray.rb +165 -0
- data/lib/std_msgs/Header.rb +112 -0
- data/lib/std_msgs/Int16.rb +83 -0
- data/lib/std_msgs/Int16MultiArray.rb +165 -0
- data/lib/std_msgs/Int32.rb +82 -0
- data/lib/std_msgs/Int32MultiArray.rb +165 -0
- data/lib/std_msgs/Int64.rb +82 -0
- data/lib/std_msgs/Int64MultiArray.rb +165 -0
- data/lib/std_msgs/Int8.rb +83 -0
- data/lib/std_msgs/Int8MultiArray.rb +165 -0
- data/lib/std_msgs/MultiArrayDimension.rb +95 -0
- data/lib/std_msgs/MultiArrayLayout.rb +141 -0
- data/lib/std_msgs/String.rb +87 -0
- data/lib/std_msgs/Time.rb +87 -0
- data/lib/std_msgs/UInt16.rb +83 -0
- data/lib/std_msgs/UInt16MultiArray.rb +165 -0
- data/lib/std_msgs/UInt32.rb +81 -0
- data/lib/std_msgs/UInt32MultiArray.rb +165 -0
- data/lib/std_msgs/UInt64.rb +82 -0
- data/lib/std_msgs/UInt64MultiArray.rb +165 -0
- data/lib/std_msgs/UInt8.rb +83 -0
- data/lib/std_msgs/UInt8MultiArray.rb +168 -0
- data/lib/std_srvs/Empty.rb +166 -0
- data/lib/stereo_msgs/DisparityImage.rb +261 -0
- data/lib/tf/FrameGraph.rb +179 -0
- data/lib/tf/tfMessage.rb +202 -0
- data/lib/trajectory_msgs/JointTrajectory.rb +198 -0
- data/lib/trajectory_msgs/JointTrajectoryPoint.rb +125 -0
- data/lib/visualization_msgs/ImageMarker.rb +238 -0
- data/lib/visualization_msgs/InteractiveMarker.rb +651 -0
- data/lib/visualization_msgs/InteractiveMarkerControl.rb +469 -0
- data/lib/visualization_msgs/InteractiveMarkerFeedback.rb +235 -0
- data/lib/visualization_msgs/InteractiveMarkerInit.rb +707 -0
- data/lib/visualization_msgs/InteractiveMarkerPose.rb +166 -0
- data/lib/visualization_msgs/InteractiveMarkerUpdate.rb +825 -0
- data/lib/visualization_msgs/Marker.rb +318 -0
- data/lib/visualization_msgs/MarkerArray.rb +349 -0
- data/lib/visualization_msgs/MenuEntry.rb +168 -0
- metadata +123 -2
@@ -0,0 +1,334 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from FibonacciAction.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
require "ros/time"
|
5
|
+
require "actionlib_tutorials/FibonacciActionResult"
|
6
|
+
require "actionlib_tutorials/FibonacciActionGoal"
|
7
|
+
require "actionlib_tutorials/FibonacciGoal"
|
8
|
+
require "actionlib_tutorials/FibonacciFeedback"
|
9
|
+
require "std_msgs/Header"
|
10
|
+
require "actionlib_msgs/GoalID"
|
11
|
+
require "actionlib_tutorials/FibonacciResult"
|
12
|
+
require "actionlib_msgs/GoalStatus"
|
13
|
+
require "actionlib_tutorials/FibonacciActionFeedback"
|
14
|
+
|
15
|
+
module Actionlib_tutorials
|
16
|
+
|
17
|
+
class FibonacciAction <::ROS::Message
|
18
|
+
def self.md5sum
|
19
|
+
"f59df5767bf7634684781c92598b2406"
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.type
|
23
|
+
"actionlib_tutorials/FibonacciAction"
|
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
|
+
FibonacciActionGoal action_goal
|
34
|
+
FibonacciActionResult action_result
|
35
|
+
FibonacciActionFeedback action_feedback
|
36
|
+
|
37
|
+
================================================================================
|
38
|
+
MSG: actionlib_tutorials/FibonacciActionGoal
|
39
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
40
|
+
|
41
|
+
Header header
|
42
|
+
actionlib_msgs/GoalID goal_id
|
43
|
+
FibonacciGoal 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/FibonacciGoal
|
78
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
79
|
+
#goal definition
|
80
|
+
int32 order
|
81
|
+
|
82
|
+
================================================================================
|
83
|
+
MSG: actionlib_tutorials/FibonacciActionResult
|
84
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
85
|
+
|
86
|
+
Header header
|
87
|
+
actionlib_msgs/GoalStatus status
|
88
|
+
FibonacciResult 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/FibonacciResult
|
118
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
119
|
+
#result definition
|
120
|
+
int32[] sequence
|
121
|
+
|
122
|
+
================================================================================
|
123
|
+
MSG: actionlib_tutorials/FibonacciActionFeedback
|
124
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
125
|
+
|
126
|
+
Header header
|
127
|
+
actionlib_msgs/GoalStatus status
|
128
|
+
FibonacciFeedback feedback
|
129
|
+
|
130
|
+
================================================================================
|
131
|
+
MSG: actionlib_tutorials/FibonacciFeedback
|
132
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
133
|
+
#feedback
|
134
|
+
int32[] sequence
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
"
|
139
|
+
end
|
140
|
+
attr_accessor :action_goal, :action_result, :action_feedback
|
141
|
+
|
142
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
143
|
+
@@struct_C = ::ROS::Struct.new("C")
|
144
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
145
|
+
@@struct_lL3 = ::ROS::Struct.new("lL3")
|
146
|
+
|
147
|
+
@@struct_L = ::ROS::Struct.new("L")
|
148
|
+
@@slot_types = ['actionlib_tutorials/FibonacciActionGoal','actionlib_tutorials/FibonacciActionResult','actionlib_tutorials/FibonacciActionFeedback']
|
149
|
+
|
150
|
+
def initialize
|
151
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
152
|
+
# set to None will be assigned a default value. The recommend
|
153
|
+
# use is keyword arguments as this is more robust to future message
|
154
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
155
|
+
#
|
156
|
+
# The available fields are:
|
157
|
+
# action_goal,action_result,action_feedback
|
158
|
+
#
|
159
|
+
# @param args: complete set of field values, in .msg order
|
160
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
161
|
+
# to set specific fields.
|
162
|
+
#
|
163
|
+
|
164
|
+
# message fields cannot be None, assign default values for those that are
|
165
|
+
@action_goal = Actionlib_tutorials::FibonacciActionGoal.new
|
166
|
+
@action_result = Actionlib_tutorials::FibonacciActionResult.new
|
167
|
+
@action_feedback = Actionlib_tutorials::FibonacciActionFeedback.new
|
168
|
+
end
|
169
|
+
|
170
|
+
def _get_types
|
171
|
+
# internal API method
|
172
|
+
return @slot_types
|
173
|
+
end
|
174
|
+
|
175
|
+
def serialize(buff)
|
176
|
+
# serialize message into buffer
|
177
|
+
# @param buff: buffer
|
178
|
+
# @type buff: StringIO
|
179
|
+
begin
|
180
|
+
buff.write(@@struct_L3.pack(@action_goal.header.seq, @action_goal.header.stamp.secs, @action_goal.header.stamp.nsecs))
|
181
|
+
_x = @action_goal.header.frame_id
|
182
|
+
length = _x.length
|
183
|
+
buff.write([length, _x].pack("La#{length}"))
|
184
|
+
buff.write(@@struct_L2.pack(@action_goal.goal_id.stamp.secs, @action_goal.goal_id.stamp.nsecs))
|
185
|
+
_x = @action_goal.goal_id.id
|
186
|
+
length = _x.length
|
187
|
+
buff.write([length, _x].pack("La#{length}"))
|
188
|
+
buff.write(@@struct_lL3.pack(@action_goal.goal.order, @action_result.header.seq, @action_result.header.stamp.secs, @action_result.header.stamp.nsecs))
|
189
|
+
_x = @action_result.header.frame_id
|
190
|
+
length = _x.length
|
191
|
+
buff.write([length, _x].pack("La#{length}"))
|
192
|
+
buff.write(@@struct_L2.pack(@action_result.status.goal_id.stamp.secs, @action_result.status.goal_id.stamp.nsecs))
|
193
|
+
_x = @action_result.status.goal_id.id
|
194
|
+
length = _x.length
|
195
|
+
buff.write([length, _x].pack("La#{length}"))
|
196
|
+
buff.write(@@struct_C.pack(@action_result.status.status))
|
197
|
+
_x = @action_result.status.text
|
198
|
+
length = _x.length
|
199
|
+
buff.write([length, _x].pack("La#{length}"))
|
200
|
+
length = @action_result.result.sequence.length
|
201
|
+
buff.write(@@struct_L.pack(length))
|
202
|
+
pattern = "l#{length}"
|
203
|
+
buff.write(*@action_result.result.sequence.pack(pattern))
|
204
|
+
buff.write(@@struct_L3.pack(@action_feedback.header.seq, @action_feedback.header.stamp.secs, @action_feedback.header.stamp.nsecs))
|
205
|
+
_x = @action_feedback.header.frame_id
|
206
|
+
length = _x.length
|
207
|
+
buff.write([length, _x].pack("La#{length}"))
|
208
|
+
buff.write(@@struct_L2.pack(@action_feedback.status.goal_id.stamp.secs, @action_feedback.status.goal_id.stamp.nsecs))
|
209
|
+
_x = @action_feedback.status.goal_id.id
|
210
|
+
length = _x.length
|
211
|
+
buff.write([length, _x].pack("La#{length}"))
|
212
|
+
buff.write(@@struct_C.pack(@action_feedback.status.status))
|
213
|
+
_x = @action_feedback.status.text
|
214
|
+
length = _x.length
|
215
|
+
buff.write([length, _x].pack("La#{length}"))
|
216
|
+
length = @action_feedback.feedback.sequence.length
|
217
|
+
buff.write(@@struct_L.pack(length))
|
218
|
+
pattern = "l#{length}"
|
219
|
+
buff.write(*@action_feedback.feedback.sequence.pack(pattern))
|
220
|
+
rescue => exception
|
221
|
+
raise "some erro in serialize: #{exception}"
|
222
|
+
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
def deserialize(str)
|
227
|
+
# unpack serialized message in str into this message instance
|
228
|
+
# @param str: byte array of serialized message
|
229
|
+
# @type str: str
|
230
|
+
|
231
|
+
begin
|
232
|
+
if @action_goal == nil
|
233
|
+
@action_goal = Actionlib_tutorials::FibonacciActionGoal.new
|
234
|
+
end
|
235
|
+
if @action_result == nil
|
236
|
+
@action_result = Actionlib_tutorials::FibonacciActionResult.new
|
237
|
+
end
|
238
|
+
if @action_feedback == nil
|
239
|
+
@action_feedback = Actionlib_tutorials::FibonacciActionFeedback.new
|
240
|
+
end
|
241
|
+
end_point = 0
|
242
|
+
start = end_point
|
243
|
+
end_point += ROS::Struct::calc_size('L3')
|
244
|
+
(@action_goal.header.seq, @action_goal.header.stamp.secs, @action_goal.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
245
|
+
start = end_point
|
246
|
+
end_point += 4
|
247
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
248
|
+
start = end_point
|
249
|
+
end_point += length
|
250
|
+
@action_goal.header.frame_id = str[start..(end_point-1)]
|
251
|
+
start = end_point
|
252
|
+
end_point += ROS::Struct::calc_size('L2')
|
253
|
+
(@action_goal.goal_id.stamp.secs, @action_goal.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
254
|
+
start = end_point
|
255
|
+
end_point += 4
|
256
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
257
|
+
start = end_point
|
258
|
+
end_point += length
|
259
|
+
@action_goal.goal_id.id = str[start..(end_point-1)]
|
260
|
+
start = end_point
|
261
|
+
end_point += ROS::Struct::calc_size('lL3')
|
262
|
+
(@action_goal.goal.order, @action_result.header.seq, @action_result.header.stamp.secs, @action_result.header.stamp.nsecs,) = @@struct_lL3.unpack(str[start..(end_point-1)])
|
263
|
+
start = end_point
|
264
|
+
end_point += 4
|
265
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
266
|
+
start = end_point
|
267
|
+
end_point += length
|
268
|
+
@action_result.header.frame_id = str[start..(end_point-1)]
|
269
|
+
start = end_point
|
270
|
+
end_point += ROS::Struct::calc_size('L2')
|
271
|
+
(@action_result.status.goal_id.stamp.secs, @action_result.status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
272
|
+
start = end_point
|
273
|
+
end_point += 4
|
274
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
275
|
+
start = end_point
|
276
|
+
end_point += length
|
277
|
+
@action_result.status.goal_id.id = str[start..(end_point-1)]
|
278
|
+
start = end_point
|
279
|
+
end_point += ROS::Struct::calc_size('C')
|
280
|
+
(@action_result.status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
|
281
|
+
start = end_point
|
282
|
+
end_point += 4
|
283
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
284
|
+
start = end_point
|
285
|
+
end_point += length
|
286
|
+
@action_result.status.text = str[start..(end_point-1)]
|
287
|
+
start = end_point
|
288
|
+
end_point += 4
|
289
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
290
|
+
pattern = "l#{length}"
|
291
|
+
start = end_point
|
292
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
293
|
+
@action_result.result.sequence = str[start..(end_point-1)].unpack(pattern)
|
294
|
+
start = end_point
|
295
|
+
end_point += ROS::Struct::calc_size('L3')
|
296
|
+
(@action_feedback.header.seq, @action_feedback.header.stamp.secs, @action_feedback.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
297
|
+
start = end_point
|
298
|
+
end_point += 4
|
299
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
300
|
+
start = end_point
|
301
|
+
end_point += length
|
302
|
+
@action_feedback.header.frame_id = str[start..(end_point-1)]
|
303
|
+
start = end_point
|
304
|
+
end_point += ROS::Struct::calc_size('L2')
|
305
|
+
(@action_feedback.status.goal_id.stamp.secs, @action_feedback.status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
306
|
+
start = end_point
|
307
|
+
end_point += 4
|
308
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
309
|
+
start = end_point
|
310
|
+
end_point += length
|
311
|
+
@action_feedback.status.goal_id.id = str[start..(end_point-1)]
|
312
|
+
start = end_point
|
313
|
+
end_point += ROS::Struct::calc_size('C')
|
314
|
+
(@action_feedback.status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
|
315
|
+
start = end_point
|
316
|
+
end_point += 4
|
317
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
318
|
+
start = end_point
|
319
|
+
end_point += length
|
320
|
+
@action_feedback.status.text = str[start..(end_point-1)]
|
321
|
+
start = end_point
|
322
|
+
end_point += 4
|
323
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
324
|
+
pattern = "l#{length}"
|
325
|
+
start = end_point
|
326
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
327
|
+
@action_feedback.feedback.sequence = str[start..(end_point-1)].unpack(pattern)
|
328
|
+
return self
|
329
|
+
rescue => exception
|
330
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
331
|
+
end
|
332
|
+
end
|
333
|
+
end # end of class
|
334
|
+
end # end of module
|
@@ -0,0 +1,216 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from FibonacciActionFeedback.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/FibonacciFeedback"
|
8
|
+
require "ros/time"
|
9
|
+
|
10
|
+
module Actionlib_tutorials
|
11
|
+
|
12
|
+
class FibonacciActionFeedback <::ROS::Message
|
13
|
+
def self.md5sum
|
14
|
+
"73b8497a9f629a31c0020900e4148f07"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.type
|
18
|
+
"actionlib_tutorials/FibonacciActionFeedback"
|
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
|
+
FibonacciFeedback 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/FibonacciFeedback
|
91
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
92
|
+
#feedback
|
93
|
+
int32[] sequence
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
"
|
98
|
+
end
|
99
|
+
attr_accessor :header, :status, :feedback
|
100
|
+
|
101
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
102
|
+
@@struct_C = ::ROS::Struct.new("C")
|
103
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
104
|
+
|
105
|
+
@@struct_L = ::ROS::Struct.new("L")
|
106
|
+
@@slot_types = ['Header','actionlib_msgs/GoalStatus','actionlib_tutorials/FibonacciFeedback']
|
107
|
+
|
108
|
+
def initialize
|
109
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
110
|
+
# set to None will be assigned a default value. The recommend
|
111
|
+
# use is keyword arguments as this is more robust to future message
|
112
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
113
|
+
#
|
114
|
+
# The available fields are:
|
115
|
+
# header,status,feedback
|
116
|
+
#
|
117
|
+
# @param args: complete set of field values, in .msg order
|
118
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
119
|
+
# to set specific fields.
|
120
|
+
#
|
121
|
+
|
122
|
+
# message fields cannot be None, assign default values for those that are
|
123
|
+
@header = Std_msgs::Header.new
|
124
|
+
@status = Actionlib_msgs::GoalStatus.new
|
125
|
+
@feedback = Actionlib_tutorials::FibonacciFeedback.new
|
126
|
+
end
|
127
|
+
|
128
|
+
def _get_types
|
129
|
+
# internal API method
|
130
|
+
return @slot_types
|
131
|
+
end
|
132
|
+
|
133
|
+
def serialize(buff)
|
134
|
+
# serialize message into buffer
|
135
|
+
# @param buff: buffer
|
136
|
+
# @type buff: StringIO
|
137
|
+
begin
|
138
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
139
|
+
_x = @header.frame_id
|
140
|
+
length = _x.length
|
141
|
+
buff.write([length, _x].pack("La#{length}"))
|
142
|
+
buff.write(@@struct_L2.pack(@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs))
|
143
|
+
_x = @status.goal_id.id
|
144
|
+
length = _x.length
|
145
|
+
buff.write([length, _x].pack("La#{length}"))
|
146
|
+
buff.write(@@struct_C.pack(@status.status))
|
147
|
+
_x = @status.text
|
148
|
+
length = _x.length
|
149
|
+
buff.write([length, _x].pack("La#{length}"))
|
150
|
+
length = @feedback.sequence.length
|
151
|
+
buff.write(@@struct_L.pack(length))
|
152
|
+
pattern = "l#{length}"
|
153
|
+
buff.write(*@feedback.sequence.pack(pattern))
|
154
|
+
rescue => exception
|
155
|
+
raise "some erro in serialize: #{exception}"
|
156
|
+
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
def deserialize(str)
|
161
|
+
# unpack serialized message in str into this message instance
|
162
|
+
# @param str: byte array of serialized message
|
163
|
+
# @type str: str
|
164
|
+
|
165
|
+
begin
|
166
|
+
if @header == nil
|
167
|
+
@header = Std_msgs::Header.new
|
168
|
+
end
|
169
|
+
if @status == nil
|
170
|
+
@status = Actionlib_msgs::GoalStatus.new
|
171
|
+
end
|
172
|
+
if @feedback == nil
|
173
|
+
@feedback = Actionlib_tutorials::FibonacciFeedback.new
|
174
|
+
end
|
175
|
+
end_point = 0
|
176
|
+
start = end_point
|
177
|
+
end_point += ROS::Struct::calc_size('L3')
|
178
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
179
|
+
start = end_point
|
180
|
+
end_point += 4
|
181
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
182
|
+
start = end_point
|
183
|
+
end_point += length
|
184
|
+
@header.frame_id = str[start..(end_point-1)]
|
185
|
+
start = end_point
|
186
|
+
end_point += ROS::Struct::calc_size('L2')
|
187
|
+
(@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
188
|
+
start = end_point
|
189
|
+
end_point += 4
|
190
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
191
|
+
start = end_point
|
192
|
+
end_point += length
|
193
|
+
@status.goal_id.id = str[start..(end_point-1)]
|
194
|
+
start = end_point
|
195
|
+
end_point += ROS::Struct::calc_size('C')
|
196
|
+
(@status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
|
197
|
+
start = end_point
|
198
|
+
end_point += 4
|
199
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
200
|
+
start = end_point
|
201
|
+
end_point += length
|
202
|
+
@status.text = str[start..(end_point-1)]
|
203
|
+
start = end_point
|
204
|
+
end_point += 4
|
205
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
206
|
+
pattern = "l#{length}"
|
207
|
+
start = end_point
|
208
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
209
|
+
@feedback.sequence = str[start..(end_point-1)].unpack(pattern)
|
210
|
+
return self
|
211
|
+
rescue => exception
|
212
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end # end of class
|
216
|
+
end # end of module
|