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,88 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from Pose2D.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
module Geometry_msgs
|
|
6
|
+
|
|
7
|
+
class Pose2D <::ROS::Message
|
|
8
|
+
def self.md5sum
|
|
9
|
+
"938fa65709584ad8e77d238529be13b8"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def self.type
|
|
13
|
+
"geometry_msgs/Pose2D"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def has_header?
|
|
17
|
+
false
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def message_definition
|
|
21
|
+
"# This expresses a position and orientation on a 2D manifold.
|
|
22
|
+
|
|
23
|
+
float64 x
|
|
24
|
+
float64 y
|
|
25
|
+
float64 theta
|
|
26
|
+
"
|
|
27
|
+
end
|
|
28
|
+
attr_accessor :x, :y, :theta
|
|
29
|
+
|
|
30
|
+
@@struct_d3 = ::ROS::Struct.new("d3")
|
|
31
|
+
|
|
32
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
33
|
+
@@slot_types = ['float64','float64','float64']
|
|
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
|
+
# x,y,theta
|
|
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
|
+
@x = 0.0
|
|
51
|
+
@y = 0.0
|
|
52
|
+
@theta = 0.0
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
def _get_types
|
|
56
|
+
# internal API method
|
|
57
|
+
return @slot_types
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def serialize(buff)
|
|
61
|
+
# serialize message into buffer
|
|
62
|
+
# @param buff: buffer
|
|
63
|
+
# @type buff: StringIO
|
|
64
|
+
begin
|
|
65
|
+
buff.write(@@struct_d3.pack(@x, @y, @theta))
|
|
66
|
+
rescue => exception
|
|
67
|
+
raise "some erro in serialize: #{exception}"
|
|
68
|
+
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def deserialize(str)
|
|
73
|
+
# unpack serialized message in str into this message instance
|
|
74
|
+
# @param str: byte array of serialized message
|
|
75
|
+
# @type str: str
|
|
76
|
+
|
|
77
|
+
begin
|
|
78
|
+
end_point = 0
|
|
79
|
+
start = end_point
|
|
80
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
81
|
+
(@x, @y, @theta,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
82
|
+
return self
|
|
83
|
+
rescue => exception
|
|
84
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end # end of class
|
|
88
|
+
end # end of module
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from PoseArray.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 Geometry_msgs
|
|
10
|
+
|
|
11
|
+
class PoseArray <::ROS::Message
|
|
12
|
+
def self.md5sum
|
|
13
|
+
"916c28c5764443f268b296bb671b9d97"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.type
|
|
17
|
+
"geometry_msgs/PoseArray"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def has_header?
|
|
21
|
+
true
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def message_definition
|
|
25
|
+
"# An array of poses with a header for global reference.
|
|
26
|
+
|
|
27
|
+
Header header
|
|
28
|
+
|
|
29
|
+
Pose[] poses
|
|
30
|
+
|
|
31
|
+
================================================================================
|
|
32
|
+
MSG: std_msgs/Header
|
|
33
|
+
# Standard metadata for higher-level stamped data types.
|
|
34
|
+
# This is generally used to communicate timestamped data
|
|
35
|
+
# in a particular coordinate frame.
|
|
36
|
+
#
|
|
37
|
+
# sequence ID: consecutively increasing ID
|
|
38
|
+
uint32 seq
|
|
39
|
+
#Two-integer timestamp that is expressed as:
|
|
40
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
41
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
42
|
+
# time-handling sugar is provided by the client library
|
|
43
|
+
time stamp
|
|
44
|
+
#Frame this data is associated with
|
|
45
|
+
# 0: no frame
|
|
46
|
+
# 1: global frame
|
|
47
|
+
string frame_id
|
|
48
|
+
|
|
49
|
+
================================================================================
|
|
50
|
+
MSG: geometry_msgs/Pose
|
|
51
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
52
|
+
Point position
|
|
53
|
+
Quaternion orientation
|
|
54
|
+
|
|
55
|
+
================================================================================
|
|
56
|
+
MSG: geometry_msgs/Point
|
|
57
|
+
# This contains the position of a point in free space
|
|
58
|
+
float64 x
|
|
59
|
+
float64 y
|
|
60
|
+
float64 z
|
|
61
|
+
|
|
62
|
+
================================================================================
|
|
63
|
+
MSG: geometry_msgs/Quaternion
|
|
64
|
+
# This represents an orientation in free space in quaternion form.
|
|
65
|
+
|
|
66
|
+
float64 x
|
|
67
|
+
float64 y
|
|
68
|
+
float64 z
|
|
69
|
+
float64 w
|
|
70
|
+
|
|
71
|
+
"
|
|
72
|
+
end
|
|
73
|
+
attr_accessor :header, :poses
|
|
74
|
+
|
|
75
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
76
|
+
@@struct_d4 = ::ROS::Struct.new("d4")
|
|
77
|
+
@@struct_d3 = ::ROS::Struct.new("d3")
|
|
78
|
+
|
|
79
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
80
|
+
@@slot_types = ['Header','geometry_msgs/Pose[]']
|
|
81
|
+
|
|
82
|
+
def initialize
|
|
83
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
84
|
+
# set to None will be assigned a default value. The recommend
|
|
85
|
+
# use is keyword arguments as this is more robust to future message
|
|
86
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
87
|
+
#
|
|
88
|
+
# The available fields are:
|
|
89
|
+
# header,poses
|
|
90
|
+
#
|
|
91
|
+
# @param args: complete set of field values, in .msg order
|
|
92
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
93
|
+
# to set specific fields.
|
|
94
|
+
#
|
|
95
|
+
|
|
96
|
+
# message fields cannot be None, assign default values for those that are
|
|
97
|
+
@header = Std_msgs::Header.new
|
|
98
|
+
@poses = []
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
def _get_types
|
|
102
|
+
# internal API method
|
|
103
|
+
return @slot_types
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
def serialize(buff)
|
|
107
|
+
# serialize message into buffer
|
|
108
|
+
# @param buff: buffer
|
|
109
|
+
# @type buff: StringIO
|
|
110
|
+
begin
|
|
111
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
112
|
+
_x = @header.frame_id
|
|
113
|
+
length = _x.length
|
|
114
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
115
|
+
length = @poses.length
|
|
116
|
+
buff.write(@@struct_L.pack(length))
|
|
117
|
+
for val1 in @poses
|
|
118
|
+
_v1 = val1.position
|
|
119
|
+
_x = _v1
|
|
120
|
+
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
121
|
+
_v2 = val1.orientation
|
|
122
|
+
_x = _v2
|
|
123
|
+
buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
|
|
124
|
+
end
|
|
125
|
+
rescue => exception
|
|
126
|
+
raise "some erro in serialize: #{exception}"
|
|
127
|
+
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def deserialize(str)
|
|
132
|
+
# unpack serialized message in str into this message instance
|
|
133
|
+
# @param str: byte array of serialized message
|
|
134
|
+
# @type str: str
|
|
135
|
+
|
|
136
|
+
begin
|
|
137
|
+
if @header == nil
|
|
138
|
+
@header = Std_msgs::Header.new
|
|
139
|
+
end
|
|
140
|
+
end_point = 0
|
|
141
|
+
start = end_point
|
|
142
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
143
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
144
|
+
start = end_point
|
|
145
|
+
end_point += 4
|
|
146
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
147
|
+
start = end_point
|
|
148
|
+
end_point += length
|
|
149
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
150
|
+
start = end_point
|
|
151
|
+
end_point += 4
|
|
152
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
153
|
+
@poses = []
|
|
154
|
+
length.times do
|
|
155
|
+
val1 = Geometry_msgs::Pose.new
|
|
156
|
+
_v3 = val1.position
|
|
157
|
+
_x = _v3
|
|
158
|
+
start = end_point
|
|
159
|
+
end_point += ROS::Struct::calc_size('d3')
|
|
160
|
+
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
161
|
+
_v4 = val1.orientation
|
|
162
|
+
_x = _v4
|
|
163
|
+
start = end_point
|
|
164
|
+
end_point += ROS::Struct::calc_size('d4')
|
|
165
|
+
(_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
|
|
166
|
+
@poses.push(val1)
|
|
167
|
+
end
|
|
168
|
+
return self
|
|
169
|
+
rescue => exception
|
|
170
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
end # end of class
|
|
174
|
+
end # end of module
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from PoseStamped.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 Geometry_msgs
|
|
10
|
+
|
|
11
|
+
class PoseStamped <::ROS::Message
|
|
12
|
+
def self.md5sum
|
|
13
|
+
"d3812c3cbc69362b77dc0b19b345f8f5"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def self.type
|
|
17
|
+
"geometry_msgs/PoseStamped"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def has_header?
|
|
21
|
+
true
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def message_definition
|
|
25
|
+
"# A Pose with reference coordinate frame and timestamp
|
|
26
|
+
Header header
|
|
27
|
+
Pose pose
|
|
28
|
+
|
|
29
|
+
================================================================================
|
|
30
|
+
MSG: std_msgs/Header
|
|
31
|
+
# Standard metadata for higher-level stamped data types.
|
|
32
|
+
# This is generally used to communicate timestamped data
|
|
33
|
+
# in a particular coordinate frame.
|
|
34
|
+
#
|
|
35
|
+
# sequence ID: consecutively increasing ID
|
|
36
|
+
uint32 seq
|
|
37
|
+
#Two-integer timestamp that is expressed as:
|
|
38
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
39
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
40
|
+
# time-handling sugar is provided by the client library
|
|
41
|
+
time stamp
|
|
42
|
+
#Frame this data is associated with
|
|
43
|
+
# 0: no frame
|
|
44
|
+
# 1: global frame
|
|
45
|
+
string frame_id
|
|
46
|
+
|
|
47
|
+
================================================================================
|
|
48
|
+
MSG: geometry_msgs/Pose
|
|
49
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
50
|
+
Point position
|
|
51
|
+
Quaternion orientation
|
|
52
|
+
|
|
53
|
+
================================================================================
|
|
54
|
+
MSG: geometry_msgs/Point
|
|
55
|
+
# This contains the position of a point in free space
|
|
56
|
+
float64 x
|
|
57
|
+
float64 y
|
|
58
|
+
float64 z
|
|
59
|
+
|
|
60
|
+
================================================================================
|
|
61
|
+
MSG: geometry_msgs/Quaternion
|
|
62
|
+
# This represents an orientation in free space in quaternion form.
|
|
63
|
+
|
|
64
|
+
float64 x
|
|
65
|
+
float64 y
|
|
66
|
+
float64 z
|
|
67
|
+
float64 w
|
|
68
|
+
|
|
69
|
+
"
|
|
70
|
+
end
|
|
71
|
+
attr_accessor :header, :pose
|
|
72
|
+
|
|
73
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
74
|
+
@@struct_d7 = ::ROS::Struct.new("d7")
|
|
75
|
+
|
|
76
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
77
|
+
@@slot_types = ['Header','geometry_msgs/Pose']
|
|
78
|
+
|
|
79
|
+
def initialize
|
|
80
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
81
|
+
# set to None will be assigned a default value. The recommend
|
|
82
|
+
# use is keyword arguments as this is more robust to future message
|
|
83
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
84
|
+
#
|
|
85
|
+
# The available fields are:
|
|
86
|
+
# header,pose
|
|
87
|
+
#
|
|
88
|
+
# @param args: complete set of field values, in .msg order
|
|
89
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
90
|
+
# to set specific fields.
|
|
91
|
+
#
|
|
92
|
+
|
|
93
|
+
# message fields cannot be None, assign default values for those that are
|
|
94
|
+
@header = Std_msgs::Header.new
|
|
95
|
+
@pose = Geometry_msgs::Pose.new
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def _get_types
|
|
99
|
+
# internal API method
|
|
100
|
+
return @slot_types
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def serialize(buff)
|
|
104
|
+
# serialize message into buffer
|
|
105
|
+
# @param buff: buffer
|
|
106
|
+
# @type buff: StringIO
|
|
107
|
+
begin
|
|
108
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
109
|
+
_x = @header.frame_id
|
|
110
|
+
length = _x.length
|
|
111
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
112
|
+
buff.write(@@struct_d7.pack(@pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w))
|
|
113
|
+
rescue => exception
|
|
114
|
+
raise "some erro in serialize: #{exception}"
|
|
115
|
+
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def deserialize(str)
|
|
120
|
+
# unpack serialized message in str into this message instance
|
|
121
|
+
# @param str: byte array of serialized message
|
|
122
|
+
# @type str: str
|
|
123
|
+
|
|
124
|
+
begin
|
|
125
|
+
if @header == nil
|
|
126
|
+
@header = Std_msgs::Header.new
|
|
127
|
+
end
|
|
128
|
+
if @pose == nil
|
|
129
|
+
@pose = Geometry_msgs::Pose.new
|
|
130
|
+
end
|
|
131
|
+
end_point = 0
|
|
132
|
+
start = end_point
|
|
133
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
134
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
135
|
+
start = end_point
|
|
136
|
+
end_point += 4
|
|
137
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
138
|
+
start = end_point
|
|
139
|
+
end_point += length
|
|
140
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
141
|
+
start = end_point
|
|
142
|
+
end_point += ROS::Struct::calc_size('d7')
|
|
143
|
+
(@pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w,) = @@struct_d7.unpack(str[start..(end_point-1)])
|
|
144
|
+
return self
|
|
145
|
+
rescue => exception
|
|
146
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end # end of class
|
|
150
|
+
end # end of module
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from PoseWithCovariance.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "geometry_msgs/Quaternion"
|
|
5
|
+
require "geometry_msgs/Point"
|
|
6
|
+
require "geometry_msgs/Pose"
|
|
7
|
+
|
|
8
|
+
module Geometry_msgs
|
|
9
|
+
|
|
10
|
+
class PoseWithCovariance <::ROS::Message
|
|
11
|
+
def self.md5sum
|
|
12
|
+
"c23e848cf1b7533a8d7c259073a97e6f"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def self.type
|
|
16
|
+
"geometry_msgs/PoseWithCovariance"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def has_header?
|
|
20
|
+
false
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def message_definition
|
|
24
|
+
"# This represents a pose in free space with uncertainty.
|
|
25
|
+
|
|
26
|
+
Pose pose
|
|
27
|
+
|
|
28
|
+
# Row-major representation of the 6x6 covariance matrix
|
|
29
|
+
# The orientation parameters use a fixed-axis representation.
|
|
30
|
+
# In order, the parameters are:
|
|
31
|
+
# (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)
|
|
32
|
+
float64[36] covariance
|
|
33
|
+
|
|
34
|
+
================================================================================
|
|
35
|
+
MSG: geometry_msgs/Pose
|
|
36
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
37
|
+
Point position
|
|
38
|
+
Quaternion orientation
|
|
39
|
+
|
|
40
|
+
================================================================================
|
|
41
|
+
MSG: geometry_msgs/Point
|
|
42
|
+
# This contains the position of a point in free space
|
|
43
|
+
float64 x
|
|
44
|
+
float64 y
|
|
45
|
+
float64 z
|
|
46
|
+
|
|
47
|
+
================================================================================
|
|
48
|
+
MSG: geometry_msgs/Quaternion
|
|
49
|
+
# This represents an orientation in free space in quaternion form.
|
|
50
|
+
|
|
51
|
+
float64 x
|
|
52
|
+
float64 y
|
|
53
|
+
float64 z
|
|
54
|
+
float64 w
|
|
55
|
+
|
|
56
|
+
"
|
|
57
|
+
end
|
|
58
|
+
attr_accessor :pose, :covariance
|
|
59
|
+
|
|
60
|
+
@@struct_d36 = ::ROS::Struct.new("d36")
|
|
61
|
+
@@struct_d7 = ::ROS::Struct.new("d7")
|
|
62
|
+
|
|
63
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
64
|
+
@@slot_types = ['geometry_msgs/Pose','float64[36]']
|
|
65
|
+
|
|
66
|
+
def initialize
|
|
67
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
68
|
+
# set to None will be assigned a default value. The recommend
|
|
69
|
+
# use is keyword arguments as this is more robust to future message
|
|
70
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
71
|
+
#
|
|
72
|
+
# The available fields are:
|
|
73
|
+
# pose,covariance
|
|
74
|
+
#
|
|
75
|
+
# @param args: complete set of field values, in .msg order
|
|
76
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
77
|
+
# to set specific fields.
|
|
78
|
+
#
|
|
79
|
+
|
|
80
|
+
# message fields cannot be None, assign default values for those that are
|
|
81
|
+
@pose = Geometry_msgs::Pose.new
|
|
82
|
+
@covariance = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def _get_types
|
|
86
|
+
# internal API method
|
|
87
|
+
return @slot_types
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def serialize(buff)
|
|
91
|
+
# serialize message into buffer
|
|
92
|
+
# @param buff: buffer
|
|
93
|
+
# @type buff: StringIO
|
|
94
|
+
begin
|
|
95
|
+
buff.write(@@struct_d7.pack(@pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w))
|
|
96
|
+
buff.write(@@struct_d36.pack(*@covariance))
|
|
97
|
+
rescue => exception
|
|
98
|
+
raise "some erro in serialize: #{exception}"
|
|
99
|
+
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def deserialize(str)
|
|
104
|
+
# unpack serialized message in str into this message instance
|
|
105
|
+
# @param str: byte array of serialized message
|
|
106
|
+
# @type str: str
|
|
107
|
+
|
|
108
|
+
begin
|
|
109
|
+
if @pose == nil
|
|
110
|
+
@pose = Geometry_msgs::Pose.new
|
|
111
|
+
end
|
|
112
|
+
end_point = 0
|
|
113
|
+
start = end_point
|
|
114
|
+
end_point += ROS::Struct::calc_size('d7')
|
|
115
|
+
(@pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w,) = @@struct_d7.unpack(str[start..(end_point-1)])
|
|
116
|
+
start = end_point
|
|
117
|
+
end_point += 8
|
|
118
|
+
@covariance = @@struct_d36.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,169 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from PoseWithCovarianceStamped.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/PoseWithCovariance"
|
|
8
|
+
require "geometry_msgs/Pose"
|
|
9
|
+
|
|
10
|
+
module Geometry_msgs
|
|
11
|
+
|
|
12
|
+
class PoseWithCovarianceStamped <::ROS::Message
|
|
13
|
+
def self.md5sum
|
|
14
|
+
"953b798c0f514ff060a53a3498ce6246"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def self.type
|
|
18
|
+
"geometry_msgs/PoseWithCovarianceStamped"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def has_header?
|
|
22
|
+
true
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def message_definition
|
|
26
|
+
"# This expresses an estimated pose with a reference coordinate frame and timestamp
|
|
27
|
+
|
|
28
|
+
Header header
|
|
29
|
+
PoseWithCovariance pose
|
|
30
|
+
|
|
31
|
+
================================================================================
|
|
32
|
+
MSG: std_msgs/Header
|
|
33
|
+
# Standard metadata for higher-level stamped data types.
|
|
34
|
+
# This is generally used to communicate timestamped data
|
|
35
|
+
# in a particular coordinate frame.
|
|
36
|
+
#
|
|
37
|
+
# sequence ID: consecutively increasing ID
|
|
38
|
+
uint32 seq
|
|
39
|
+
#Two-integer timestamp that is expressed as:
|
|
40
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
41
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
42
|
+
# time-handling sugar is provided by the client library
|
|
43
|
+
time stamp
|
|
44
|
+
#Frame this data is associated with
|
|
45
|
+
# 0: no frame
|
|
46
|
+
# 1: global frame
|
|
47
|
+
string frame_id
|
|
48
|
+
|
|
49
|
+
================================================================================
|
|
50
|
+
MSG: geometry_msgs/PoseWithCovariance
|
|
51
|
+
# This represents a pose in free space with uncertainty.
|
|
52
|
+
|
|
53
|
+
Pose pose
|
|
54
|
+
|
|
55
|
+
# Row-major representation of the 6x6 covariance matrix
|
|
56
|
+
# The orientation parameters use a fixed-axis representation.
|
|
57
|
+
# In order, the parameters are:
|
|
58
|
+
# (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)
|
|
59
|
+
float64[36] covariance
|
|
60
|
+
|
|
61
|
+
================================================================================
|
|
62
|
+
MSG: geometry_msgs/Pose
|
|
63
|
+
# A representation of pose in free space, composed of postion and orientation.
|
|
64
|
+
Point position
|
|
65
|
+
Quaternion orientation
|
|
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: geometry_msgs/Quaternion
|
|
76
|
+
# This represents an orientation in free space in quaternion form.
|
|
77
|
+
|
|
78
|
+
float64 x
|
|
79
|
+
float64 y
|
|
80
|
+
float64 z
|
|
81
|
+
float64 w
|
|
82
|
+
|
|
83
|
+
"
|
|
84
|
+
end
|
|
85
|
+
attr_accessor :header, :pose
|
|
86
|
+
|
|
87
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
88
|
+
@@struct_d7 = ::ROS::Struct.new("d7")
|
|
89
|
+
@@struct_d36 = ::ROS::Struct.new("d36")
|
|
90
|
+
|
|
91
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
92
|
+
@@slot_types = ['Header','geometry_msgs/PoseWithCovariance']
|
|
93
|
+
|
|
94
|
+
def initialize
|
|
95
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
96
|
+
# set to None will be assigned a default value. The recommend
|
|
97
|
+
# use is keyword arguments as this is more robust to future message
|
|
98
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
99
|
+
#
|
|
100
|
+
# The available fields are:
|
|
101
|
+
# header,pose
|
|
102
|
+
#
|
|
103
|
+
# @param args: complete set of field values, in .msg order
|
|
104
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
105
|
+
# to set specific fields.
|
|
106
|
+
#
|
|
107
|
+
|
|
108
|
+
# message fields cannot be None, assign default values for those that are
|
|
109
|
+
@header = Std_msgs::Header.new
|
|
110
|
+
@pose = Geometry_msgs::PoseWithCovariance.new
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def _get_types
|
|
114
|
+
# internal API method
|
|
115
|
+
return @slot_types
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
def serialize(buff)
|
|
119
|
+
# serialize message into buffer
|
|
120
|
+
# @param buff: buffer
|
|
121
|
+
# @type buff: StringIO
|
|
122
|
+
begin
|
|
123
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
124
|
+
_x = @header.frame_id
|
|
125
|
+
length = _x.length
|
|
126
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
127
|
+
buff.write(@@struct_d7.pack(@pose.pose.position.x, @pose.pose.position.y, @pose.pose.position.z, @pose.pose.orientation.x, @pose.pose.orientation.y, @pose.pose.orientation.z, @pose.pose.orientation.w))
|
|
128
|
+
buff.write(@@struct_d36.pack(*@pose.covariance))
|
|
129
|
+
rescue => exception
|
|
130
|
+
raise "some erro in serialize: #{exception}"
|
|
131
|
+
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
def deserialize(str)
|
|
136
|
+
# unpack serialized message in str into this message instance
|
|
137
|
+
# @param str: byte array of serialized message
|
|
138
|
+
# @type str: str
|
|
139
|
+
|
|
140
|
+
begin
|
|
141
|
+
if @header == nil
|
|
142
|
+
@header = Std_msgs::Header.new
|
|
143
|
+
end
|
|
144
|
+
if @pose == nil
|
|
145
|
+
@pose = Geometry_msgs::PoseWithCovariance.new
|
|
146
|
+
end
|
|
147
|
+
end_point = 0
|
|
148
|
+
start = end_point
|
|
149
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
150
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
151
|
+
start = end_point
|
|
152
|
+
end_point += 4
|
|
153
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
154
|
+
start = end_point
|
|
155
|
+
end_point += length
|
|
156
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
157
|
+
start = end_point
|
|
158
|
+
end_point += ROS::Struct::calc_size('d7')
|
|
159
|
+
(@pose.pose.position.x, @pose.pose.position.y, @pose.pose.position.z, @pose.pose.orientation.x, @pose.pose.orientation.y, @pose.pose.orientation.z, @pose.pose.orientation.w,) = @@struct_d7.unpack(str[start..(end_point-1)])
|
|
160
|
+
start = end_point
|
|
161
|
+
end_point += 8
|
|
162
|
+
@pose.covariance = @@struct_d36.unpack(str[start..(end_point-1)])
|
|
163
|
+
return self
|
|
164
|
+
rescue => exception
|
|
165
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end # end of class
|
|
169
|
+
end # end of module
|