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,318 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from Marker.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "ros/duration"
|
|
5
|
+
require "std_msgs/Header"
|
|
6
|
+
require "geometry_msgs/Point"
|
|
7
|
+
require "std_msgs/ColorRGBA"
|
|
8
|
+
require "geometry_msgs/Quaternion"
|
|
9
|
+
require "geometry_msgs/Vector3"
|
|
10
|
+
require "geometry_msgs/Pose"
|
|
11
|
+
|
|
12
|
+
module Visualization_msgs
|
|
13
|
+
|
|
14
|
+
class Marker <::ROS::Message
|
|
15
|
+
def self.md5sum
|
|
16
|
+
"18326976df9d29249efc939e00342cde"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def self.type
|
|
20
|
+
"visualization_msgs/Marker"
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def has_header?
|
|
24
|
+
true
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def message_definition
|
|
28
|
+
"# See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz
|
|
29
|
+
|
|
30
|
+
uint8 ARROW=0
|
|
31
|
+
uint8 CUBE=1
|
|
32
|
+
uint8 SPHERE=2
|
|
33
|
+
uint8 CYLINDER=3
|
|
34
|
+
uint8 LINE_STRIP=4
|
|
35
|
+
uint8 LINE_LIST=5
|
|
36
|
+
uint8 CUBE_LIST=6
|
|
37
|
+
uint8 SPHERE_LIST=7
|
|
38
|
+
uint8 POINTS=8
|
|
39
|
+
uint8 TEXT_VIEW_FACING=9
|
|
40
|
+
uint8 MESH_RESOURCE=10
|
|
41
|
+
uint8 TRIANGLE_LIST=11
|
|
42
|
+
|
|
43
|
+
uint8 ADD=0
|
|
44
|
+
uint8 MODIFY=0
|
|
45
|
+
uint8 DELETE=2
|
|
46
|
+
|
|
47
|
+
Header header # header for time/frame information
|
|
48
|
+
string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object
|
|
49
|
+
int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later
|
|
50
|
+
int32 type # Type of object
|
|
51
|
+
int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object
|
|
52
|
+
geometry_msgs/Pose pose # Pose of the object
|
|
53
|
+
geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)
|
|
54
|
+
std_msgs/ColorRGBA color # Color [0.0-1.0]
|
|
55
|
+
duration lifetime # How long the object should last before being automatically deleted. 0 means forever
|
|
56
|
+
bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep
|
|
57
|
+
|
|
58
|
+
#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
|
|
59
|
+
geometry_msgs/Point[] points
|
|
60
|
+
#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
|
|
61
|
+
#number of colors must either be 0 or equal to the number of points
|
|
62
|
+
#NOTE: alpha is not yet used
|
|
63
|
+
std_msgs/ColorRGBA[] colors
|
|
64
|
+
|
|
65
|
+
# NOTE: only used for text markers
|
|
66
|
+
string text
|
|
67
|
+
|
|
68
|
+
# NOTE: only used for MESH_RESOURCE markers
|
|
69
|
+
string mesh_resource
|
|
70
|
+
bool mesh_use_embedded_materials
|
|
71
|
+
|
|
72
|
+
================================================================================
|
|
73
|
+
MSG: std_msgs/Header
|
|
74
|
+
# Standard metadata for higher-level stamped data types.
|
|
75
|
+
# This is generally used to communicate timestamped data
|
|
76
|
+
# in a particular coordinate frame.
|
|
77
|
+
#
|
|
78
|
+
# sequence ID: consecutively increasing ID
|
|
79
|
+
uint32 seq
|
|
80
|
+
#Two-integer timestamp that is expressed as:
|
|
81
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
82
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
83
|
+
# time-handling sugar is provided by the client library
|
|
84
|
+
time stamp
|
|
85
|
+
#Frame this data is associated with
|
|
86
|
+
# 0: no frame
|
|
87
|
+
# 1: global frame
|
|
88
|
+
string frame_id
|
|
89
|
+
|
|
90
|
+
================================================================================
|
|
91
|
+
MSG: geometry_msgs/Pose
|
|
92
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
93
|
+
Point position
|
|
94
|
+
Quaternion orientation
|
|
95
|
+
|
|
96
|
+
================================================================================
|
|
97
|
+
MSG: geometry_msgs/Point
|
|
98
|
+
# This contains the position of a point in free space
|
|
99
|
+
float64 x
|
|
100
|
+
float64 y
|
|
101
|
+
float64 z
|
|
102
|
+
|
|
103
|
+
================================================================================
|
|
104
|
+
MSG: geometry_msgs/Quaternion
|
|
105
|
+
# This represents an orientation in free space in quaternion form.
|
|
106
|
+
|
|
107
|
+
float64 x
|
|
108
|
+
float64 y
|
|
109
|
+
float64 z
|
|
110
|
+
float64 w
|
|
111
|
+
|
|
112
|
+
================================================================================
|
|
113
|
+
MSG: geometry_msgs/Vector3
|
|
114
|
+
# This represents a vector in free space.
|
|
115
|
+
|
|
116
|
+
float64 x
|
|
117
|
+
float64 y
|
|
118
|
+
float64 z
|
|
119
|
+
================================================================================
|
|
120
|
+
MSG: std_msgs/ColorRGBA
|
|
121
|
+
float32 r
|
|
122
|
+
float32 g
|
|
123
|
+
float32 b
|
|
124
|
+
float32 a
|
|
125
|
+
|
|
126
|
+
"
|
|
127
|
+
end
|
|
128
|
+
# Pseudo-constants
|
|
129
|
+
ARROW = 0
|
|
130
|
+
CUBE = 1
|
|
131
|
+
SPHERE = 2
|
|
132
|
+
CYLINDER = 3
|
|
133
|
+
LINE_STRIP = 4
|
|
134
|
+
LINE_LIST = 5
|
|
135
|
+
CUBE_LIST = 6
|
|
136
|
+
SPHERE_LIST = 7
|
|
137
|
+
POINTS = 8
|
|
138
|
+
TEXT_VIEW_FACING = 9
|
|
139
|
+
MESH_RESOURCE = 10
|
|
140
|
+
TRIANGLE_LIST = 11
|
|
141
|
+
ADD = 0
|
|
142
|
+
MODIFY = 0
|
|
143
|
+
DELETE = 2
|
|
144
|
+
|
|
145
|
+
attr_accessor :header, :ns, :id, :type, :action, :pose, :scale, :color, :lifetime, :frame_locked, :points, :colors, :text, :mesh_resource, :mesh_use_embedded_materials
|
|
146
|
+
|
|
147
|
+
@@struct_f4 = ::ROS::Struct.new("f4")
|
|
148
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
149
|
+
@@struct_C = ::ROS::Struct.new("C")
|
|
150
|
+
@@struct_l3d10f4l2C = ::ROS::Struct.new("l3d10f4l2C")
|
|
151
|
+
@@struct_d3 = ::ROS::Struct.new("d3")
|
|
152
|
+
|
|
153
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
154
|
+
@@slot_types = ['Header','string','int32','int32','int32','geometry_msgs/Pose','geometry_msgs/Vector3','std_msgs/ColorRGBA','duration','bool','geometry_msgs/Point[]','std_msgs/ColorRGBA[]','string','string','bool']
|
|
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
|
+
# header,ns,id,type,action,pose,scale,color,lifetime,frame_locked,points,colors,text,mesh_resource,mesh_use_embedded_materials
|
|
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
|
+
@header = Std_msgs::Header.new
|
|
172
|
+
@ns = ''
|
|
173
|
+
@id = 0
|
|
174
|
+
@type = 0
|
|
175
|
+
@action = 0
|
|
176
|
+
@pose = Geometry_msgs::Pose.new
|
|
177
|
+
@scale = Geometry_msgs::Vector3.new
|
|
178
|
+
@color = Std_msgs::ColorRGBA.new
|
|
179
|
+
@lifetime = ROS::Duration.new
|
|
180
|
+
@frame_locked = false
|
|
181
|
+
@points = []
|
|
182
|
+
@colors = []
|
|
183
|
+
@text = ''
|
|
184
|
+
@mesh_resource = ''
|
|
185
|
+
@mesh_use_embedded_materials = false
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
def _get_types
|
|
189
|
+
# internal API method
|
|
190
|
+
return @slot_types
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
def serialize(buff)
|
|
194
|
+
# serialize message into buffer
|
|
195
|
+
# @param buff: buffer
|
|
196
|
+
# @type buff: StringIO
|
|
197
|
+
begin
|
|
198
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
199
|
+
_x = @header.frame_id
|
|
200
|
+
length = _x.length
|
|
201
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
202
|
+
_x = @ns
|
|
203
|
+
length = _x.length
|
|
204
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
205
|
+
buff.write(@@struct_l3d10f4l2C.pack(@id, @type, @action, @pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w, @scale.x, @scale.y, @scale.z, @color.r, @color.g, @color.b, @color.a, @lifetime.secs, @lifetime.nsecs, @frame_locked))
|
|
206
|
+
length = @points.length
|
|
207
|
+
buff.write(@@struct_L.pack(length))
|
|
208
|
+
for val1 in @points
|
|
209
|
+
_x = val1
|
|
210
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
211
|
+
end
|
|
212
|
+
length = @colors.length
|
|
213
|
+
buff.write(@@struct_L.pack(length))
|
|
214
|
+
for val1 in @colors
|
|
215
|
+
_x = val1
|
|
216
|
+
buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
|
|
217
|
+
end
|
|
218
|
+
_x = @text
|
|
219
|
+
length = _x.length
|
|
220
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
221
|
+
_x = @mesh_resource
|
|
222
|
+
length = _x.length
|
|
223
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
224
|
+
buff.write(@@struct_C.pack(@mesh_use_embedded_materials))
|
|
225
|
+
rescue => exception
|
|
226
|
+
raise "some erro in serialize: #{exception}"
|
|
227
|
+
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
def deserialize(str)
|
|
232
|
+
# unpack serialized message in str into this message instance
|
|
233
|
+
# @param str: byte array of serialized message
|
|
234
|
+
# @type str: str
|
|
235
|
+
|
|
236
|
+
begin
|
|
237
|
+
if @header == nil
|
|
238
|
+
@header = Std_msgs::Header.new
|
|
239
|
+
end
|
|
240
|
+
if @pose == nil
|
|
241
|
+
@pose = Geometry_msgs::Pose.new
|
|
242
|
+
end
|
|
243
|
+
if @scale == nil
|
|
244
|
+
@scale = Geometry_msgs::Vector3.new
|
|
245
|
+
end
|
|
246
|
+
if @color == nil
|
|
247
|
+
@color = Std_msgs::ColorRGBA.new
|
|
248
|
+
end
|
|
249
|
+
if @lifetime == nil
|
|
250
|
+
@lifetime = ROS::Duration.new
|
|
251
|
+
end
|
|
252
|
+
end_point = 0
|
|
253
|
+
start = end_point
|
|
254
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
255
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
256
|
+
start = end_point
|
|
257
|
+
end_point += 4
|
|
258
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
259
|
+
start = end_point
|
|
260
|
+
end_point += length
|
|
261
|
+
@header.frame_id = 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
|
+
@ns = str[start..(end_point-1)]
|
|
268
|
+
start = end_point
|
|
269
|
+
end_point += ROS::Struct::calc_size('l3d10f4l2C')
|
|
270
|
+
(@id, @type, @action, @pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w, @scale.x, @scale.y, @scale.z, @color.r, @color.g, @color.b, @color.a, @lifetime.secs, @lifetime.nsecs, @frame_locked,) = @@struct_l3d10f4l2C.unpack(str[start..(end_point-1)])
|
|
271
|
+
@frame_locked = bool(@frame_locked)
|
|
272
|
+
start = end_point
|
|
273
|
+
end_point += 4
|
|
274
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
275
|
+
@points = []
|
|
276
|
+
length.times do
|
|
277
|
+
val1 = Geometry_msgs::Point.new
|
|
278
|
+
_x = val1
|
|
279
|
+
start = end_point
|
|
280
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
281
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
282
|
+
@points.push(val1)
|
|
283
|
+
end
|
|
284
|
+
start = end_point
|
|
285
|
+
end_point += 4
|
|
286
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
287
|
+
@colors = []
|
|
288
|
+
length.times do
|
|
289
|
+
val1 = Std_msgs::ColorRGBA.new
|
|
290
|
+
_x = val1
|
|
291
|
+
start = end_point
|
|
292
|
+
end_point += ROS::Struct::calc_size('f4')
|
|
293
|
+
(_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
|
|
294
|
+
@colors.push(val1)
|
|
295
|
+
end
|
|
296
|
+
start = end_point
|
|
297
|
+
end_point += 4
|
|
298
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
299
|
+
start = end_point
|
|
300
|
+
end_point += length
|
|
301
|
+
@text = str[start..(end_point-1)]
|
|
302
|
+
start = end_point
|
|
303
|
+
end_point += 4
|
|
304
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
305
|
+
start = end_point
|
|
306
|
+
end_point += length
|
|
307
|
+
@mesh_resource = str[start..(end_point-1)]
|
|
308
|
+
start = end_point
|
|
309
|
+
end_point += ROS::Struct::calc_size('C')
|
|
310
|
+
(@mesh_use_embedded_materials,) = @@struct_C.unpack(str[start..(end_point-1)])
|
|
311
|
+
@mesh_use_embedded_materials = bool(@mesh_use_embedded_materials)
|
|
312
|
+
return self
|
|
313
|
+
rescue => exception
|
|
314
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
end # end of class
|
|
318
|
+
end # end of module
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from MarkerArray.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "visualization_msgs/Marker"
|
|
5
|
+
require "ros/duration"
|
|
6
|
+
require "std_msgs/Header"
|
|
7
|
+
require "geometry_msgs/Point"
|
|
8
|
+
require "std_msgs/ColorRGBA"
|
|
9
|
+
require "geometry_msgs/Quaternion"
|
|
10
|
+
require "geometry_msgs/Vector3"
|
|
11
|
+
require "geometry_msgs/Pose"
|
|
12
|
+
|
|
13
|
+
module Visualization_msgs
|
|
14
|
+
|
|
15
|
+
class MarkerArray <::ROS::Message
|
|
16
|
+
def self.md5sum
|
|
17
|
+
"90da67007c26525f655c1c269094e39f"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.type
|
|
21
|
+
"visualization_msgs/MarkerArray"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def has_header?
|
|
25
|
+
false
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def message_definition
|
|
29
|
+
"Marker[] markers
|
|
30
|
+
|
|
31
|
+
================================================================================
|
|
32
|
+
MSG: visualization_msgs/Marker
|
|
33
|
+
# See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz
|
|
34
|
+
|
|
35
|
+
uint8 ARROW=0
|
|
36
|
+
uint8 CUBE=1
|
|
37
|
+
uint8 SPHERE=2
|
|
38
|
+
uint8 CYLINDER=3
|
|
39
|
+
uint8 LINE_STRIP=4
|
|
40
|
+
uint8 LINE_LIST=5
|
|
41
|
+
uint8 CUBE_LIST=6
|
|
42
|
+
uint8 SPHERE_LIST=7
|
|
43
|
+
uint8 POINTS=8
|
|
44
|
+
uint8 TEXT_VIEW_FACING=9
|
|
45
|
+
uint8 MESH_RESOURCE=10
|
|
46
|
+
uint8 TRIANGLE_LIST=11
|
|
47
|
+
|
|
48
|
+
uint8 ADD=0
|
|
49
|
+
uint8 MODIFY=0
|
|
50
|
+
uint8 DELETE=2
|
|
51
|
+
|
|
52
|
+
Header header # header for time/frame information
|
|
53
|
+
string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object
|
|
54
|
+
int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later
|
|
55
|
+
int32 type # Type of object
|
|
56
|
+
int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object
|
|
57
|
+
geometry_msgs/Pose pose # Pose of the object
|
|
58
|
+
geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)
|
|
59
|
+
std_msgs/ColorRGBA color # Color [0.0-1.0]
|
|
60
|
+
duration lifetime # How long the object should last before being automatically deleted. 0 means forever
|
|
61
|
+
bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep
|
|
62
|
+
|
|
63
|
+
#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
|
|
64
|
+
geometry_msgs/Point[] points
|
|
65
|
+
#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
|
|
66
|
+
#number of colors must either be 0 or equal to the number of points
|
|
67
|
+
#NOTE: alpha is not yet used
|
|
68
|
+
std_msgs/ColorRGBA[] colors
|
|
69
|
+
|
|
70
|
+
# NOTE: only used for text markers
|
|
71
|
+
string text
|
|
72
|
+
|
|
73
|
+
# NOTE: only used for MESH_RESOURCE markers
|
|
74
|
+
string mesh_resource
|
|
75
|
+
bool mesh_use_embedded_materials
|
|
76
|
+
|
|
77
|
+
================================================================================
|
|
78
|
+
MSG: std_msgs/Header
|
|
79
|
+
# Standard metadata for higher-level stamped data types.
|
|
80
|
+
# This is generally used to communicate timestamped data
|
|
81
|
+
# in a particular coordinate frame.
|
|
82
|
+
#
|
|
83
|
+
# sequence ID: consecutively increasing ID
|
|
84
|
+
uint32 seq
|
|
85
|
+
#Two-integer timestamp that is expressed as:
|
|
86
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
87
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
88
|
+
# time-handling sugar is provided by the client library
|
|
89
|
+
time stamp
|
|
90
|
+
#Frame this data is associated with
|
|
91
|
+
# 0: no frame
|
|
92
|
+
# 1: global frame
|
|
93
|
+
string frame_id
|
|
94
|
+
|
|
95
|
+
================================================================================
|
|
96
|
+
MSG: geometry_msgs/Pose
|
|
97
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
98
|
+
Point position
|
|
99
|
+
Quaternion orientation
|
|
100
|
+
|
|
101
|
+
================================================================================
|
|
102
|
+
MSG: geometry_msgs/Point
|
|
103
|
+
# This contains the position of a point in free space
|
|
104
|
+
float64 x
|
|
105
|
+
float64 y
|
|
106
|
+
float64 z
|
|
107
|
+
|
|
108
|
+
================================================================================
|
|
109
|
+
MSG: geometry_msgs/Quaternion
|
|
110
|
+
# This represents an orientation in free space in quaternion form.
|
|
111
|
+
|
|
112
|
+
float64 x
|
|
113
|
+
float64 y
|
|
114
|
+
float64 z
|
|
115
|
+
float64 w
|
|
116
|
+
|
|
117
|
+
================================================================================
|
|
118
|
+
MSG: geometry_msgs/Vector3
|
|
119
|
+
# This represents a vector in free space.
|
|
120
|
+
|
|
121
|
+
float64 x
|
|
122
|
+
float64 y
|
|
123
|
+
float64 z
|
|
124
|
+
================================================================================
|
|
125
|
+
MSG: std_msgs/ColorRGBA
|
|
126
|
+
float32 r
|
|
127
|
+
float32 g
|
|
128
|
+
float32 b
|
|
129
|
+
float32 a
|
|
130
|
+
|
|
131
|
+
"
|
|
132
|
+
end
|
|
133
|
+
attr_accessor :markers
|
|
134
|
+
|
|
135
|
+
@@struct_C = ::ROS::Struct.new("C")
|
|
136
|
+
@@struct_l2 = ::ROS::Struct.new("l2")
|
|
137
|
+
@@struct_l3 = ::ROS::Struct.new("l3")
|
|
138
|
+
@@struct_f4 = ::ROS::Struct.new("f4")
|
|
139
|
+
@@struct_d4 = ::ROS::Struct.new("d4")
|
|
140
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
|
141
|
+
@@struct_d3 = ::ROS::Struct.new("d3")
|
|
142
|
+
|
|
143
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
144
|
+
@@slot_types = ['visualization_msgs/Marker[]']
|
|
145
|
+
|
|
146
|
+
def initialize
|
|
147
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
148
|
+
# set to None will be assigned a default value. The recommend
|
|
149
|
+
# use is keyword arguments as this is more robust to future message
|
|
150
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
151
|
+
#
|
|
152
|
+
# The available fields are:
|
|
153
|
+
# markers
|
|
154
|
+
#
|
|
155
|
+
# @param args: complete set of field values, in .msg order
|
|
156
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
157
|
+
# to set specific fields.
|
|
158
|
+
#
|
|
159
|
+
|
|
160
|
+
# message fields cannot be None, assign default values for those that are
|
|
161
|
+
@markers = []
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
def _get_types
|
|
165
|
+
# internal API method
|
|
166
|
+
return @slot_types
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
def serialize(buff)
|
|
170
|
+
# serialize message into buffer
|
|
171
|
+
# @param buff: buffer
|
|
172
|
+
# @type buff: StringIO
|
|
173
|
+
begin
|
|
174
|
+
length = @markers.length
|
|
175
|
+
buff.write(@@struct_L.pack(length))
|
|
176
|
+
for val1 in @markers
|
|
177
|
+
_v5 = val1.header
|
|
178
|
+
buff.write(@@struct_L.pack(_v5.seq))
|
|
179
|
+
_v6 = _v5.stamp
|
|
180
|
+
_x = _v6
|
|
181
|
+
buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
|
|
182
|
+
_x = _v5.frame_id
|
|
183
|
+
length = _x.length
|
|
184
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
185
|
+
_x = val1.ns
|
|
186
|
+
length = _x.length
|
|
187
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
188
|
+
_x = val1
|
|
189
|
+
buff.write(@@struct_l3.pack(_x.id, _x.type, _x.action))
|
|
190
|
+
_v7 = val1.pose
|
|
191
|
+
_v8 = _v7.position
|
|
192
|
+
_x = _v8
|
|
193
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
194
|
+
_v9 = _v7.orientation
|
|
195
|
+
_x = _v9
|
|
196
|
+
buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
|
|
197
|
+
_v10 = val1.scale
|
|
198
|
+
_x = _v10
|
|
199
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
200
|
+
_v11 = val1.color
|
|
201
|
+
_x = _v11
|
|
202
|
+
buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
|
|
203
|
+
_v12 = val1.lifetime
|
|
204
|
+
_x = _v12
|
|
205
|
+
buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
|
|
206
|
+
buff.write(@@struct_C.pack(val1.frame_locked))
|
|
207
|
+
length = val1.points.length
|
|
208
|
+
buff.write(@@struct_L.pack(length))
|
|
209
|
+
for val2 in val1.points
|
|
210
|
+
_x = val2
|
|
211
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
212
|
+
end
|
|
213
|
+
length = val1.colors.length
|
|
214
|
+
buff.write(@@struct_L.pack(length))
|
|
215
|
+
for val2 in val1.colors
|
|
216
|
+
_x = val2
|
|
217
|
+
buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
|
|
218
|
+
end
|
|
219
|
+
_x = val1.text
|
|
220
|
+
length = _x.length
|
|
221
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
222
|
+
_x = val1.mesh_resource
|
|
223
|
+
length = _x.length
|
|
224
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
225
|
+
buff.write(@@struct_C.pack(val1.mesh_use_embedded_materials))
|
|
226
|
+
end
|
|
227
|
+
rescue => exception
|
|
228
|
+
raise "some erro in serialize: #{exception}"
|
|
229
|
+
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
def deserialize(str)
|
|
234
|
+
# unpack serialized message in str into this message instance
|
|
235
|
+
# @param str: byte array of serialized message
|
|
236
|
+
# @type str: str
|
|
237
|
+
|
|
238
|
+
begin
|
|
239
|
+
end_point = 0
|
|
240
|
+
start = end_point
|
|
241
|
+
end_point += 4
|
|
242
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
243
|
+
@markers = []
|
|
244
|
+
length.times do
|
|
245
|
+
val1 = Visualization_msgs::Marker.new
|
|
246
|
+
_v13 = val1.header
|
|
247
|
+
start = end_point
|
|
248
|
+
end_point += ROS::Struct::calc_size('L')
|
|
249
|
+
(_v13.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
250
|
+
_v14 = _v13.stamp
|
|
251
|
+
_x = _v14
|
|
252
|
+
start = end_point
|
|
253
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
254
|
+
(_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
255
|
+
start = end_point
|
|
256
|
+
end_point += 4
|
|
257
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
258
|
+
start = end_point
|
|
259
|
+
end_point += length
|
|
260
|
+
_v13.frame_id = str[start..(end_point-1)]
|
|
261
|
+
start = end_point
|
|
262
|
+
end_point += 4
|
|
263
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
264
|
+
start = end_point
|
|
265
|
+
end_point += length
|
|
266
|
+
val1.ns = str[start..(end_point-1)]
|
|
267
|
+
_x = val1
|
|
268
|
+
start = end_point
|
|
269
|
+
end_point += ROS::Struct::calc_size('l3')
|
|
270
|
+
(_x.id, _x.type, _x.action,) = @@struct_l3.unpack(str[start..(end_point-1)])
|
|
271
|
+
_v15 = val1.pose
|
|
272
|
+
_v16 = _v15.position
|
|
273
|
+
_x = _v16
|
|
274
|
+
start = end_point
|
|
275
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
276
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
277
|
+
_v17 = _v15.orientation
|
|
278
|
+
_x = _v17
|
|
279
|
+
start = end_point
|
|
280
|
+
end_point += ROS::Struct::calc_size('d4')
|
|
281
|
+
(_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
|
|
282
|
+
_v18 = val1.scale
|
|
283
|
+
_x = _v18
|
|
284
|
+
start = end_point
|
|
285
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
286
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
287
|
+
_v19 = val1.color
|
|
288
|
+
_x = _v19
|
|
289
|
+
start = end_point
|
|
290
|
+
end_point += ROS::Struct::calc_size('f4')
|
|
291
|
+
(_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
|
|
292
|
+
_v20 = val1.lifetime
|
|
293
|
+
_x = _v20
|
|
294
|
+
start = end_point
|
|
295
|
+
end_point += ROS::Struct::calc_size('l2')
|
|
296
|
+
(_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
|
|
297
|
+
start = end_point
|
|
298
|
+
end_point += ROS::Struct::calc_size('C')
|
|
299
|
+
(val1.frame_locked,) = @@struct_C.unpack(str[start..(end_point-1)])
|
|
300
|
+
val1.frame_locked = bool(val1.frame_locked)
|
|
301
|
+
start = end_point
|
|
302
|
+
end_point += 4
|
|
303
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
304
|
+
val1.points = []
|
|
305
|
+
length.times do
|
|
306
|
+
val2 = Geometry_msgs::Point.new
|
|
307
|
+
_x = val2
|
|
308
|
+
start = end_point
|
|
309
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
310
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
311
|
+
val1.points.push(val2)
|
|
312
|
+
end
|
|
313
|
+
start = end_point
|
|
314
|
+
end_point += 4
|
|
315
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
316
|
+
val1.colors = []
|
|
317
|
+
length.times do
|
|
318
|
+
val2 = Std_msgs::ColorRGBA.new
|
|
319
|
+
_x = val2
|
|
320
|
+
start = end_point
|
|
321
|
+
end_point += ROS::Struct::calc_size('f4')
|
|
322
|
+
(_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
|
|
323
|
+
val1.colors.push(val2)
|
|
324
|
+
end
|
|
325
|
+
start = end_point
|
|
326
|
+
end_point += 4
|
|
327
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
328
|
+
start = end_point
|
|
329
|
+
end_point += length
|
|
330
|
+
val1.text = str[start..(end_point-1)]
|
|
331
|
+
start = end_point
|
|
332
|
+
end_point += 4
|
|
333
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
334
|
+
start = end_point
|
|
335
|
+
end_point += length
|
|
336
|
+
val1.mesh_resource = str[start..(end_point-1)]
|
|
337
|
+
start = end_point
|
|
338
|
+
end_point += ROS::Struct::calc_size('C')
|
|
339
|
+
(val1.mesh_use_embedded_materials,) = @@struct_C.unpack(str[start..(end_point-1)])
|
|
340
|
+
val1.mesh_use_embedded_materials = bool(val1.mesh_use_embedded_materials)
|
|
341
|
+
@markers.push(val1)
|
|
342
|
+
end
|
|
343
|
+
return self
|
|
344
|
+
rescue => exception
|
|
345
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
end # end of class
|
|
349
|
+
end # end of module
|