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,185 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from TwoIntsRequest.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
module Roscpp_tutorials
|
|
6
|
+
|
|
7
|
+
class TwoIntsRequest <::ROS::Message
|
|
8
|
+
def self.md5sum
|
|
9
|
+
"36d09b846be0b371c5f190354dd3153e"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def self.type
|
|
13
|
+
"roscpp_tutorials/TwoIntsRequest"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def has_header?
|
|
17
|
+
false
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def message_definition
|
|
21
|
+
"int64 a
|
|
22
|
+
int64 b
|
|
23
|
+
|
|
24
|
+
"
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :a, :b
|
|
27
|
+
|
|
28
|
+
@@struct_q2 = ::ROS::Struct.new("q2")
|
|
29
|
+
|
|
30
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
31
|
+
@@slot_types = ['int64','int64']
|
|
32
|
+
|
|
33
|
+
def initialize
|
|
34
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
35
|
+
# set to None will be assigned a default value. The recommend
|
|
36
|
+
# use is keyword arguments as this is more robust to future message
|
|
37
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
38
|
+
#
|
|
39
|
+
# The available fields are:
|
|
40
|
+
# a,b
|
|
41
|
+
#
|
|
42
|
+
# @param args: complete set of field values, in .msg order
|
|
43
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
44
|
+
# to set specific fields.
|
|
45
|
+
#
|
|
46
|
+
|
|
47
|
+
# message fields cannot be None, assign default values for those that are
|
|
48
|
+
@a = 0
|
|
49
|
+
@b = 0
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def _get_types
|
|
53
|
+
# internal API method
|
|
54
|
+
return @slot_types
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def serialize(buff)
|
|
58
|
+
# serialize message into buffer
|
|
59
|
+
# @param buff: buffer
|
|
60
|
+
# @type buff: StringIO
|
|
61
|
+
begin
|
|
62
|
+
buff.write(@@struct_q2.pack(@a, @b))
|
|
63
|
+
rescue => exception
|
|
64
|
+
raise "some erro in serialize: #{exception}"
|
|
65
|
+
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def deserialize(str)
|
|
70
|
+
# unpack serialized message in str into this message instance
|
|
71
|
+
# @param str: byte array of serialized message
|
|
72
|
+
# @type str: str
|
|
73
|
+
|
|
74
|
+
begin
|
|
75
|
+
end_point = 0
|
|
76
|
+
start = end_point
|
|
77
|
+
end_point += ROS::Struct::calc_size('q2')
|
|
78
|
+
(@a, @b,) = @@struct_q2.unpack(str[start..(end_point-1)])
|
|
79
|
+
return self
|
|
80
|
+
rescue => exception
|
|
81
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end # end of class
|
|
85
|
+
end # end of module
|
|
86
|
+
# autogenerated by genmsg_ruby from TwoIntsResponse.msg. Do not edit.
|
|
87
|
+
require 'ros/message'
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
module Roscpp_tutorials
|
|
91
|
+
|
|
92
|
+
class TwoIntsResponse <::ROS::Message
|
|
93
|
+
def self.md5sum
|
|
94
|
+
"b88405221c77b1878a3cbbfff53428d7"
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
def self.type
|
|
98
|
+
"roscpp_tutorials/TwoIntsResponse"
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
def has_header?
|
|
102
|
+
false
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
def message_definition
|
|
106
|
+
"int64 sum
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
"
|
|
110
|
+
end
|
|
111
|
+
attr_accessor :sum
|
|
112
|
+
|
|
113
|
+
@@struct_q = ::ROS::Struct.new("q")
|
|
114
|
+
|
|
115
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
116
|
+
@@slot_types = ['int64']
|
|
117
|
+
|
|
118
|
+
def initialize
|
|
119
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
120
|
+
# set to None will be assigned a default value. The recommend
|
|
121
|
+
# use is keyword arguments as this is more robust to future message
|
|
122
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
123
|
+
#
|
|
124
|
+
# The available fields are:
|
|
125
|
+
# sum
|
|
126
|
+
#
|
|
127
|
+
# @param args: complete set of field values, in .msg order
|
|
128
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
129
|
+
# to set specific fields.
|
|
130
|
+
#
|
|
131
|
+
|
|
132
|
+
# message fields cannot be None, assign default values for those that are
|
|
133
|
+
@sum = 0
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
def _get_types
|
|
137
|
+
# internal API method
|
|
138
|
+
return @slot_types
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
def serialize(buff)
|
|
142
|
+
# serialize message into buffer
|
|
143
|
+
# @param buff: buffer
|
|
144
|
+
# @type buff: StringIO
|
|
145
|
+
begin
|
|
146
|
+
buff.write(@@struct_q.pack(@sum))
|
|
147
|
+
rescue => exception
|
|
148
|
+
raise "some erro in serialize: #{exception}"
|
|
149
|
+
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
def deserialize(str)
|
|
154
|
+
# unpack serialized message in str into this message instance
|
|
155
|
+
# @param str: byte array of serialized message
|
|
156
|
+
# @type str: str
|
|
157
|
+
|
|
158
|
+
begin
|
|
159
|
+
end_point = 0
|
|
160
|
+
start = end_point
|
|
161
|
+
end_point += ROS::Struct::calc_size('q')
|
|
162
|
+
(@sum,) = @@struct_q.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
|
|
170
|
+
module Roscpp_tutorials
|
|
171
|
+
class TwoInts
|
|
172
|
+
def self.type
|
|
173
|
+
'roscpp_tutorials/TwoInts'
|
|
174
|
+
end
|
|
175
|
+
def self.md5sum
|
|
176
|
+
'6a2e34150c00229791cc89ff309fff21'
|
|
177
|
+
end
|
|
178
|
+
def self.request_class
|
|
179
|
+
TwoIntsRequest
|
|
180
|
+
end
|
|
181
|
+
def self.response_class
|
|
182
|
+
TwoIntsResponse
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from Clock.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "ros/time"
|
|
5
|
+
|
|
6
|
+
module Rosgraph_msgs
|
|
7
|
+
|
|
8
|
+
class Clock <::ROS::Message
|
|
9
|
+
def self.md5sum
|
|
10
|
+
"a9c97c1d230cfc112e270351a944ee47"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def self.type
|
|
14
|
+
"rosgraph_msgs/Clock"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def has_header?
|
|
18
|
+
false
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def message_definition
|
|
22
|
+
"# roslib/Clock is used for publishing simulated time in ROS.
|
|
23
|
+
# This message simply communicates the current time.
|
|
24
|
+
# For more information, see http://www.ros.org/wiki/Clock
|
|
25
|
+
time clock
|
|
26
|
+
|
|
27
|
+
"
|
|
28
|
+
end
|
|
29
|
+
attr_accessor :clock
|
|
30
|
+
|
|
31
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
|
32
|
+
|
|
33
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
34
|
+
@@slot_types = ['time']
|
|
35
|
+
|
|
36
|
+
def initialize
|
|
37
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
38
|
+
# set to None will be assigned a default value. The recommend
|
|
39
|
+
# use is keyword arguments as this is more robust to future message
|
|
40
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
41
|
+
#
|
|
42
|
+
# The available fields are:
|
|
43
|
+
# clock
|
|
44
|
+
#
|
|
45
|
+
# @param args: complete set of field values, in .msg order
|
|
46
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
47
|
+
# to set specific fields.
|
|
48
|
+
#
|
|
49
|
+
|
|
50
|
+
# message fields cannot be None, assign default values for those that are
|
|
51
|
+
@clock = ROS::Time.new
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def _get_types
|
|
55
|
+
# internal API method
|
|
56
|
+
return @slot_types
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
def serialize(buff)
|
|
60
|
+
# serialize message into buffer
|
|
61
|
+
# @param buff: buffer
|
|
62
|
+
# @type buff: StringIO
|
|
63
|
+
begin
|
|
64
|
+
buff.write(@@struct_L2.pack(@clock.secs, @clock.nsecs))
|
|
65
|
+
rescue => exception
|
|
66
|
+
raise "some erro in serialize: #{exception}"
|
|
67
|
+
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def deserialize(str)
|
|
72
|
+
# unpack serialized message in str into this message instance
|
|
73
|
+
# @param str: byte array of serialized message
|
|
74
|
+
# @type str: str
|
|
75
|
+
|
|
76
|
+
begin
|
|
77
|
+
if @clock == nil
|
|
78
|
+
@clock = ROS::Time.new
|
|
79
|
+
end
|
|
80
|
+
end_point = 0
|
|
81
|
+
start = end_point
|
|
82
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
83
|
+
(@clock.secs, @clock.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
84
|
+
return self
|
|
85
|
+
rescue => exception
|
|
86
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end # end of class
|
|
90
|
+
end # end of module
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from Log.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "std_msgs/Header"
|
|
5
|
+
|
|
6
|
+
module Rosgraph_msgs
|
|
7
|
+
|
|
8
|
+
class Log <::ROS::Message
|
|
9
|
+
def self.md5sum
|
|
10
|
+
"acffd30cd6b6de30f120938c17c593fb"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def self.type
|
|
14
|
+
"rosgraph_msgs/Log"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def has_header?
|
|
18
|
+
true
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def message_definition
|
|
22
|
+
"##
|
|
23
|
+
## Severity level constants
|
|
24
|
+
##
|
|
25
|
+
byte DEBUG=1 #debug level
|
|
26
|
+
byte INFO=2 #general level
|
|
27
|
+
byte WARN=4 #warning level
|
|
28
|
+
byte ERROR=8 #error level
|
|
29
|
+
byte FATAL=16 #fatal/critical level
|
|
30
|
+
##
|
|
31
|
+
## Fields
|
|
32
|
+
##
|
|
33
|
+
Header header
|
|
34
|
+
byte level
|
|
35
|
+
string name # name of the node
|
|
36
|
+
string msg # message
|
|
37
|
+
string file # file the message came from
|
|
38
|
+
string function # function the message came from
|
|
39
|
+
uint32 line # line the message came from
|
|
40
|
+
string[] topics # topic names that the node publishes
|
|
41
|
+
|
|
42
|
+
================================================================================
|
|
43
|
+
MSG: std_msgs/Header
|
|
44
|
+
# Standard metadata for higher-level stamped data types.
|
|
45
|
+
# This is generally used to communicate timestamped data
|
|
46
|
+
# in a particular coordinate frame.
|
|
47
|
+
#
|
|
48
|
+
# sequence ID: consecutively increasing ID
|
|
49
|
+
uint32 seq
|
|
50
|
+
#Two-integer timestamp that is expressed as:
|
|
51
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
52
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
53
|
+
# time-handling sugar is provided by the client library
|
|
54
|
+
time stamp
|
|
55
|
+
#Frame this data is associated with
|
|
56
|
+
# 0: no frame
|
|
57
|
+
# 1: global frame
|
|
58
|
+
string frame_id
|
|
59
|
+
|
|
60
|
+
"
|
|
61
|
+
end
|
|
62
|
+
# Pseudo-constants
|
|
63
|
+
DEBUG = 1
|
|
64
|
+
INFO = 2
|
|
65
|
+
WARN = 4
|
|
66
|
+
ERROR = 8
|
|
67
|
+
FATAL = 16
|
|
68
|
+
|
|
69
|
+
attr_accessor :header, :level, :name, :msg, :file, :function, :line, :topics
|
|
70
|
+
|
|
71
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
72
|
+
@@struct_c = ::ROS::Struct.new("c")
|
|
73
|
+
|
|
74
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
75
|
+
@@slot_types = ['Header','byte','string','string','string','string','uint32','string[]']
|
|
76
|
+
|
|
77
|
+
def initialize
|
|
78
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
79
|
+
# set to None will be assigned a default value. The recommend
|
|
80
|
+
# use is keyword arguments as this is more robust to future message
|
|
81
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
82
|
+
#
|
|
83
|
+
# The available fields are:
|
|
84
|
+
# header,level,name,msg,file,function,line,topics
|
|
85
|
+
#
|
|
86
|
+
# @param args: complete set of field values, in .msg order
|
|
87
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
88
|
+
# to set specific fields.
|
|
89
|
+
#
|
|
90
|
+
|
|
91
|
+
# message fields cannot be None, assign default values for those that are
|
|
92
|
+
@header = Std_msgs::Header.new
|
|
93
|
+
@level = 0
|
|
94
|
+
@name = ''
|
|
95
|
+
@msg = ''
|
|
96
|
+
@file = ''
|
|
97
|
+
@function = ''
|
|
98
|
+
@line = 0
|
|
99
|
+
@topics = []
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def _get_types
|
|
103
|
+
# internal API method
|
|
104
|
+
return @slot_types
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def serialize(buff)
|
|
108
|
+
# serialize message into buffer
|
|
109
|
+
# @param buff: buffer
|
|
110
|
+
# @type buff: StringIO
|
|
111
|
+
begin
|
|
112
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
113
|
+
_x = @header.frame_id
|
|
114
|
+
length = _x.length
|
|
115
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
116
|
+
buff.write(@@struct_c.pack(@level))
|
|
117
|
+
_x = @name
|
|
118
|
+
length = _x.length
|
|
119
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
120
|
+
_x = @msg
|
|
121
|
+
length = _x.length
|
|
122
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
123
|
+
_x = @file
|
|
124
|
+
length = _x.length
|
|
125
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
126
|
+
_x = @function
|
|
127
|
+
length = _x.length
|
|
128
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
129
|
+
buff.write(@@struct_L.pack(@line))
|
|
130
|
+
length = @topics.length
|
|
131
|
+
buff.write(@@struct_L.pack(length))
|
|
132
|
+
for val1 in @topics
|
|
133
|
+
length = val1.length
|
|
134
|
+
buff.write([length, val1].pack("La#{length}"))
|
|
135
|
+
end
|
|
136
|
+
rescue => exception
|
|
137
|
+
raise "some erro in serialize: #{exception}"
|
|
138
|
+
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
def deserialize(str)
|
|
143
|
+
# unpack serialized message in str into this message instance
|
|
144
|
+
# @param str: byte array of serialized message
|
|
145
|
+
# @type str: str
|
|
146
|
+
|
|
147
|
+
begin
|
|
148
|
+
if @header == nil
|
|
149
|
+
@header = Std_msgs::Header.new
|
|
150
|
+
end
|
|
151
|
+
end_point = 0
|
|
152
|
+
start = end_point
|
|
153
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
154
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
155
|
+
start = end_point
|
|
156
|
+
end_point += 4
|
|
157
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
158
|
+
start = end_point
|
|
159
|
+
end_point += length
|
|
160
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
161
|
+
start = end_point
|
|
162
|
+
end_point += ROS::Struct::calc_size('c')
|
|
163
|
+
(@level,) = @@struct_c.unpack(str[start..(end_point-1)])
|
|
164
|
+
start = end_point
|
|
165
|
+
end_point += 4
|
|
166
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
167
|
+
start = end_point
|
|
168
|
+
end_point += length
|
|
169
|
+
@name = str[start..(end_point-1)]
|
|
170
|
+
start = end_point
|
|
171
|
+
end_point += 4
|
|
172
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
173
|
+
start = end_point
|
|
174
|
+
end_point += length
|
|
175
|
+
@msg = str[start..(end_point-1)]
|
|
176
|
+
start = end_point
|
|
177
|
+
end_point += 4
|
|
178
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
179
|
+
start = end_point
|
|
180
|
+
end_point += length
|
|
181
|
+
@file = str[start..(end_point-1)]
|
|
182
|
+
start = end_point
|
|
183
|
+
end_point += 4
|
|
184
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
185
|
+
start = end_point
|
|
186
|
+
end_point += length
|
|
187
|
+
@function = str[start..(end_point-1)]
|
|
188
|
+
start = end_point
|
|
189
|
+
end_point += ROS::Struct::calc_size('L')
|
|
190
|
+
(@line,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
191
|
+
start = end_point
|
|
192
|
+
end_point += 4
|
|
193
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
194
|
+
@topics = []
|
|
195
|
+
length.times do
|
|
196
|
+
start = end_point
|
|
197
|
+
end_point += 4
|
|
198
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
199
|
+
start = end_point
|
|
200
|
+
end_point += length
|
|
201
|
+
val1 = str[start..(end_point-1)]
|
|
202
|
+
@topics.push(val1)
|
|
203
|
+
end
|
|
204
|
+
return self
|
|
205
|
+
rescue => exception
|
|
206
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
end # end of class
|
|
210
|
+
end # end of module
|