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,198 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from JointTrajectory.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "std_msgs/Header"
|
|
5
|
+
require "trajectory_msgs/JointTrajectoryPoint"
|
|
6
|
+
require "ros/duration"
|
|
7
|
+
|
|
8
|
+
module Trajectory_msgs
|
|
9
|
+
|
|
10
|
+
class JointTrajectory <::ROS::Message
|
|
11
|
+
def self.md5sum
|
|
12
|
+
"72214029c6fba47b2135714577dd745e"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def self.type
|
|
16
|
+
"trajectory_msgs/JointTrajectory"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def has_header?
|
|
20
|
+
true
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def message_definition
|
|
24
|
+
"Header header
|
|
25
|
+
string[] joint_names
|
|
26
|
+
JointTrajectoryPoint[] points
|
|
27
|
+
================================================================================
|
|
28
|
+
MSG: std_msgs/Header
|
|
29
|
+
# Standard metadata for higher-level stamped data types.
|
|
30
|
+
# This is generally used to communicate timestamped data
|
|
31
|
+
# in a particular coordinate frame.
|
|
32
|
+
#
|
|
33
|
+
# sequence ID: consecutively increasing ID
|
|
34
|
+
uint32 seq
|
|
35
|
+
#Two-integer timestamp that is expressed as:
|
|
36
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
37
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
38
|
+
# time-handling sugar is provided by the client library
|
|
39
|
+
time stamp
|
|
40
|
+
#Frame this data is associated with
|
|
41
|
+
# 0: no frame
|
|
42
|
+
# 1: global frame
|
|
43
|
+
string frame_id
|
|
44
|
+
|
|
45
|
+
================================================================================
|
|
46
|
+
MSG: trajectory_msgs/JointTrajectoryPoint
|
|
47
|
+
float64[] positions
|
|
48
|
+
float64[] velocities
|
|
49
|
+
float64[] accelerations
|
|
50
|
+
duration time_from_start
|
|
51
|
+
"
|
|
52
|
+
end
|
|
53
|
+
attr_accessor :header, :joint_names, :points
|
|
54
|
+
|
|
55
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
56
|
+
@@struct_l2 = ::ROS::Struct.new("l2")
|
|
57
|
+
|
|
58
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
59
|
+
@@slot_types = ['Header','string[]','trajectory_msgs/JointTrajectoryPoint[]']
|
|
60
|
+
|
|
61
|
+
def initialize
|
|
62
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
63
|
+
# set to None will be assigned a default value. The recommend
|
|
64
|
+
# use is keyword arguments as this is more robust to future message
|
|
65
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
66
|
+
#
|
|
67
|
+
# The available fields are:
|
|
68
|
+
# header,joint_names,points
|
|
69
|
+
#
|
|
70
|
+
# @param args: complete set of field values, in .msg order
|
|
71
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
72
|
+
# to set specific fields.
|
|
73
|
+
#
|
|
74
|
+
|
|
75
|
+
# message fields cannot be None, assign default values for those that are
|
|
76
|
+
@header = Std_msgs::Header.new
|
|
77
|
+
@joint_names = []
|
|
78
|
+
@points = []
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def _get_types
|
|
82
|
+
# internal API method
|
|
83
|
+
return @slot_types
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
def serialize(buff)
|
|
87
|
+
# serialize message into buffer
|
|
88
|
+
# @param buff: buffer
|
|
89
|
+
# @type buff: StringIO
|
|
90
|
+
begin
|
|
91
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
92
|
+
_x = @header.frame_id
|
|
93
|
+
length = _x.length
|
|
94
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
95
|
+
length = @joint_names.length
|
|
96
|
+
buff.write(@@struct_L.pack(length))
|
|
97
|
+
for val1 in @joint_names
|
|
98
|
+
length = val1.length
|
|
99
|
+
buff.write([length, val1].pack("La#{length}"))
|
|
100
|
+
end
|
|
101
|
+
length = @points.length
|
|
102
|
+
buff.write(@@struct_L.pack(length))
|
|
103
|
+
for val1 in @points
|
|
104
|
+
length = val1.positions.length
|
|
105
|
+
buff.write(@@struct_L.pack(length))
|
|
106
|
+
pattern = "d#{length}"
|
|
107
|
+
buff.write(*val1.positions.pack(pattern))
|
|
108
|
+
length = val1.velocities.length
|
|
109
|
+
buff.write(@@struct_L.pack(length))
|
|
110
|
+
pattern = "d#{length}"
|
|
111
|
+
buff.write(*val1.velocities.pack(pattern))
|
|
112
|
+
length = val1.accelerations.length
|
|
113
|
+
buff.write(@@struct_L.pack(length))
|
|
114
|
+
pattern = "d#{length}"
|
|
115
|
+
buff.write(*val1.accelerations.pack(pattern))
|
|
116
|
+
_v25 = val1.time_from_start
|
|
117
|
+
_x = _v25
|
|
118
|
+
buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
|
|
119
|
+
end
|
|
120
|
+
rescue => exception
|
|
121
|
+
raise "some erro in serialize: #{exception}"
|
|
122
|
+
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
def deserialize(str)
|
|
127
|
+
# unpack serialized message in str into this message instance
|
|
128
|
+
# @param str: byte array of serialized message
|
|
129
|
+
# @type str: str
|
|
130
|
+
|
|
131
|
+
begin
|
|
132
|
+
if @header == nil
|
|
133
|
+
@header = Std_msgs::Header.new
|
|
134
|
+
end
|
|
135
|
+
end_point = 0
|
|
136
|
+
start = end_point
|
|
137
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
138
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
139
|
+
start = end_point
|
|
140
|
+
end_point += 4
|
|
141
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
142
|
+
start = end_point
|
|
143
|
+
end_point += length
|
|
144
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
145
|
+
start = end_point
|
|
146
|
+
end_point += 4
|
|
147
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
148
|
+
@joint_names = []
|
|
149
|
+
length.times do
|
|
150
|
+
start = end_point
|
|
151
|
+
end_point += 4
|
|
152
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
153
|
+
start = end_point
|
|
154
|
+
end_point += length
|
|
155
|
+
val1 = str[start..(end_point-1)]
|
|
156
|
+
@joint_names.push(val1)
|
|
157
|
+
end
|
|
158
|
+
start = end_point
|
|
159
|
+
end_point += 4
|
|
160
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
161
|
+
@points = []
|
|
162
|
+
length.times do
|
|
163
|
+
val1 = Trajectory_msgs::JointTrajectoryPoint.new
|
|
164
|
+
start = end_point
|
|
165
|
+
end_point += 4
|
|
166
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
167
|
+
pattern = "d#{length}"
|
|
168
|
+
start = end_point
|
|
169
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
|
170
|
+
val1.positions = str[start..(end_point-1)].unpack(pattern)
|
|
171
|
+
start = end_point
|
|
172
|
+
end_point += 4
|
|
173
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
174
|
+
pattern = "d#{length}"
|
|
175
|
+
start = end_point
|
|
176
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
|
177
|
+
val1.velocities = str[start..(end_point-1)].unpack(pattern)
|
|
178
|
+
start = end_point
|
|
179
|
+
end_point += 4
|
|
180
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
181
|
+
pattern = "d#{length}"
|
|
182
|
+
start = end_point
|
|
183
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
|
184
|
+
val1.accelerations = str[start..(end_point-1)].unpack(pattern)
|
|
185
|
+
_v26 = val1.time_from_start
|
|
186
|
+
_x = _v26
|
|
187
|
+
start = end_point
|
|
188
|
+
end_point += ROS::Struct::calc_size('l2')
|
|
189
|
+
(_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
|
|
190
|
+
@points.push(val1)
|
|
191
|
+
end
|
|
192
|
+
return self
|
|
193
|
+
rescue => exception
|
|
194
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end # end of class
|
|
198
|
+
end # end of module
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from JointTrajectoryPoint.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "ros/duration"
|
|
5
|
+
|
|
6
|
+
module Trajectory_msgs
|
|
7
|
+
|
|
8
|
+
class JointTrajectoryPoint <::ROS::Message
|
|
9
|
+
def self.md5sum
|
|
10
|
+
"84fd2dcf68773c3dc0e9db894f4e8b40"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def self.type
|
|
14
|
+
"trajectory_msgs/JointTrajectoryPoint"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def has_header?
|
|
18
|
+
false
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def message_definition
|
|
22
|
+
"float64[] positions
|
|
23
|
+
float64[] velocities
|
|
24
|
+
float64[] accelerations
|
|
25
|
+
duration time_from_start
|
|
26
|
+
"
|
|
27
|
+
end
|
|
28
|
+
attr_accessor :positions, :velocities, :accelerations, :time_from_start
|
|
29
|
+
|
|
30
|
+
@@struct_l2 = ::ROS::Struct.new("l2")
|
|
31
|
+
|
|
32
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
33
|
+
@@slot_types = ['float64[]','float64[]','float64[]','duration']
|
|
34
|
+
|
|
35
|
+
def initialize
|
|
36
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
37
|
+
# set to None will be assigned a default value. The recommend
|
|
38
|
+
# use is keyword arguments as this is more robust to future message
|
|
39
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
40
|
+
#
|
|
41
|
+
# The available fields are:
|
|
42
|
+
# positions,velocities,accelerations,time_from_start
|
|
43
|
+
#
|
|
44
|
+
# @param args: complete set of field values, in .msg order
|
|
45
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
46
|
+
# to set specific fields.
|
|
47
|
+
#
|
|
48
|
+
|
|
49
|
+
# message fields cannot be None, assign default values for those that are
|
|
50
|
+
@positions = []
|
|
51
|
+
@velocities = []
|
|
52
|
+
@accelerations = []
|
|
53
|
+
@time_from_start = ROS::Duration.new
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def _get_types
|
|
57
|
+
# internal API method
|
|
58
|
+
return @slot_types
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def serialize(buff)
|
|
62
|
+
# serialize message into buffer
|
|
63
|
+
# @param buff: buffer
|
|
64
|
+
# @type buff: StringIO
|
|
65
|
+
begin
|
|
66
|
+
length = @positions.length
|
|
67
|
+
buff.write(@@struct_L.pack(length))
|
|
68
|
+
pattern = "d#{length}"
|
|
69
|
+
buff.write(*@positions.pack(pattern))
|
|
70
|
+
length = @velocities.length
|
|
71
|
+
buff.write(@@struct_L.pack(length))
|
|
72
|
+
pattern = "d#{length}"
|
|
73
|
+
buff.write(*@velocities.pack(pattern))
|
|
74
|
+
length = @accelerations.length
|
|
75
|
+
buff.write(@@struct_L.pack(length))
|
|
76
|
+
pattern = "d#{length}"
|
|
77
|
+
buff.write(*@accelerations.pack(pattern))
|
|
78
|
+
buff.write(@@struct_l2.pack(@time_from_start.secs, @time_from_start.nsecs))
|
|
79
|
+
rescue => exception
|
|
80
|
+
raise "some erro in serialize: #{exception}"
|
|
81
|
+
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def deserialize(str)
|
|
86
|
+
# unpack serialized message in str into this message instance
|
|
87
|
+
# @param str: byte array of serialized message
|
|
88
|
+
# @type str: str
|
|
89
|
+
|
|
90
|
+
begin
|
|
91
|
+
if @time_from_start == nil
|
|
92
|
+
@time_from_start = ROS::Duration.new
|
|
93
|
+
end
|
|
94
|
+
end_point = 0
|
|
95
|
+
start = end_point
|
|
96
|
+
end_point += 4
|
|
97
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
98
|
+
pattern = "d#{length}"
|
|
99
|
+
start = end_point
|
|
100
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
|
101
|
+
@positions = str[start..(end_point-1)].unpack(pattern)
|
|
102
|
+
start = end_point
|
|
103
|
+
end_point += 4
|
|
104
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
105
|
+
pattern = "d#{length}"
|
|
106
|
+
start = end_point
|
|
107
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
|
108
|
+
@velocities = str[start..(end_point-1)].unpack(pattern)
|
|
109
|
+
start = end_point
|
|
110
|
+
end_point += 4
|
|
111
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
112
|
+
pattern = "d#{length}"
|
|
113
|
+
start = end_point
|
|
114
|
+
end_point += ROS::Struct::calc_size("#{pattern}")
|
|
115
|
+
@accelerations = str[start..(end_point-1)].unpack(pattern)
|
|
116
|
+
start = end_point
|
|
117
|
+
end_point += ROS::Struct::calc_size('l2')
|
|
118
|
+
(@time_from_start.secs, @time_from_start.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
|
|
119
|
+
return self
|
|
120
|
+
rescue => exception
|
|
121
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end # end of class
|
|
125
|
+
end # end of module
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from ImageMarker.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "std_msgs/Header"
|
|
5
|
+
require "std_msgs/ColorRGBA"
|
|
6
|
+
require "geometry_msgs/Point"
|
|
7
|
+
require "ros/duration"
|
|
8
|
+
|
|
9
|
+
module Visualization_msgs
|
|
10
|
+
|
|
11
|
+
class ImageMarker <::ROS::Message
|
|
12
|
+
def self.md5sum
|
|
13
|
+
"1de93c67ec8858b831025a08fbf1b35c"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.type
|
|
17
|
+
"visualization_msgs/ImageMarker"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def has_header?
|
|
21
|
+
true
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def message_definition
|
|
25
|
+
"uint8 CIRCLE=0
|
|
26
|
+
uint8 LINE_STRIP=1
|
|
27
|
+
uint8 LINE_LIST=2
|
|
28
|
+
uint8 POLYGON=3
|
|
29
|
+
uint8 POINTS=4
|
|
30
|
+
|
|
31
|
+
uint8 ADD=0
|
|
32
|
+
uint8 REMOVE=1
|
|
33
|
+
|
|
34
|
+
Header header
|
|
35
|
+
string ns # namespace, used with id to form a unique id
|
|
36
|
+
int32 id # unique id within the namespace
|
|
37
|
+
int32 type # CIRCLE/LINE_STRIP/etc.
|
|
38
|
+
int32 action # ADD/REMOVE
|
|
39
|
+
geometry_msgs/Point position # 2D, in pixel-coords
|
|
40
|
+
float32 scale # the diameter for a circle, etc.
|
|
41
|
+
std_msgs/ColorRGBA outline_color
|
|
42
|
+
uint8 filled # whether to fill in the shape with color
|
|
43
|
+
std_msgs/ColorRGBA fill_color # color [0.0-1.0]
|
|
44
|
+
duration lifetime # How long the object should last before being automatically deleted. 0 means forever
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
geometry_msgs/Point[] points # used for LINE_STRIP/LINE_LIST/POINTS/etc., 2D in pixel coords
|
|
48
|
+
std_msgs/ColorRGBA[] outline_colors # a color for each line, point, etc.
|
|
49
|
+
================================================================================
|
|
50
|
+
MSG: std_msgs/Header
|
|
51
|
+
# Standard metadata for higher-level stamped data types.
|
|
52
|
+
# This is generally used to communicate timestamped data
|
|
53
|
+
# in a particular coordinate frame.
|
|
54
|
+
#
|
|
55
|
+
# sequence ID: consecutively increasing ID
|
|
56
|
+
uint32 seq
|
|
57
|
+
#Two-integer timestamp that is expressed as:
|
|
58
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
59
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
60
|
+
# time-handling sugar is provided by the client library
|
|
61
|
+
time stamp
|
|
62
|
+
#Frame this data is associated with
|
|
63
|
+
# 0: no frame
|
|
64
|
+
# 1: global frame
|
|
65
|
+
string frame_id
|
|
66
|
+
|
|
67
|
+
================================================================================
|
|
68
|
+
MSG: geometry_msgs/Point
|
|
69
|
+
# This contains the position of a point in free space
|
|
70
|
+
float64 x
|
|
71
|
+
float64 y
|
|
72
|
+
float64 z
|
|
73
|
+
|
|
74
|
+
================================================================================
|
|
75
|
+
MSG: std_msgs/ColorRGBA
|
|
76
|
+
float32 r
|
|
77
|
+
float32 g
|
|
78
|
+
float32 b
|
|
79
|
+
float32 a
|
|
80
|
+
|
|
81
|
+
"
|
|
82
|
+
end
|
|
83
|
+
# Pseudo-constants
|
|
84
|
+
CIRCLE = 0
|
|
85
|
+
LINE_STRIP = 1
|
|
86
|
+
LINE_LIST = 2
|
|
87
|
+
POLYGON = 3
|
|
88
|
+
POINTS = 4
|
|
89
|
+
ADD = 0
|
|
90
|
+
REMOVE = 1
|
|
91
|
+
|
|
92
|
+
attr_accessor :header, :ns, :id, :type, :action, :position, :scale, :outline_color, :filled, :fill_color, :lifetime, :points, :outline_colors
|
|
93
|
+
|
|
94
|
+
@@struct_f4 = ::ROS::Struct.new("f4")
|
|
95
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
96
|
+
@@struct_l3d3f5Cf4l2 = ::ROS::Struct.new("l3d3f5Cf4l2")
|
|
97
|
+
@@struct_d3 = ::ROS::Struct.new("d3")
|
|
98
|
+
|
|
99
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
100
|
+
@@slot_types = ['Header','string','int32','int32','int32','geometry_msgs/Point','float32','std_msgs/ColorRGBA','uint8','std_msgs/ColorRGBA','duration','geometry_msgs/Point[]','std_msgs/ColorRGBA[]']
|
|
101
|
+
|
|
102
|
+
def initialize
|
|
103
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
104
|
+
# set to None will be assigned a default value. The recommend
|
|
105
|
+
# use is keyword arguments as this is more robust to future message
|
|
106
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
107
|
+
#
|
|
108
|
+
# The available fields are:
|
|
109
|
+
# header,ns,id,type,action,position,scale,outline_color,filled,fill_color,lifetime,points,outline_colors
|
|
110
|
+
#
|
|
111
|
+
# @param args: complete set of field values, in .msg order
|
|
112
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
113
|
+
# to set specific fields.
|
|
114
|
+
#
|
|
115
|
+
|
|
116
|
+
# message fields cannot be None, assign default values for those that are
|
|
117
|
+
@header = Std_msgs::Header.new
|
|
118
|
+
@ns = ''
|
|
119
|
+
@id = 0
|
|
120
|
+
@type = 0
|
|
121
|
+
@action = 0
|
|
122
|
+
@position = Geometry_msgs::Point.new
|
|
123
|
+
@scale = 0.0
|
|
124
|
+
@outline_color = Std_msgs::ColorRGBA.new
|
|
125
|
+
@filled = 0
|
|
126
|
+
@fill_color = Std_msgs::ColorRGBA.new
|
|
127
|
+
@lifetime = ROS::Duration.new
|
|
128
|
+
@points = []
|
|
129
|
+
@outline_colors = []
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
def _get_types
|
|
133
|
+
# internal API method
|
|
134
|
+
return @slot_types
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
def serialize(buff)
|
|
138
|
+
# serialize message into buffer
|
|
139
|
+
# @param buff: buffer
|
|
140
|
+
# @type buff: StringIO
|
|
141
|
+
begin
|
|
142
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
143
|
+
_x = @header.frame_id
|
|
144
|
+
length = _x.length
|
|
145
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
146
|
+
_x = @ns
|
|
147
|
+
length = _x.length
|
|
148
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
149
|
+
buff.write(@@struct_l3d3f5Cf4l2.pack(@id, @type, @action, @position.x, @position.y, @position.z, @scale, @outline_color.r, @outline_color.g, @outline_color.b, @outline_color.a, @filled, @fill_color.r, @fill_color.g, @fill_color.b, @fill_color.a, @lifetime.secs, @lifetime.nsecs))
|
|
150
|
+
length = @points.length
|
|
151
|
+
buff.write(@@struct_L.pack(length))
|
|
152
|
+
for val1 in @points
|
|
153
|
+
_x = val1
|
|
154
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
155
|
+
end
|
|
156
|
+
length = @outline_colors.length
|
|
157
|
+
buff.write(@@struct_L.pack(length))
|
|
158
|
+
for val1 in @outline_colors
|
|
159
|
+
_x = val1
|
|
160
|
+
buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
|
|
161
|
+
end
|
|
162
|
+
rescue => exception
|
|
163
|
+
raise "some erro in serialize: #{exception}"
|
|
164
|
+
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
def deserialize(str)
|
|
169
|
+
# unpack serialized message in str into this message instance
|
|
170
|
+
# @param str: byte array of serialized message
|
|
171
|
+
# @type str: str
|
|
172
|
+
|
|
173
|
+
begin
|
|
174
|
+
if @header == nil
|
|
175
|
+
@header = Std_msgs::Header.new
|
|
176
|
+
end
|
|
177
|
+
if @position == nil
|
|
178
|
+
@position = Geometry_msgs::Point.new
|
|
179
|
+
end
|
|
180
|
+
if @outline_color == nil
|
|
181
|
+
@outline_color = Std_msgs::ColorRGBA.new
|
|
182
|
+
end
|
|
183
|
+
if @fill_color == nil
|
|
184
|
+
@fill_color = Std_msgs::ColorRGBA.new
|
|
185
|
+
end
|
|
186
|
+
if @lifetime == nil
|
|
187
|
+
@lifetime = ROS::Duration.new
|
|
188
|
+
end
|
|
189
|
+
end_point = 0
|
|
190
|
+
start = end_point
|
|
191
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
192
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
193
|
+
start = end_point
|
|
194
|
+
end_point += 4
|
|
195
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
196
|
+
start = end_point
|
|
197
|
+
end_point += length
|
|
198
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
199
|
+
start = end_point
|
|
200
|
+
end_point += 4
|
|
201
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
202
|
+
start = end_point
|
|
203
|
+
end_point += length
|
|
204
|
+
@ns = str[start..(end_point-1)]
|
|
205
|
+
start = end_point
|
|
206
|
+
end_point += ROS::Struct::calc_size('l3d3f5Cf4l2')
|
|
207
|
+
(@id, @type, @action, @position.x, @position.y, @position.z, @scale, @outline_color.r, @outline_color.g, @outline_color.b, @outline_color.a, @filled, @fill_color.r, @fill_color.g, @fill_color.b, @fill_color.a, @lifetime.secs, @lifetime.nsecs,) = @@struct_l3d3f5Cf4l2.unpack(str[start..(end_point-1)])
|
|
208
|
+
start = end_point
|
|
209
|
+
end_point += 4
|
|
210
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
211
|
+
@points = []
|
|
212
|
+
length.times do
|
|
213
|
+
val1 = Geometry_msgs::Point.new
|
|
214
|
+
_x = val1
|
|
215
|
+
start = end_point
|
|
216
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
217
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
218
|
+
@points.push(val1)
|
|
219
|
+
end
|
|
220
|
+
start = end_point
|
|
221
|
+
end_point += 4
|
|
222
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
223
|
+
@outline_colors = []
|
|
224
|
+
length.times do
|
|
225
|
+
val1 = Std_msgs::ColorRGBA.new
|
|
226
|
+
_x = val1
|
|
227
|
+
start = end_point
|
|
228
|
+
end_point += ROS::Struct::calc_size('f4')
|
|
229
|
+
(_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
|
|
230
|
+
@outline_colors.push(val1)
|
|
231
|
+
end
|
|
232
|
+
return self
|
|
233
|
+
rescue => exception
|
|
234
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
end # end of class
|
|
238
|
+
end # end of module
|