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,101 @@
1
+ # autogenerated by genmsg_ruby from Wrench.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "geometry_msgs/Vector3"
5
+
6
+ module Geometry_msgs
7
+
8
+ class Wrench <::ROS::Message
9
+ def self.md5sum
10
+ "4f539cf138b23283b520fd271b567936"
11
+ end
12
+
13
+ def self.type
14
+ "geometry_msgs/Wrench"
15
+ end
16
+
17
+ def has_header?
18
+ false
19
+ end
20
+
21
+ def message_definition
22
+ "# This represents force in free space, seperated into
23
+ # it's linear and angular parts.
24
+ Vector3 force
25
+ Vector3 torque
26
+
27
+ ================================================================================
28
+ MSG: geometry_msgs/Vector3
29
+ # This represents a vector in free space.
30
+
31
+ float64 x
32
+ float64 y
33
+ float64 z
34
+ "
35
+ end
36
+ attr_accessor :force, :torque
37
+
38
+ @@struct_d6 = ::ROS::Struct.new("d6")
39
+
40
+ @@struct_L = ::ROS::Struct.new("L")
41
+ @@slot_types = ['geometry_msgs/Vector3','geometry_msgs/Vector3']
42
+
43
+ def initialize
44
+ # Constructor. Any message fields that are implicitly/explicitly
45
+ # set to None will be assigned a default value. The recommend
46
+ # use is keyword arguments as this is more robust to future message
47
+ # changes. You cannot mix in-order arguments and keyword arguments.
48
+ #
49
+ # The available fields are:
50
+ # force,torque
51
+ #
52
+ # @param args: complete set of field values, in .msg order
53
+ # @param kwds: use keyword arguments corresponding to message field names
54
+ # to set specific fields.
55
+ #
56
+
57
+ # message fields cannot be None, assign default values for those that are
58
+ @force = Geometry_msgs::Vector3.new
59
+ @torque = Geometry_msgs::Vector3.new
60
+ end
61
+
62
+ def _get_types
63
+ # internal API method
64
+ return @slot_types
65
+ end
66
+
67
+ def serialize(buff)
68
+ # serialize message into buffer
69
+ # @param buff: buffer
70
+ # @type buff: StringIO
71
+ begin
72
+ buff.write(@@struct_d6.pack(@force.x, @force.y, @force.z, @torque.x, @torque.y, @torque.z))
73
+ rescue => exception
74
+ raise "some erro in serialize: #{exception}"
75
+
76
+ end
77
+ end
78
+
79
+ def deserialize(str)
80
+ # unpack serialized message in str into this message instance
81
+ # @param str: byte array of serialized message
82
+ # @type str: str
83
+
84
+ begin
85
+ if @force == nil
86
+ @force = Geometry_msgs::Vector3.new
87
+ end
88
+ if @torque == nil
89
+ @torque = Geometry_msgs::Vector3.new
90
+ end
91
+ end_point = 0
92
+ start = end_point
93
+ end_point += ROS::Struct::calc_size('d6')
94
+ (@force.x, @force.y, @force.z, @torque.x, @torque.y, @torque.z,) = @@struct_d6.unpack(str[start..(end_point-1)])
95
+ return self
96
+ rescue => exception
97
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
98
+ end
99
+ end
100
+ end # end of class
101
+ end # end of module
@@ -0,0 +1,141 @@
1
+ # autogenerated by genmsg_ruby from WrenchStamped.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "std_msgs/Header"
5
+ require "geometry_msgs/Vector3"
6
+ require "geometry_msgs/Wrench"
7
+
8
+ module Geometry_msgs
9
+
10
+ class WrenchStamped <::ROS::Message
11
+ def self.md5sum
12
+ "d78d3cb249ce23087ade7e7d0c40cfa7"
13
+ end
14
+
15
+ def self.type
16
+ "geometry_msgs/WrenchStamped"
17
+ end
18
+
19
+ def has_header?
20
+ true
21
+ end
22
+
23
+ def message_definition
24
+ "# A wrench with reference coordinate frame and timestamp
25
+ Header header
26
+ Wrench wrench
27
+
28
+ ================================================================================
29
+ MSG: std_msgs/Header
30
+ # Standard metadata for higher-level stamped data types.
31
+ # This is generally used to communicate timestamped data
32
+ # in a particular coordinate frame.
33
+ #
34
+ # sequence ID: consecutively increasing ID
35
+ uint32 seq
36
+ #Two-integer timestamp that is expressed as:
37
+ # * stamp.secs: seconds (stamp_secs) since epoch
38
+ # * stamp.nsecs: nanoseconds since stamp_secs
39
+ # time-handling sugar is provided by the client library
40
+ time stamp
41
+ #Frame this data is associated with
42
+ # 0: no frame
43
+ # 1: global frame
44
+ string frame_id
45
+
46
+ ================================================================================
47
+ MSG: geometry_msgs/Wrench
48
+ # This represents force in free space, seperated into
49
+ # it's linear and angular parts.
50
+ Vector3 force
51
+ Vector3 torque
52
+
53
+ ================================================================================
54
+ MSG: geometry_msgs/Vector3
55
+ # This represents a vector in free space.
56
+
57
+ float64 x
58
+ float64 y
59
+ float64 z
60
+ "
61
+ end
62
+ attr_accessor :header, :wrench
63
+
64
+ @@struct_L3 = ::ROS::Struct.new("L3")
65
+ @@struct_d6 = ::ROS::Struct.new("d6")
66
+
67
+ @@struct_L = ::ROS::Struct.new("L")
68
+ @@slot_types = ['Header','geometry_msgs/Wrench']
69
+
70
+ def initialize
71
+ # Constructor. Any message fields that are implicitly/explicitly
72
+ # set to None will be assigned a default value. The recommend
73
+ # use is keyword arguments as this is more robust to future message
74
+ # changes. You cannot mix in-order arguments and keyword arguments.
75
+ #
76
+ # The available fields are:
77
+ # header,wrench
78
+ #
79
+ # @param args: complete set of field values, in .msg order
80
+ # @param kwds: use keyword arguments corresponding to message field names
81
+ # to set specific fields.
82
+ #
83
+
84
+ # message fields cannot be None, assign default values for those that are
85
+ @header = Std_msgs::Header.new
86
+ @wrench = Geometry_msgs::Wrench.new
87
+ end
88
+
89
+ def _get_types
90
+ # internal API method
91
+ return @slot_types
92
+ end
93
+
94
+ def serialize(buff)
95
+ # serialize message into buffer
96
+ # @param buff: buffer
97
+ # @type buff: StringIO
98
+ begin
99
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
100
+ _x = @header.frame_id
101
+ length = _x.length
102
+ buff.write([length, _x].pack("La#{length}"))
103
+ buff.write(@@struct_d6.pack(@wrench.force.x, @wrench.force.y, @wrench.force.z, @wrench.torque.x, @wrench.torque.y, @wrench.torque.z))
104
+ rescue => exception
105
+ raise "some erro in serialize: #{exception}"
106
+
107
+ end
108
+ end
109
+
110
+ def deserialize(str)
111
+ # unpack serialized message in str into this message instance
112
+ # @param str: byte array of serialized message
113
+ # @type str: str
114
+
115
+ begin
116
+ if @header == nil
117
+ @header = Std_msgs::Header.new
118
+ end
119
+ if @wrench == nil
120
+ @wrench = Geometry_msgs::Wrench.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('d6')
134
+ (@wrench.force.x, @wrench.force.y, @wrench.force.z, @wrench.torque.x, @wrench.torque.y, @wrench.torque.z,) = @@struct_d6.unpack(str[start..(end_point-1)])
135
+ return self
136
+ rescue => exception
137
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
138
+ end
139
+ end
140
+ end # end of class
141
+ end # end of module
@@ -0,0 +1,280 @@
1
+ # autogenerated by genmsg_ruby from GetMapRequest.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+
5
+ module Nav_msgs
6
+
7
+ class GetMapRequest <::ROS::Message
8
+ def self.md5sum
9
+ "d41d8cd98f00b204e9800998ecf8427e"
10
+ end
11
+
12
+ def self.type
13
+ "nav_msgs/GetMapRequest"
14
+ end
15
+
16
+ def has_header?
17
+ false
18
+ end
19
+
20
+ def message_definition
21
+ "
22
+
23
+ "
24
+ end
25
+ attr_accessor
26
+
27
+
28
+ @@struct_L = ::ROS::Struct.new("L")
29
+ @@slot_types = []
30
+
31
+ def initialize
32
+ # Constructor. Any message fields that are implicitly/explicitly
33
+ # set to None will be assigned a default value. The recommend
34
+ # use is keyword arguments as this is more robust to future message
35
+ # changes. You cannot mix in-order arguments and keyword arguments.
36
+ #
37
+ # The available fields are:
38
+ #
39
+ #
40
+ # @param args: complete set of field values, in .msg order
41
+ # @param kwds: use keyword arguments corresponding to message field names
42
+ # to set specific fields.
43
+ #
44
+
45
+
46
+ def _get_types
47
+ # internal API method
48
+ return @slot_types
49
+ end
50
+
51
+ def serialize(buff)
52
+ # serialize message into buffer
53
+ # @param buff: buffer
54
+ # @type buff: StringIO
55
+ begin
56
+ pass
57
+ rescue => exception
58
+ raise "some erro in serialize: #{exception}"
59
+
60
+ end
61
+ end
62
+
63
+ def deserialize(str)
64
+ # unpack serialized message in str into this message instance
65
+ # @param str: byte array of serialized message
66
+ # @type str: str
67
+
68
+ begin
69
+ end_point = 0
70
+ return self
71
+ rescue => exception
72
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
73
+ end
74
+ end
75
+ end # end of class
76
+ end # end of module
77
+ # autogenerated by genmsg_ruby from GetMapResponse.msg. Do not edit.
78
+ require 'ros/message'
79
+
80
+ require "ros/time"
81
+ require "std_msgs/Header"
82
+ require "geometry_msgs/Point"
83
+ require "nav_msgs/MapMetaData"
84
+ require "geometry_msgs/Quaternion"
85
+ require "nav_msgs/OccupancyGrid"
86
+ require "geometry_msgs/Pose"
87
+
88
+ module Nav_msgs
89
+
90
+ class GetMapResponse <::ROS::Message
91
+ def self.md5sum
92
+ "6cdd0a18e0aff5b0a3ca2326a89b54ff"
93
+ end
94
+
95
+ def self.type
96
+ "nav_msgs/GetMapResponse"
97
+ end
98
+
99
+ def has_header?
100
+ false
101
+ end
102
+
103
+ def message_definition
104
+ "nav_msgs/OccupancyGrid map
105
+
106
+
107
+ ================================================================================
108
+ MSG: nav_msgs/OccupancyGrid
109
+ # This represents a 2-D grid map, in which each cell represents the probability of
110
+ # occupancy.
111
+
112
+ Header header
113
+
114
+ #MetaData for the map
115
+ MapMetaData info
116
+
117
+ # The map data, in row-major order, starting with (0,0). Occupancy
118
+ # probabilities are in the range [0,100]. Unknown is -1.
119
+ int8[] data
120
+
121
+ ================================================================================
122
+ MSG: std_msgs/Header
123
+ # Standard metadata for higher-level stamped data types.
124
+ # This is generally used to communicate timestamped data
125
+ # in a particular coordinate frame.
126
+ #
127
+ # sequence ID: consecutively increasing ID
128
+ uint32 seq
129
+ #Two-integer timestamp that is expressed as:
130
+ # * stamp.secs: seconds (stamp_secs) since epoch
131
+ # * stamp.nsecs: nanoseconds since stamp_secs
132
+ # time-handling sugar is provided by the client library
133
+ time stamp
134
+ #Frame this data is associated with
135
+ # 0: no frame
136
+ # 1: global frame
137
+ string frame_id
138
+
139
+ ================================================================================
140
+ MSG: nav_msgs/MapMetaData
141
+ # This hold basic information about the characterists of the OccupancyGrid
142
+
143
+ # The time at which the map was loaded
144
+ time map_load_time
145
+ # The map resolution [m/cell]
146
+ float32 resolution
147
+ # Map width [cells]
148
+ uint32 width
149
+ # Map height [cells]
150
+ uint32 height
151
+ # The origin of the map [m, m, rad]. This is the real-world pose of the
152
+ # cell (0,0) in the map.
153
+ geometry_msgs/Pose origin
154
+ ================================================================================
155
+ MSG: geometry_msgs/Pose
156
+ # A representation of pose in free space, composed of postion and orientation.
157
+ Point position
158
+ Quaternion orientation
159
+
160
+ ================================================================================
161
+ MSG: geometry_msgs/Point
162
+ # This contains the position of a point in free space
163
+ float64 x
164
+ float64 y
165
+ float64 z
166
+
167
+ ================================================================================
168
+ MSG: geometry_msgs/Quaternion
169
+ # This represents an orientation in free space in quaternion form.
170
+
171
+ float64 x
172
+ float64 y
173
+ float64 z
174
+ float64 w
175
+
176
+ "
177
+ end
178
+ attr_accessor :map
179
+
180
+ @@struct_L3 = ::ROS::Struct.new("L3")
181
+ @@struct_L2fL2d7 = ::ROS::Struct.new("L2fL2d7")
182
+
183
+ @@struct_L = ::ROS::Struct.new("L")
184
+ @@slot_types = ['nav_msgs/OccupancyGrid']
185
+
186
+ def initialize
187
+ # Constructor. Any message fields that are implicitly/explicitly
188
+ # set to None will be assigned a default value. The recommend
189
+ # use is keyword arguments as this is more robust to future message
190
+ # changes. You cannot mix in-order arguments and keyword arguments.
191
+ #
192
+ # The available fields are:
193
+ # map
194
+ #
195
+ # @param args: complete set of field values, in .msg order
196
+ # @param kwds: use keyword arguments corresponding to message field names
197
+ # to set specific fields.
198
+ #
199
+
200
+ # message fields cannot be None, assign default values for those that are
201
+ @map = Nav_msgs::OccupancyGrid.new
202
+ end
203
+
204
+ def _get_types
205
+ # internal API method
206
+ return @slot_types
207
+ end
208
+
209
+ def serialize(buff)
210
+ # serialize message into buffer
211
+ # @param buff: buffer
212
+ # @type buff: StringIO
213
+ begin
214
+ buff.write(@@struct_L3.pack(@map.header.seq, @map.header.stamp.secs, @map.header.stamp.nsecs))
215
+ _x = @map.header.frame_id
216
+ length = _x.length
217
+ buff.write([length, _x].pack("La#{length}"))
218
+ buff.write(@@struct_L2fL2d7.pack(@map.info.map_load_time.secs, @map.info.map_load_time.nsecs, @map.info.resolution, @map.info.width, @map.info.height, @map.info.origin.position.x, @map.info.origin.position.y, @map.info.origin.position.z, @map.info.origin.orientation.x, @map.info.origin.orientation.y, @map.info.origin.orientation.z, @map.info.origin.orientation.w))
219
+ length = @map.data.length
220
+ buff.write(@@struct_L.pack(length))
221
+ pattern = "c#{length}"
222
+ buff.write(*@map.data.pack(pattern))
223
+ rescue => exception
224
+ raise "some erro in serialize: #{exception}"
225
+
226
+ end
227
+ end
228
+
229
+ def deserialize(str)
230
+ # unpack serialized message in str into this message instance
231
+ # @param str: byte array of serialized message
232
+ # @type str: str
233
+
234
+ begin
235
+ if @map == nil
236
+ @map = Nav_msgs::OccupancyGrid.new
237
+ end
238
+ end_point = 0
239
+ start = end_point
240
+ end_point += ROS::Struct::calc_size('L3')
241
+ (@map.header.seq, @map.header.stamp.secs, @map.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
242
+ start = end_point
243
+ end_point += 4
244
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
245
+ start = end_point
246
+ end_point += length
247
+ @map.header.frame_id = str[start..(end_point-1)]
248
+ start = end_point
249
+ end_point += ROS::Struct::calc_size('L2fL2d7')
250
+ (@map.info.map_load_time.secs, @map.info.map_load_time.nsecs, @map.info.resolution, @map.info.width, @map.info.height, @map.info.origin.position.x, @map.info.origin.position.y, @map.info.origin.position.z, @map.info.origin.orientation.x, @map.info.origin.orientation.y, @map.info.origin.orientation.z, @map.info.origin.orientation.w,) = @@struct_L2fL2d7.unpack(str[start..(end_point-1)])
251
+ start = end_point
252
+ end_point += 4
253
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
254
+ pattern = "c#{length}"
255
+ start = end_point
256
+ end_point += ROS::Struct::calc_size("#{pattern}")
257
+ @map.data = str[start..(end_point-1)].unpack(pattern)
258
+ return self
259
+ rescue => exception
260
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
261
+ end
262
+ end
263
+ end # end of class
264
+ end # end of module
265
+ module Nav_msgs
266
+ class GetMap
267
+ def self.type
268
+ 'nav_msgs/GetMap'
269
+ end
270
+ def self.md5sum
271
+ '6cdd0a18e0aff5b0a3ca2326a89b54ff'
272
+ end
273
+ def self.request_class
274
+ GetMapRequest
275
+ end
276
+ def self.response_class
277
+ GetMapResponse
278
+ end
279
+ end
280
+ end