rosruby_msgs 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,406 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from GetPlanRequest.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "std_msgs/Header"
|
|
5
|
+
require "geometry_msgs/Quaternion"
|
|
6
|
+
require "geometry_msgs/Point"
|
|
7
|
+
require "geometry_msgs/Pose"
|
|
8
|
+
require "geometry_msgs/PoseStamped"
|
|
9
|
+
|
|
10
|
+
module Nav_msgs
|
|
11
|
+
|
|
12
|
+
class GetPlanRequest <::ROS::Message
|
|
13
|
+
def self.md5sum
|
|
14
|
+
"e25a43e0752bcca599a8c2eef8282df8"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def self.type
|
|
18
|
+
"nav_msgs/GetPlanRequest"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def has_header?
|
|
22
|
+
false
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def message_definition
|
|
26
|
+
"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
geometry_msgs/PoseStamped start
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
geometry_msgs/PoseStamped goal
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
float32 tolerance
|
|
37
|
+
|
|
38
|
+
================================================================================
|
|
39
|
+
MSG: geometry_msgs/PoseStamped
|
|
40
|
+
# A Pose with reference coordinate frame and timestamp
|
|
41
|
+
Header header
|
|
42
|
+
Pose pose
|
|
43
|
+
|
|
44
|
+
================================================================================
|
|
45
|
+
MSG: std_msgs/Header
|
|
46
|
+
# Standard metadata for higher-level stamped data types.
|
|
47
|
+
# This is generally used to communicate timestamped data
|
|
48
|
+
# in a particular coordinate frame.
|
|
49
|
+
#
|
|
50
|
+
# sequence ID: consecutively increasing ID
|
|
51
|
+
uint32 seq
|
|
52
|
+
#Two-integer timestamp that is expressed as:
|
|
53
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
54
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
55
|
+
# time-handling sugar is provided by the client library
|
|
56
|
+
time stamp
|
|
57
|
+
#Frame this data is associated with
|
|
58
|
+
# 0: no frame
|
|
59
|
+
# 1: global frame
|
|
60
|
+
string frame_id
|
|
61
|
+
|
|
62
|
+
================================================================================
|
|
63
|
+
MSG: geometry_msgs/Pose
|
|
64
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
65
|
+
Point position
|
|
66
|
+
Quaternion orientation
|
|
67
|
+
|
|
68
|
+
================================================================================
|
|
69
|
+
MSG: geometry_msgs/Point
|
|
70
|
+
# This contains the position of a point in free space
|
|
71
|
+
float64 x
|
|
72
|
+
float64 y
|
|
73
|
+
float64 z
|
|
74
|
+
|
|
75
|
+
================================================================================
|
|
76
|
+
MSG: geometry_msgs/Quaternion
|
|
77
|
+
# This represents an orientation in free space in quaternion form.
|
|
78
|
+
|
|
79
|
+
float64 x
|
|
80
|
+
float64 y
|
|
81
|
+
float64 z
|
|
82
|
+
float64 w
|
|
83
|
+
|
|
84
|
+
"
|
|
85
|
+
end
|
|
86
|
+
attr_accessor :start, :goal, :tolerance
|
|
87
|
+
|
|
88
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
89
|
+
@@struct_d7L3 = ::ROS::Struct.new("d7L3")
|
|
90
|
+
@@struct_d7f = ::ROS::Struct.new("d7f")
|
|
91
|
+
|
|
92
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
93
|
+
@@slot_types = ['geometry_msgs/PoseStamped','geometry_msgs/PoseStamped','float32']
|
|
94
|
+
|
|
95
|
+
def initialize
|
|
96
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
97
|
+
# set to None will be assigned a default value. The recommend
|
|
98
|
+
# use is keyword arguments as this is more robust to future message
|
|
99
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
100
|
+
#
|
|
101
|
+
# The available fields are:
|
|
102
|
+
# start,goal,tolerance
|
|
103
|
+
#
|
|
104
|
+
# @param args: complete set of field values, in .msg order
|
|
105
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
106
|
+
# to set specific fields.
|
|
107
|
+
#
|
|
108
|
+
|
|
109
|
+
# message fields cannot be None, assign default values for those that are
|
|
110
|
+
@start = Geometry_msgs::PoseStamped.new
|
|
111
|
+
@goal = Geometry_msgs::PoseStamped.new
|
|
112
|
+
@tolerance = 0.0
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def _get_types
|
|
116
|
+
# internal API method
|
|
117
|
+
return @slot_types
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
def serialize(buff)
|
|
121
|
+
# serialize message into buffer
|
|
122
|
+
# @param buff: buffer
|
|
123
|
+
# @type buff: StringIO
|
|
124
|
+
begin
|
|
125
|
+
buff.write(@@struct_L3.pack(@start.header.seq, @start.header.stamp.secs, @start.header.stamp.nsecs))
|
|
126
|
+
_x = @start.header.frame_id
|
|
127
|
+
length = _x.length
|
|
128
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
129
|
+
buff.write(@@struct_d7L3.pack(@start.pose.position.x, @start.pose.position.y, @start.pose.position.z, @start.pose.orientation.x, @start.pose.orientation.y, @start.pose.orientation.z, @start.pose.orientation.w, @goal.header.seq, @goal.header.stamp.secs, @goal.header.stamp.nsecs))
|
|
130
|
+
_x = @goal.header.frame_id
|
|
131
|
+
length = _x.length
|
|
132
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
133
|
+
buff.write(@@struct_d7f.pack(@goal.pose.position.x, @goal.pose.position.y, @goal.pose.position.z, @goal.pose.orientation.x, @goal.pose.orientation.y, @goal.pose.orientation.z, @goal.pose.orientation.w, @tolerance))
|
|
134
|
+
rescue => exception
|
|
135
|
+
raise "some erro in serialize: #{exception}"
|
|
136
|
+
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
def deserialize(str)
|
|
141
|
+
# unpack serialized message in str into this message instance
|
|
142
|
+
# @param str: byte array of serialized message
|
|
143
|
+
# @type str: str
|
|
144
|
+
|
|
145
|
+
begin
|
|
146
|
+
if @start == nil
|
|
147
|
+
@start = Geometry_msgs::PoseStamped.new
|
|
148
|
+
end
|
|
149
|
+
if @goal == nil
|
|
150
|
+
@goal = Geometry_msgs::PoseStamped.new
|
|
151
|
+
end
|
|
152
|
+
end_point = 0
|
|
153
|
+
start = end_point
|
|
154
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
155
|
+
(@start.header.seq, @start.header.stamp.secs, @start.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
156
|
+
start = end_point
|
|
157
|
+
end_point += 4
|
|
158
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
159
|
+
start = end_point
|
|
160
|
+
end_point += length
|
|
161
|
+
@start.header.frame_id = str[start..(end_point-1)]
|
|
162
|
+
start = end_point
|
|
163
|
+
end_point += ROS::Struct::calc_size('d7L3')
|
|
164
|
+
(@start.pose.position.x, @start.pose.position.y, @start.pose.position.z, @start.pose.orientation.x, @start.pose.orientation.y, @start.pose.orientation.z, @start.pose.orientation.w, @goal.header.seq, @goal.header.stamp.secs, @goal.header.stamp.nsecs,) = @@struct_d7L3.unpack(str[start..(end_point-1)])
|
|
165
|
+
start = end_point
|
|
166
|
+
end_point += 4
|
|
167
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
168
|
+
start = end_point
|
|
169
|
+
end_point += length
|
|
170
|
+
@goal.header.frame_id = str[start..(end_point-1)]
|
|
171
|
+
start = end_point
|
|
172
|
+
end_point += ROS::Struct::calc_size('d7f')
|
|
173
|
+
(@goal.pose.position.x, @goal.pose.position.y, @goal.pose.position.z, @goal.pose.orientation.x, @goal.pose.orientation.y, @goal.pose.orientation.z, @goal.pose.orientation.w, @tolerance,) = @@struct_d7f.unpack(str[start..(end_point-1)])
|
|
174
|
+
return self
|
|
175
|
+
rescue => exception
|
|
176
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end # end of class
|
|
180
|
+
end # end of module
|
|
181
|
+
# autogenerated by genmsg_ruby from GetPlanResponse.msg. Do not edit.
|
|
182
|
+
require 'ros/message'
|
|
183
|
+
|
|
184
|
+
require "geometry_msgs/PoseStamped"
|
|
185
|
+
require "std_msgs/Header"
|
|
186
|
+
require "geometry_msgs/Point"
|
|
187
|
+
require "nav_msgs/Path"
|
|
188
|
+
require "geometry_msgs/Quaternion"
|
|
189
|
+
require "geometry_msgs/Pose"
|
|
190
|
+
|
|
191
|
+
module Nav_msgs
|
|
192
|
+
|
|
193
|
+
class GetPlanResponse <::ROS::Message
|
|
194
|
+
def self.md5sum
|
|
195
|
+
"0002bc113c0259d71f6cf8cbc9430e18"
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
def self.type
|
|
199
|
+
"nav_msgs/GetPlanResponse"
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
def has_header?
|
|
203
|
+
false
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
def message_definition
|
|
207
|
+
"nav_msgs/Path plan
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
================================================================================
|
|
211
|
+
MSG: nav_msgs/Path
|
|
212
|
+
#An array of poses that represents a Path for a robot to follow
|
|
213
|
+
Header header
|
|
214
|
+
geometry_msgs/PoseStamped[] poses
|
|
215
|
+
|
|
216
|
+
================================================================================
|
|
217
|
+
MSG: std_msgs/Header
|
|
218
|
+
# Standard metadata for higher-level stamped data types.
|
|
219
|
+
# This is generally used to communicate timestamped data
|
|
220
|
+
# in a particular coordinate frame.
|
|
221
|
+
#
|
|
222
|
+
# sequence ID: consecutively increasing ID
|
|
223
|
+
uint32 seq
|
|
224
|
+
#Two-integer timestamp that is expressed as:
|
|
225
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
226
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
227
|
+
# time-handling sugar is provided by the client library
|
|
228
|
+
time stamp
|
|
229
|
+
#Frame this data is associated with
|
|
230
|
+
# 0: no frame
|
|
231
|
+
# 1: global frame
|
|
232
|
+
string frame_id
|
|
233
|
+
|
|
234
|
+
================================================================================
|
|
235
|
+
MSG: geometry_msgs/PoseStamped
|
|
236
|
+
# A Pose with reference coordinate frame and timestamp
|
|
237
|
+
Header header
|
|
238
|
+
Pose pose
|
|
239
|
+
|
|
240
|
+
================================================================================
|
|
241
|
+
MSG: geometry_msgs/Pose
|
|
242
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
243
|
+
Point position
|
|
244
|
+
Quaternion orientation
|
|
245
|
+
|
|
246
|
+
================================================================================
|
|
247
|
+
MSG: geometry_msgs/Point
|
|
248
|
+
# This contains the position of a point in free space
|
|
249
|
+
float64 x
|
|
250
|
+
float64 y
|
|
251
|
+
float64 z
|
|
252
|
+
|
|
253
|
+
================================================================================
|
|
254
|
+
MSG: geometry_msgs/Quaternion
|
|
255
|
+
# This represents an orientation in free space in quaternion form.
|
|
256
|
+
|
|
257
|
+
float64 x
|
|
258
|
+
float64 y
|
|
259
|
+
float64 z
|
|
260
|
+
float64 w
|
|
261
|
+
|
|
262
|
+
"
|
|
263
|
+
end
|
|
264
|
+
attr_accessor :plan
|
|
265
|
+
|
|
266
|
+
@@struct_d4 = ::ROS::Struct.new("d4")
|
|
267
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
268
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
|
269
|
+
@@struct_d3 = ::ROS::Struct.new("d3")
|
|
270
|
+
|
|
271
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
272
|
+
@@slot_types = ['nav_msgs/Path']
|
|
273
|
+
|
|
274
|
+
def initialize
|
|
275
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
276
|
+
# set to None will be assigned a default value. The recommend
|
|
277
|
+
# use is keyword arguments as this is more robust to future message
|
|
278
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
279
|
+
#
|
|
280
|
+
# The available fields are:
|
|
281
|
+
# plan
|
|
282
|
+
#
|
|
283
|
+
# @param args: complete set of field values, in .msg order
|
|
284
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
285
|
+
# to set specific fields.
|
|
286
|
+
#
|
|
287
|
+
|
|
288
|
+
# message fields cannot be None, assign default values for those that are
|
|
289
|
+
@plan = Nav_msgs::Path.new
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
def _get_types
|
|
293
|
+
# internal API method
|
|
294
|
+
return @slot_types
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
def serialize(buff)
|
|
298
|
+
# serialize message into buffer
|
|
299
|
+
# @param buff: buffer
|
|
300
|
+
# @type buff: StringIO
|
|
301
|
+
begin
|
|
302
|
+
buff.write(@@struct_L3.pack(@plan.header.seq, @plan.header.stamp.secs, @plan.header.stamp.nsecs))
|
|
303
|
+
_x = @plan.header.frame_id
|
|
304
|
+
length = _x.length
|
|
305
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
306
|
+
length = @plan.poses.length
|
|
307
|
+
buff.write(@@struct_L.pack(length))
|
|
308
|
+
for val1 in @plan.poses
|
|
309
|
+
_v11 = val1.header
|
|
310
|
+
buff.write(@@struct_L.pack(_v11.seq))
|
|
311
|
+
_v12 = _v11.stamp
|
|
312
|
+
_x = _v12
|
|
313
|
+
buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
|
|
314
|
+
_x = _v11.frame_id
|
|
315
|
+
length = _x.length
|
|
316
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
317
|
+
_v13 = val1.pose
|
|
318
|
+
_v14 = _v13.position
|
|
319
|
+
_x = _v14
|
|
320
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
321
|
+
_v15 = _v13.orientation
|
|
322
|
+
_x = _v15
|
|
323
|
+
buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
|
|
324
|
+
end
|
|
325
|
+
rescue => exception
|
|
326
|
+
raise "some erro in serialize: #{exception}"
|
|
327
|
+
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
def deserialize(str)
|
|
332
|
+
# unpack serialized message in str into this message instance
|
|
333
|
+
# @param str: byte array of serialized message
|
|
334
|
+
# @type str: str
|
|
335
|
+
|
|
336
|
+
begin
|
|
337
|
+
if @plan == nil
|
|
338
|
+
@plan = Nav_msgs::Path.new
|
|
339
|
+
end
|
|
340
|
+
end_point = 0
|
|
341
|
+
start = end_point
|
|
342
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
343
|
+
(@plan.header.seq, @plan.header.stamp.secs, @plan.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
344
|
+
start = end_point
|
|
345
|
+
end_point += 4
|
|
346
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
347
|
+
start = end_point
|
|
348
|
+
end_point += length
|
|
349
|
+
@plan.header.frame_id = str[start..(end_point-1)]
|
|
350
|
+
start = end_point
|
|
351
|
+
end_point += 4
|
|
352
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
353
|
+
@plan.poses = []
|
|
354
|
+
length.times do
|
|
355
|
+
val1 = Geometry_msgs::PoseStamped.new
|
|
356
|
+
_v16 = val1.header
|
|
357
|
+
start = end_point
|
|
358
|
+
end_point += ROS::Struct::calc_size('L')
|
|
359
|
+
(_v16.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
360
|
+
_v17 = _v16.stamp
|
|
361
|
+
_x = _v17
|
|
362
|
+
start = end_point
|
|
363
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
364
|
+
(_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
365
|
+
start = end_point
|
|
366
|
+
end_point += 4
|
|
367
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
368
|
+
start = end_point
|
|
369
|
+
end_point += length
|
|
370
|
+
_v16.frame_id = str[start..(end_point-1)]
|
|
371
|
+
_v18 = val1.pose
|
|
372
|
+
_v19 = _v18.position
|
|
373
|
+
_x = _v19
|
|
374
|
+
start = end_point
|
|
375
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
376
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
377
|
+
_v20 = _v18.orientation
|
|
378
|
+
_x = _v20
|
|
379
|
+
start = end_point
|
|
380
|
+
end_point += ROS::Struct::calc_size('d4')
|
|
381
|
+
(_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
|
|
382
|
+
@plan.poses.push(val1)
|
|
383
|
+
end
|
|
384
|
+
return self
|
|
385
|
+
rescue => exception
|
|
386
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
387
|
+
end
|
|
388
|
+
end
|
|
389
|
+
end # end of class
|
|
390
|
+
end # end of module
|
|
391
|
+
module Nav_msgs
|
|
392
|
+
class GetPlan
|
|
393
|
+
def self.type
|
|
394
|
+
'nav_msgs/GetPlan'
|
|
395
|
+
end
|
|
396
|
+
def self.md5sum
|
|
397
|
+
'421c8ea4d21c6c9db7054b4bbdf1e024'
|
|
398
|
+
end
|
|
399
|
+
def self.request_class
|
|
400
|
+
GetPlanRequest
|
|
401
|
+
end
|
|
402
|
+
def self.response_class
|
|
403
|
+
GetPlanResponse
|
|
404
|
+
end
|
|
405
|
+
end
|
|
406
|
+
end
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from GridCells.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "std_msgs/Header"
|
|
5
|
+
require "geometry_msgs/Point"
|
|
6
|
+
|
|
7
|
+
module Nav_msgs
|
|
8
|
+
|
|
9
|
+
class GridCells <::ROS::Message
|
|
10
|
+
def self.md5sum
|
|
11
|
+
"b9e4f5df6d28e272ebde00a3994830f5"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def self.type
|
|
15
|
+
"nav_msgs/GridCells"
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def has_header?
|
|
19
|
+
true
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def message_definition
|
|
23
|
+
"#an array of cells in a 2D grid
|
|
24
|
+
Header header
|
|
25
|
+
float32 cell_width
|
|
26
|
+
float32 cell_height
|
|
27
|
+
geometry_msgs/Point[] cells
|
|
28
|
+
|
|
29
|
+
================================================================================
|
|
30
|
+
MSG: std_msgs/Header
|
|
31
|
+
# Standard metadata for higher-level stamped data types.
|
|
32
|
+
# This is generally used to communicate timestamped data
|
|
33
|
+
# in a particular coordinate frame.
|
|
34
|
+
#
|
|
35
|
+
# sequence ID: consecutively increasing ID
|
|
36
|
+
uint32 seq
|
|
37
|
+
#Two-integer timestamp that is expressed as:
|
|
38
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
39
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
40
|
+
# time-handling sugar is provided by the client library
|
|
41
|
+
time stamp
|
|
42
|
+
#Frame this data is associated with
|
|
43
|
+
# 0: no frame
|
|
44
|
+
# 1: global frame
|
|
45
|
+
string frame_id
|
|
46
|
+
|
|
47
|
+
================================================================================
|
|
48
|
+
MSG: geometry_msgs/Point
|
|
49
|
+
# This contains the position of a point in free space
|
|
50
|
+
float64 x
|
|
51
|
+
float64 y
|
|
52
|
+
float64 z
|
|
53
|
+
|
|
54
|
+
"
|
|
55
|
+
end
|
|
56
|
+
attr_accessor :header, :cell_width, :cell_height, :cells
|
|
57
|
+
|
|
58
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
59
|
+
@@struct_f2 = ::ROS::Struct.new("f2")
|
|
60
|
+
@@struct_d3 = ::ROS::Struct.new("d3")
|
|
61
|
+
|
|
62
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
63
|
+
@@slot_types = ['Header','float32','float32','geometry_msgs/Point[]']
|
|
64
|
+
|
|
65
|
+
def initialize
|
|
66
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
67
|
+
# set to None will be assigned a default value. The recommend
|
|
68
|
+
# use is keyword arguments as this is more robust to future message
|
|
69
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
70
|
+
#
|
|
71
|
+
# The available fields are:
|
|
72
|
+
# header,cell_width,cell_height,cells
|
|
73
|
+
#
|
|
74
|
+
# @param args: complete set of field values, in .msg order
|
|
75
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
76
|
+
# to set specific fields.
|
|
77
|
+
#
|
|
78
|
+
|
|
79
|
+
# message fields cannot be None, assign default values for those that are
|
|
80
|
+
@header = Std_msgs::Header.new
|
|
81
|
+
@cell_width = 0.0
|
|
82
|
+
@cell_height = 0.0
|
|
83
|
+
@cells = []
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
def _get_types
|
|
87
|
+
# internal API method
|
|
88
|
+
return @slot_types
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
def serialize(buff)
|
|
92
|
+
# serialize message into buffer
|
|
93
|
+
# @param buff: buffer
|
|
94
|
+
# @type buff: StringIO
|
|
95
|
+
begin
|
|
96
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
97
|
+
_x = @header.frame_id
|
|
98
|
+
length = _x.length
|
|
99
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
100
|
+
buff.write(@@struct_f2.pack(@cell_width, @cell_height))
|
|
101
|
+
length = @cells.length
|
|
102
|
+
buff.write(@@struct_L.pack(length))
|
|
103
|
+
for val1 in @cells
|
|
104
|
+
_x = val1
|
|
105
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
106
|
+
end
|
|
107
|
+
rescue => exception
|
|
108
|
+
raise "some erro in serialize: #{exception}"
|
|
109
|
+
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def deserialize(str)
|
|
114
|
+
# unpack serialized message in str into this message instance
|
|
115
|
+
# @param str: byte array of serialized message
|
|
116
|
+
# @type str: str
|
|
117
|
+
|
|
118
|
+
begin
|
|
119
|
+
if @header == nil
|
|
120
|
+
@header = Std_msgs::Header.new
|
|
121
|
+
end
|
|
122
|
+
end_point = 0
|
|
123
|
+
start = end_point
|
|
124
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
125
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
126
|
+
start = end_point
|
|
127
|
+
end_point += 4
|
|
128
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
129
|
+
start = end_point
|
|
130
|
+
end_point += length
|
|
131
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
132
|
+
start = end_point
|
|
133
|
+
end_point += ROS::Struct::calc_size('f2')
|
|
134
|
+
(@cell_width, @cell_height,) = @@struct_f2.unpack(str[start..(end_point-1)])
|
|
135
|
+
start = end_point
|
|
136
|
+
end_point += 4
|
|
137
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
138
|
+
@cells = []
|
|
139
|
+
length.times do
|
|
140
|
+
val1 = Geometry_msgs::Point.new
|
|
141
|
+
_x = val1
|
|
142
|
+
start = end_point
|
|
143
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
144
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
145
|
+
@cells.push(val1)
|
|
146
|
+
end
|
|
147
|
+
return self
|
|
148
|
+
rescue => exception
|
|
149
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end # end of class
|
|
153
|
+
end # end of module
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from MapMetaData.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "ros/time"
|
|
5
|
+
require "geometry_msgs/Point"
|
|
6
|
+
require "geometry_msgs/Pose"
|
|
7
|
+
require "geometry_msgs/Quaternion"
|
|
8
|
+
|
|
9
|
+
module Nav_msgs
|
|
10
|
+
|
|
11
|
+
class MapMetaData <::ROS::Message
|
|
12
|
+
def self.md5sum
|
|
13
|
+
"10cfc8a2818024d3248802c00c95f11b"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.type
|
|
17
|
+
"nav_msgs/MapMetaData"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def has_header?
|
|
21
|
+
false
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def message_definition
|
|
25
|
+
"# This hold basic information about the characterists of the OccupancyGrid
|
|
26
|
+
|
|
27
|
+
# The time at which the map was loaded
|
|
28
|
+
time map_load_time
|
|
29
|
+
# The map resolution [m/cell]
|
|
30
|
+
float32 resolution
|
|
31
|
+
# Map width [cells]
|
|
32
|
+
uint32 width
|
|
33
|
+
# Map height [cells]
|
|
34
|
+
uint32 height
|
|
35
|
+
# The origin of the map [m, m, rad]. This is the real-world pose of the
|
|
36
|
+
# cell (0,0) in the map.
|
|
37
|
+
geometry_msgs/Pose origin
|
|
38
|
+
================================================================================
|
|
39
|
+
MSG: geometry_msgs/Pose
|
|
40
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
41
|
+
Point position
|
|
42
|
+
Quaternion orientation
|
|
43
|
+
|
|
44
|
+
================================================================================
|
|
45
|
+
MSG: geometry_msgs/Point
|
|
46
|
+
# This contains the position of a point in free space
|
|
47
|
+
float64 x
|
|
48
|
+
float64 y
|
|
49
|
+
float64 z
|
|
50
|
+
|
|
51
|
+
================================================================================
|
|
52
|
+
MSG: geometry_msgs/Quaternion
|
|
53
|
+
# This represents an orientation in free space in quaternion form.
|
|
54
|
+
|
|
55
|
+
float64 x
|
|
56
|
+
float64 y
|
|
57
|
+
float64 z
|
|
58
|
+
float64 w
|
|
59
|
+
|
|
60
|
+
"
|
|
61
|
+
end
|
|
62
|
+
attr_accessor :map_load_time, :resolution, :width, :height, :origin
|
|
63
|
+
|
|
64
|
+
@@struct_L2fL2d7 = ::ROS::Struct.new("L2fL2d7")
|
|
65
|
+
|
|
66
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
67
|
+
@@slot_types = ['time','float32','uint32','uint32','geometry_msgs/Pose']
|
|
68
|
+
|
|
69
|
+
def initialize
|
|
70
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
71
|
+
# set to None will be assigned a default value. The recommend
|
|
72
|
+
# use is keyword arguments as this is more robust to future message
|
|
73
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
74
|
+
#
|
|
75
|
+
# The available fields are:
|
|
76
|
+
# map_load_time,resolution,width,height,origin
|
|
77
|
+
#
|
|
78
|
+
# @param args: complete set of field values, in .msg order
|
|
79
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
80
|
+
# to set specific fields.
|
|
81
|
+
#
|
|
82
|
+
|
|
83
|
+
# message fields cannot be None, assign default values for those that are
|
|
84
|
+
@map_load_time = ROS::Time.new
|
|
85
|
+
@resolution = 0.0
|
|
86
|
+
@width = 0
|
|
87
|
+
@height = 0
|
|
88
|
+
@origin = Geometry_msgs::Pose.new
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
def _get_types
|
|
92
|
+
# internal API method
|
|
93
|
+
return @slot_types
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def serialize(buff)
|
|
97
|
+
# serialize message into buffer
|
|
98
|
+
# @param buff: buffer
|
|
99
|
+
# @type buff: StringIO
|
|
100
|
+
begin
|
|
101
|
+
buff.write(@@struct_L2fL2d7.pack(@map_load_time.secs, @map_load_time.nsecs, @resolution, @width, @height, @origin.position.x, @origin.position.y, @origin.position.z, @origin.orientation.x, @origin.orientation.y, @origin.orientation.z, @origin.orientation.w))
|
|
102
|
+
rescue => exception
|
|
103
|
+
raise "some erro in serialize: #{exception}"
|
|
104
|
+
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
def deserialize(str)
|
|
109
|
+
# unpack serialized message in str into this message instance
|
|
110
|
+
# @param str: byte array of serialized message
|
|
111
|
+
# @type str: str
|
|
112
|
+
|
|
113
|
+
begin
|
|
114
|
+
if @map_load_time == nil
|
|
115
|
+
@map_load_time = ROS::Time.new
|
|
116
|
+
end
|
|
117
|
+
if @origin == nil
|
|
118
|
+
@origin = Geometry_msgs::Pose.new
|
|
119
|
+
end
|
|
120
|
+
end_point = 0
|
|
121
|
+
start = end_point
|
|
122
|
+
end_point += ROS::Struct::calc_size('L2fL2d7')
|
|
123
|
+
(@map_load_time.secs, @map_load_time.nsecs, @resolution, @width, @height, @origin.position.x, @origin.position.y, @origin.position.z, @origin.orientation.x, @origin.orientation.y, @origin.orientation.z, @origin.orientation.w,) = @@struct_L2fL2d7.unpack(str[start..(end_point-1)])
|
|
124
|
+
return self
|
|
125
|
+
rescue => exception
|
|
126
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end # end of class
|
|
130
|
+
end # end of module
|