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,469 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from InteractiveMarkerControl.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 InteractiveMarkerControl <::ROS::Message
|
|
16
|
+
def self.md5sum
|
|
17
|
+
"f69c49e4eb251b5b0a89651eebf5a277"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.type
|
|
21
|
+
"visualization_msgs/InteractiveMarkerControl"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def has_header?
|
|
25
|
+
false
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def message_definition
|
|
29
|
+
"# Represents a control that is to be displayed together with an interactive marker
|
|
30
|
+
|
|
31
|
+
# Identifying string for this control.
|
|
32
|
+
# You need to assign a unique value to this to receive feedback from the GUI
|
|
33
|
+
# on what actions the user performs on this control (e.g. a button click).
|
|
34
|
+
string name
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# Defines the local coordinate frame (relative to the pose of the parent
|
|
38
|
+
# interactive marker) in which is being rotated and translated.
|
|
39
|
+
# Default: Identity
|
|
40
|
+
geometry_msgs/Quaternion orientation
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# Orientation mode: controls how orientation changes.
|
|
44
|
+
# INHERIT: Follow orientation of interactive marker
|
|
45
|
+
# FIXED: Keep orientation fixed at initial state
|
|
46
|
+
# VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).
|
|
47
|
+
uint8 INHERIT = 0
|
|
48
|
+
uint8 FIXED = 1
|
|
49
|
+
uint8 VIEW_FACING = 2
|
|
50
|
+
|
|
51
|
+
uint8 orientation_mode
|
|
52
|
+
|
|
53
|
+
# Interaction mode for this control
|
|
54
|
+
#
|
|
55
|
+
# NONE: This control is only meant for visualization; no context menu.
|
|
56
|
+
# MENU: Like NONE, but right-click menu is active.
|
|
57
|
+
# BUTTON: Element can be left-clicked.
|
|
58
|
+
# MOVE_AXIS: Translate along local x-axis.
|
|
59
|
+
# MOVE_PLANE: Translate in local y-z plane.
|
|
60
|
+
# ROTATE_AXIS: Rotate around local x-axis.
|
|
61
|
+
# MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.
|
|
62
|
+
uint8 NONE = 0
|
|
63
|
+
uint8 MENU = 1
|
|
64
|
+
uint8 BUTTON = 2
|
|
65
|
+
uint8 MOVE_AXIS = 3
|
|
66
|
+
uint8 MOVE_PLANE = 4
|
|
67
|
+
uint8 ROTATE_AXIS = 5
|
|
68
|
+
uint8 MOVE_ROTATE = 6
|
|
69
|
+
|
|
70
|
+
uint8 interaction_mode
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# If true, the contained markers will also be visible
|
|
74
|
+
# when the gui is not in interactive mode.
|
|
75
|
+
bool always_visible
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# Markers to be displayed as custom visual representation.
|
|
79
|
+
# Leave this empty to use the default control handles.
|
|
80
|
+
#
|
|
81
|
+
# Note:
|
|
82
|
+
# - The markers can be defined in an arbitrary coordinate frame,
|
|
83
|
+
# but will be transformed into the local frame of the interactive marker.
|
|
84
|
+
# - If the header of a marker is empty, its pose will be interpreted as
|
|
85
|
+
# relative to the pose of the parent interactive marker.
|
|
86
|
+
Marker[] markers
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
# In VIEW_FACING mode, set this to true if you don't want the markers
|
|
90
|
+
# to be aligned with the camera view point. The markers will show up
|
|
91
|
+
# as in INHERIT mode.
|
|
92
|
+
bool independent_marker_orientation
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
# Short description (< 40 characters) of what this control does,
|
|
96
|
+
# e.g. \"Move the robot\".
|
|
97
|
+
# Default: A generic description based on the interaction mode
|
|
98
|
+
string description
|
|
99
|
+
|
|
100
|
+
================================================================================
|
|
101
|
+
MSG: geometry_msgs/Quaternion
|
|
102
|
+
# This represents an orientation in free space in quaternion form.
|
|
103
|
+
|
|
104
|
+
float64 x
|
|
105
|
+
float64 y
|
|
106
|
+
float64 z
|
|
107
|
+
float64 w
|
|
108
|
+
|
|
109
|
+
================================================================================
|
|
110
|
+
MSG: visualization_msgs/Marker
|
|
111
|
+
# 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
|
|
112
|
+
|
|
113
|
+
uint8 ARROW=0
|
|
114
|
+
uint8 CUBE=1
|
|
115
|
+
uint8 SPHERE=2
|
|
116
|
+
uint8 CYLINDER=3
|
|
117
|
+
uint8 LINE_STRIP=4
|
|
118
|
+
uint8 LINE_LIST=5
|
|
119
|
+
uint8 CUBE_LIST=6
|
|
120
|
+
uint8 SPHERE_LIST=7
|
|
121
|
+
uint8 POINTS=8
|
|
122
|
+
uint8 TEXT_VIEW_FACING=9
|
|
123
|
+
uint8 MESH_RESOURCE=10
|
|
124
|
+
uint8 TRIANGLE_LIST=11
|
|
125
|
+
|
|
126
|
+
uint8 ADD=0
|
|
127
|
+
uint8 MODIFY=0
|
|
128
|
+
uint8 DELETE=2
|
|
129
|
+
|
|
130
|
+
Header header # header for time/frame information
|
|
131
|
+
string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object
|
|
132
|
+
int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later
|
|
133
|
+
int32 type # Type of object
|
|
134
|
+
int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object
|
|
135
|
+
geometry_msgs/Pose pose # Pose of the object
|
|
136
|
+
geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)
|
|
137
|
+
std_msgs/ColorRGBA color # Color [0.0-1.0]
|
|
138
|
+
duration lifetime # How long the object should last before being automatically deleted. 0 means forever
|
|
139
|
+
bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep
|
|
140
|
+
|
|
141
|
+
#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
|
|
142
|
+
geometry_msgs/Point[] points
|
|
143
|
+
#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
|
|
144
|
+
#number of colors must either be 0 or equal to the number of points
|
|
145
|
+
#NOTE: alpha is not yet used
|
|
146
|
+
std_msgs/ColorRGBA[] colors
|
|
147
|
+
|
|
148
|
+
# NOTE: only used for text markers
|
|
149
|
+
string text
|
|
150
|
+
|
|
151
|
+
# NOTE: only used for MESH_RESOURCE markers
|
|
152
|
+
string mesh_resource
|
|
153
|
+
bool mesh_use_embedded_materials
|
|
154
|
+
|
|
155
|
+
================================================================================
|
|
156
|
+
MSG: std_msgs/Header
|
|
157
|
+
# Standard metadata for higher-level stamped data types.
|
|
158
|
+
# This is generally used to communicate timestamped data
|
|
159
|
+
# in a particular coordinate frame.
|
|
160
|
+
#
|
|
161
|
+
# sequence ID: consecutively increasing ID
|
|
162
|
+
uint32 seq
|
|
163
|
+
#Two-integer timestamp that is expressed as:
|
|
164
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
165
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
166
|
+
# time-handling sugar is provided by the client library
|
|
167
|
+
time stamp
|
|
168
|
+
#Frame this data is associated with
|
|
169
|
+
# 0: no frame
|
|
170
|
+
# 1: global frame
|
|
171
|
+
string frame_id
|
|
172
|
+
|
|
173
|
+
================================================================================
|
|
174
|
+
MSG: geometry_msgs/Pose
|
|
175
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
176
|
+
Point position
|
|
177
|
+
Quaternion orientation
|
|
178
|
+
|
|
179
|
+
================================================================================
|
|
180
|
+
MSG: geometry_msgs/Point
|
|
181
|
+
# This contains the position of a point in free space
|
|
182
|
+
float64 x
|
|
183
|
+
float64 y
|
|
184
|
+
float64 z
|
|
185
|
+
|
|
186
|
+
================================================================================
|
|
187
|
+
MSG: geometry_msgs/Vector3
|
|
188
|
+
# This represents a vector in free space.
|
|
189
|
+
|
|
190
|
+
float64 x
|
|
191
|
+
float64 y
|
|
192
|
+
float64 z
|
|
193
|
+
================================================================================
|
|
194
|
+
MSG: std_msgs/ColorRGBA
|
|
195
|
+
float32 r
|
|
196
|
+
float32 g
|
|
197
|
+
float32 b
|
|
198
|
+
float32 a
|
|
199
|
+
|
|
200
|
+
"
|
|
201
|
+
end
|
|
202
|
+
# Pseudo-constants
|
|
203
|
+
INHERIT = 0
|
|
204
|
+
FIXED = 1
|
|
205
|
+
VIEW_FACING = 2
|
|
206
|
+
NONE = 0
|
|
207
|
+
MENU = 1
|
|
208
|
+
BUTTON = 2
|
|
209
|
+
MOVE_AXIS = 3
|
|
210
|
+
MOVE_PLANE = 4
|
|
211
|
+
ROTATE_AXIS = 5
|
|
212
|
+
MOVE_ROTATE = 6
|
|
213
|
+
|
|
214
|
+
attr_accessor :name, :orientation, :orientation_mode, :interaction_mode, :always_visible, :markers, :independent_marker_orientation, :description
|
|
215
|
+
|
|
216
|
+
@@struct_C = ::ROS::Struct.new("C")
|
|
217
|
+
@@struct_l2 = ::ROS::Struct.new("l2")
|
|
218
|
+
@@struct_l3 = ::ROS::Struct.new("l3")
|
|
219
|
+
@@struct_d4C3 = ::ROS::Struct.new("d4C3")
|
|
220
|
+
@@struct_f4 = ::ROS::Struct.new("f4")
|
|
221
|
+
@@struct_d4 = ::ROS::Struct.new("d4")
|
|
222
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
|
223
|
+
@@struct_d3 = ::ROS::Struct.new("d3")
|
|
224
|
+
|
|
225
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
226
|
+
@@slot_types = ['string','geometry_msgs/Quaternion','uint8','uint8','bool','visualization_msgs/Marker[]','bool','string']
|
|
227
|
+
|
|
228
|
+
def initialize
|
|
229
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
230
|
+
# set to None will be assigned a default value. The recommend
|
|
231
|
+
# use is keyword arguments as this is more robust to future message
|
|
232
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
233
|
+
#
|
|
234
|
+
# The available fields are:
|
|
235
|
+
# name,orientation,orientation_mode,interaction_mode,always_visible,markers,independent_marker_orientation,description
|
|
236
|
+
#
|
|
237
|
+
# @param args: complete set of field values, in .msg order
|
|
238
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
239
|
+
# to set specific fields.
|
|
240
|
+
#
|
|
241
|
+
|
|
242
|
+
# message fields cannot be None, assign default values for those that are
|
|
243
|
+
@name = ''
|
|
244
|
+
@orientation = Geometry_msgs::Quaternion.new
|
|
245
|
+
@orientation_mode = 0
|
|
246
|
+
@interaction_mode = 0
|
|
247
|
+
@always_visible = false
|
|
248
|
+
@markers = []
|
|
249
|
+
@independent_marker_orientation = false
|
|
250
|
+
@description = ''
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
def _get_types
|
|
254
|
+
# internal API method
|
|
255
|
+
return @slot_types
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
def serialize(buff)
|
|
259
|
+
# serialize message into buffer
|
|
260
|
+
# @param buff: buffer
|
|
261
|
+
# @type buff: StringIO
|
|
262
|
+
begin
|
|
263
|
+
_x = @name
|
|
264
|
+
length = _x.length
|
|
265
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
266
|
+
buff.write(@@struct_d4C3.pack(@orientation.x, @orientation.y, @orientation.z, @orientation.w, @orientation_mode, @interaction_mode, @always_visible))
|
|
267
|
+
length = @markers.length
|
|
268
|
+
buff.write(@@struct_L.pack(length))
|
|
269
|
+
for val1 in @markers
|
|
270
|
+
_v39 = val1.header
|
|
271
|
+
buff.write(@@struct_L.pack(_v39.seq))
|
|
272
|
+
_v40 = _v39.stamp
|
|
273
|
+
_x = _v40
|
|
274
|
+
buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
|
|
275
|
+
_x = _v39.frame_id
|
|
276
|
+
length = _x.length
|
|
277
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
278
|
+
_x = val1.ns
|
|
279
|
+
length = _x.length
|
|
280
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
281
|
+
_x = val1
|
|
282
|
+
buff.write(@@struct_l3.pack(_x.id, _x.type, _x.action))
|
|
283
|
+
_v41 = val1.pose
|
|
284
|
+
_v42 = _v41.position
|
|
285
|
+
_x = _v42
|
|
286
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
287
|
+
_v43 = _v41.orientation
|
|
288
|
+
_x = _v43
|
|
289
|
+
buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
|
|
290
|
+
_v44 = val1.scale
|
|
291
|
+
_x = _v44
|
|
292
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
293
|
+
_v45 = val1.color
|
|
294
|
+
_x = _v45
|
|
295
|
+
buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
|
|
296
|
+
_v46 = val1.lifetime
|
|
297
|
+
_x = _v46
|
|
298
|
+
buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
|
|
299
|
+
buff.write(@@struct_C.pack(val1.frame_locked))
|
|
300
|
+
length = val1.points.length
|
|
301
|
+
buff.write(@@struct_L.pack(length))
|
|
302
|
+
for val2 in val1.points
|
|
303
|
+
_x = val2
|
|
304
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
305
|
+
end
|
|
306
|
+
length = val1.colors.length
|
|
307
|
+
buff.write(@@struct_L.pack(length))
|
|
308
|
+
for val2 in val1.colors
|
|
309
|
+
_x = val2
|
|
310
|
+
buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
|
|
311
|
+
end
|
|
312
|
+
_x = val1.text
|
|
313
|
+
length = _x.length
|
|
314
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
315
|
+
_x = val1.mesh_resource
|
|
316
|
+
length = _x.length
|
|
317
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
318
|
+
buff.write(@@struct_C.pack(val1.mesh_use_embedded_materials))
|
|
319
|
+
end
|
|
320
|
+
buff.write(@@struct_C.pack(@independent_marker_orientation))
|
|
321
|
+
_x = @description
|
|
322
|
+
length = _x.length
|
|
323
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
324
|
+
rescue => exception
|
|
325
|
+
raise "some erro in serialize: #{exception}"
|
|
326
|
+
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
def deserialize(str)
|
|
331
|
+
# unpack serialized message in str into this message instance
|
|
332
|
+
# @param str: byte array of serialized message
|
|
333
|
+
# @type str: str
|
|
334
|
+
|
|
335
|
+
begin
|
|
336
|
+
if @orientation == nil
|
|
337
|
+
@orientation = Geometry_msgs::Quaternion.new
|
|
338
|
+
end
|
|
339
|
+
end_point = 0
|
|
340
|
+
start = end_point
|
|
341
|
+
end_point += 4
|
|
342
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
343
|
+
start = end_point
|
|
344
|
+
end_point += length
|
|
345
|
+
@name = str[start..(end_point-1)]
|
|
346
|
+
start = end_point
|
|
347
|
+
end_point += ROS::Struct::calc_size('d4C3')
|
|
348
|
+
(@orientation.x, @orientation.y, @orientation.z, @orientation.w, @orientation_mode, @interaction_mode, @always_visible,) = @@struct_d4C3.unpack(str[start..(end_point-1)])
|
|
349
|
+
@always_visible = bool(@always_visible)
|
|
350
|
+
start = end_point
|
|
351
|
+
end_point += 4
|
|
352
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
353
|
+
@markers = []
|
|
354
|
+
length.times do
|
|
355
|
+
val1 = Visualization_msgs::Marker.new
|
|
356
|
+
_v47 = val1.header
|
|
357
|
+
start = end_point
|
|
358
|
+
end_point += ROS::Struct::calc_size('L')
|
|
359
|
+
(_v47.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
360
|
+
_v48 = _v47.stamp
|
|
361
|
+
_x = _v48
|
|
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
|
+
_v47.frame_id = str[start..(end_point-1)]
|
|
371
|
+
start = end_point
|
|
372
|
+
end_point += 4
|
|
373
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
374
|
+
start = end_point
|
|
375
|
+
end_point += length
|
|
376
|
+
val1.ns = str[start..(end_point-1)]
|
|
377
|
+
_x = val1
|
|
378
|
+
start = end_point
|
|
379
|
+
end_point += ROS::Struct::calc_size('l3')
|
|
380
|
+
(_x.id, _x.type, _x.action,) = @@struct_l3.unpack(str[start..(end_point-1)])
|
|
381
|
+
_v49 = val1.pose
|
|
382
|
+
_v50 = _v49.position
|
|
383
|
+
_x = _v50
|
|
384
|
+
start = end_point
|
|
385
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
386
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
387
|
+
_v51 = _v49.orientation
|
|
388
|
+
_x = _v51
|
|
389
|
+
start = end_point
|
|
390
|
+
end_point += ROS::Struct::calc_size('d4')
|
|
391
|
+
(_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
|
|
392
|
+
_v52 = val1.scale
|
|
393
|
+
_x = _v52
|
|
394
|
+
start = end_point
|
|
395
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
396
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
397
|
+
_v53 = val1.color
|
|
398
|
+
_x = _v53
|
|
399
|
+
start = end_point
|
|
400
|
+
end_point += ROS::Struct::calc_size('f4')
|
|
401
|
+
(_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
|
|
402
|
+
_v54 = val1.lifetime
|
|
403
|
+
_x = _v54
|
|
404
|
+
start = end_point
|
|
405
|
+
end_point += ROS::Struct::calc_size('l2')
|
|
406
|
+
(_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
|
|
407
|
+
start = end_point
|
|
408
|
+
end_point += ROS::Struct::calc_size('C')
|
|
409
|
+
(val1.frame_locked,) = @@struct_C.unpack(str[start..(end_point-1)])
|
|
410
|
+
val1.frame_locked = bool(val1.frame_locked)
|
|
411
|
+
start = end_point
|
|
412
|
+
end_point += 4
|
|
413
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
414
|
+
val1.points = []
|
|
415
|
+
length.times do
|
|
416
|
+
val2 = Geometry_msgs::Point.new
|
|
417
|
+
_x = val2
|
|
418
|
+
start = end_point
|
|
419
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
420
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
421
|
+
val1.points.push(val2)
|
|
422
|
+
end
|
|
423
|
+
start = end_point
|
|
424
|
+
end_point += 4
|
|
425
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
426
|
+
val1.colors = []
|
|
427
|
+
length.times do
|
|
428
|
+
val2 = Std_msgs::ColorRGBA.new
|
|
429
|
+
_x = val2
|
|
430
|
+
start = end_point
|
|
431
|
+
end_point += ROS::Struct::calc_size('f4')
|
|
432
|
+
(_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
|
|
433
|
+
val1.colors.push(val2)
|
|
434
|
+
end
|
|
435
|
+
start = end_point
|
|
436
|
+
end_point += 4
|
|
437
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
438
|
+
start = end_point
|
|
439
|
+
end_point += length
|
|
440
|
+
val1.text = str[start..(end_point-1)]
|
|
441
|
+
start = end_point
|
|
442
|
+
end_point += 4
|
|
443
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
444
|
+
start = end_point
|
|
445
|
+
end_point += length
|
|
446
|
+
val1.mesh_resource = str[start..(end_point-1)]
|
|
447
|
+
start = end_point
|
|
448
|
+
end_point += ROS::Struct::calc_size('C')
|
|
449
|
+
(val1.mesh_use_embedded_materials,) = @@struct_C.unpack(str[start..(end_point-1)])
|
|
450
|
+
val1.mesh_use_embedded_materials = bool(val1.mesh_use_embedded_materials)
|
|
451
|
+
@markers.push(val1)
|
|
452
|
+
end
|
|
453
|
+
start = end_point
|
|
454
|
+
end_point += ROS::Struct::calc_size('C')
|
|
455
|
+
(@independent_marker_orientation,) = @@struct_C.unpack(str[start..(end_point-1)])
|
|
456
|
+
@independent_marker_orientation = bool(@independent_marker_orientation)
|
|
457
|
+
start = end_point
|
|
458
|
+
end_point += 4
|
|
459
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
460
|
+
start = end_point
|
|
461
|
+
end_point += length
|
|
462
|
+
@description = str[start..(end_point-1)]
|
|
463
|
+
return self
|
|
464
|
+
rescue => exception
|
|
465
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
466
|
+
end
|
|
467
|
+
end
|
|
468
|
+
end # end of class
|
|
469
|
+
end # end of module
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from InteractiveMarkerFeedback.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
|
+
|
|
9
|
+
module Visualization_msgs
|
|
10
|
+
|
|
11
|
+
class InteractiveMarkerFeedback <::ROS::Message
|
|
12
|
+
def self.md5sum
|
|
13
|
+
"ab0f1eee058667e28c19ff3ffc3f4b78"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.type
|
|
17
|
+
"visualization_msgs/InteractiveMarkerFeedback"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def has_header?
|
|
21
|
+
true
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def message_definition
|
|
25
|
+
"# Time/frame info.
|
|
26
|
+
Header header
|
|
27
|
+
|
|
28
|
+
# Identifying string. Must be unique in the topic namespace.
|
|
29
|
+
string client_id
|
|
30
|
+
|
|
31
|
+
# Feedback message sent back from the GUI, e.g.
|
|
32
|
+
# when the status of an interactive marker was modified by the user.
|
|
33
|
+
|
|
34
|
+
# Specifies which interactive marker and control this message refers to
|
|
35
|
+
string marker_name
|
|
36
|
+
string control_name
|
|
37
|
+
|
|
38
|
+
# Type of the event
|
|
39
|
+
# KEEP_ALIVE: sent while dragging to keep up control of the marker
|
|
40
|
+
# MENU_SELECT: a menu entry has been selected
|
|
41
|
+
# BUTTON_CLICK: a button control has been clicked
|
|
42
|
+
# POSE_UPDATE: the pose has been changed using one of the controls
|
|
43
|
+
uint8 KEEP_ALIVE = 0
|
|
44
|
+
uint8 POSE_UPDATE = 1
|
|
45
|
+
uint8 MENU_SELECT = 2
|
|
46
|
+
uint8 BUTTON_CLICK = 3
|
|
47
|
+
|
|
48
|
+
uint8 MOUSE_DOWN = 4
|
|
49
|
+
uint8 MOUSE_UP = 5
|
|
50
|
+
|
|
51
|
+
uint8 event_type
|
|
52
|
+
|
|
53
|
+
# Current pose of the marker
|
|
54
|
+
# Note: Has to be valid for all feedback types.
|
|
55
|
+
geometry_msgs/Pose pose
|
|
56
|
+
|
|
57
|
+
# Contains the ID of the selected menu entry
|
|
58
|
+
# Only valid for MENU_SELECT events.
|
|
59
|
+
uint32 menu_entry_id
|
|
60
|
+
|
|
61
|
+
# If event_type is BUTTON_CLICK, MOUSE_DOWN, or MOUSE_UP, mouse_point
|
|
62
|
+
# may contain the 3 dimensional position of the event on the
|
|
63
|
+
# control. If it does, mouse_point_valid will be true. mouse_point
|
|
64
|
+
# will be relative to the frame listed in the header.
|
|
65
|
+
geometry_msgs/Point mouse_point
|
|
66
|
+
bool mouse_point_valid
|
|
67
|
+
|
|
68
|
+
================================================================================
|
|
69
|
+
MSG: std_msgs/Header
|
|
70
|
+
# Standard metadata for higher-level stamped data types.
|
|
71
|
+
# This is generally used to communicate timestamped data
|
|
72
|
+
# in a particular coordinate frame.
|
|
73
|
+
#
|
|
74
|
+
# sequence ID: consecutively increasing ID
|
|
75
|
+
uint32 seq
|
|
76
|
+
#Two-integer timestamp that is expressed as:
|
|
77
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
78
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
79
|
+
# time-handling sugar is provided by the client library
|
|
80
|
+
time stamp
|
|
81
|
+
#Frame this data is associated with
|
|
82
|
+
# 0: no frame
|
|
83
|
+
# 1: global frame
|
|
84
|
+
string frame_id
|
|
85
|
+
|
|
86
|
+
================================================================================
|
|
87
|
+
MSG: geometry_msgs/Pose
|
|
88
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
89
|
+
Point position
|
|
90
|
+
Quaternion orientation
|
|
91
|
+
|
|
92
|
+
================================================================================
|
|
93
|
+
MSG: geometry_msgs/Point
|
|
94
|
+
# This contains the position of a point in free space
|
|
95
|
+
float64 x
|
|
96
|
+
float64 y
|
|
97
|
+
float64 z
|
|
98
|
+
|
|
99
|
+
================================================================================
|
|
100
|
+
MSG: geometry_msgs/Quaternion
|
|
101
|
+
# This represents an orientation in free space in quaternion form.
|
|
102
|
+
|
|
103
|
+
float64 x
|
|
104
|
+
float64 y
|
|
105
|
+
float64 z
|
|
106
|
+
float64 w
|
|
107
|
+
|
|
108
|
+
"
|
|
109
|
+
end
|
|
110
|
+
# Pseudo-constants
|
|
111
|
+
KEEP_ALIVE = 0
|
|
112
|
+
POSE_UPDATE = 1
|
|
113
|
+
MENU_SELECT = 2
|
|
114
|
+
BUTTON_CLICK = 3
|
|
115
|
+
MOUSE_DOWN = 4
|
|
116
|
+
MOUSE_UP = 5
|
|
117
|
+
|
|
118
|
+
attr_accessor :header, :client_id, :marker_name, :control_name, :event_type, :pose, :menu_entry_id, :mouse_point, :mouse_point_valid
|
|
119
|
+
|
|
120
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
121
|
+
@@struct_Cd7Ld3C = ::ROS::Struct.new("Cd7Ld3C")
|
|
122
|
+
|
|
123
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
124
|
+
@@slot_types = ['Header','string','string','string','uint8','geometry_msgs/Pose','uint32','geometry_msgs/Point','bool']
|
|
125
|
+
|
|
126
|
+
def initialize
|
|
127
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
128
|
+
# set to None will be assigned a default value. The recommend
|
|
129
|
+
# use is keyword arguments as this is more robust to future message
|
|
130
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
131
|
+
#
|
|
132
|
+
# The available fields are:
|
|
133
|
+
# header,client_id,marker_name,control_name,event_type,pose,menu_entry_id,mouse_point,mouse_point_valid
|
|
134
|
+
#
|
|
135
|
+
# @param args: complete set of field values, in .msg order
|
|
136
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
137
|
+
# to set specific fields.
|
|
138
|
+
#
|
|
139
|
+
|
|
140
|
+
# message fields cannot be None, assign default values for those that are
|
|
141
|
+
@header = Std_msgs::Header.new
|
|
142
|
+
@client_id = ''
|
|
143
|
+
@marker_name = ''
|
|
144
|
+
@control_name = ''
|
|
145
|
+
@event_type = 0
|
|
146
|
+
@pose = Geometry_msgs::Pose.new
|
|
147
|
+
@menu_entry_id = 0
|
|
148
|
+
@mouse_point = Geometry_msgs::Point.new
|
|
149
|
+
@mouse_point_valid = false
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def _get_types
|
|
153
|
+
# internal API method
|
|
154
|
+
return @slot_types
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
def serialize(buff)
|
|
158
|
+
# serialize message into buffer
|
|
159
|
+
# @param buff: buffer
|
|
160
|
+
# @type buff: StringIO
|
|
161
|
+
begin
|
|
162
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
163
|
+
_x = @header.frame_id
|
|
164
|
+
length = _x.length
|
|
165
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
166
|
+
_x = @client_id
|
|
167
|
+
length = _x.length
|
|
168
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
169
|
+
_x = @marker_name
|
|
170
|
+
length = _x.length
|
|
171
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
172
|
+
_x = @control_name
|
|
173
|
+
length = _x.length
|
|
174
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
175
|
+
buff.write(@@struct_Cd7Ld3C.pack(@event_type, @pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w, @menu_entry_id, @mouse_point.x, @mouse_point.y, @mouse_point.z, @mouse_point_valid))
|
|
176
|
+
rescue => exception
|
|
177
|
+
raise "some erro in serialize: #{exception}"
|
|
178
|
+
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
def deserialize(str)
|
|
183
|
+
# unpack serialized message in str into this message instance
|
|
184
|
+
# @param str: byte array of serialized message
|
|
185
|
+
# @type str: str
|
|
186
|
+
|
|
187
|
+
begin
|
|
188
|
+
if @header == nil
|
|
189
|
+
@header = Std_msgs::Header.new
|
|
190
|
+
end
|
|
191
|
+
if @pose == nil
|
|
192
|
+
@pose = Geometry_msgs::Pose.new
|
|
193
|
+
end
|
|
194
|
+
if @mouse_point == nil
|
|
195
|
+
@mouse_point = Geometry_msgs::Point.new
|
|
196
|
+
end
|
|
197
|
+
end_point = 0
|
|
198
|
+
start = end_point
|
|
199
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
200
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
201
|
+
start = end_point
|
|
202
|
+
end_point += 4
|
|
203
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
204
|
+
start = end_point
|
|
205
|
+
end_point += length
|
|
206
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
207
|
+
start = end_point
|
|
208
|
+
end_point += 4
|
|
209
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
210
|
+
start = end_point
|
|
211
|
+
end_point += length
|
|
212
|
+
@client_id = str[start..(end_point-1)]
|
|
213
|
+
start = end_point
|
|
214
|
+
end_point += 4
|
|
215
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
216
|
+
start = end_point
|
|
217
|
+
end_point += length
|
|
218
|
+
@marker_name = str[start..(end_point-1)]
|
|
219
|
+
start = end_point
|
|
220
|
+
end_point += 4
|
|
221
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
222
|
+
start = end_point
|
|
223
|
+
end_point += length
|
|
224
|
+
@control_name = str[start..(end_point-1)]
|
|
225
|
+
start = end_point
|
|
226
|
+
end_point += ROS::Struct::calc_size('Cd7Ld3C')
|
|
227
|
+
(@event_type, @pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w, @menu_entry_id, @mouse_point.x, @mouse_point.y, @mouse_point.z, @mouse_point_valid,) = @@struct_Cd7Ld3C.unpack(str[start..(end_point-1)])
|
|
228
|
+
@mouse_point_valid = bool(@mouse_point_valid)
|
|
229
|
+
return self
|
|
230
|
+
rescue => exception
|
|
231
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
end # end of class
|
|
235
|
+
end # end of module
|