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
data/lib/roscpp/Empty.rb
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from EmptyRequest.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
module Roscpp
|
|
6
|
+
|
|
7
|
+
class EmptyRequest <::ROS::Message
|
|
8
|
+
def self.md5sum
|
|
9
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def self.type
|
|
13
|
+
"roscpp/EmptyRequest"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def has_header?
|
|
17
|
+
false
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def message_definition
|
|
21
|
+
"
|
|
22
|
+
"
|
|
23
|
+
end
|
|
24
|
+
attr_accessor
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
28
|
+
@@slot_types = []
|
|
29
|
+
|
|
30
|
+
def initialize
|
|
31
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
32
|
+
# set to None will be assigned a default value. The recommend
|
|
33
|
+
# use is keyword arguments as this is more robust to future message
|
|
34
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
35
|
+
#
|
|
36
|
+
# The available fields are:
|
|
37
|
+
#
|
|
38
|
+
#
|
|
39
|
+
# @param args: complete set of field values, in .msg order
|
|
40
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
41
|
+
# to set specific fields.
|
|
42
|
+
#
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _get_types
|
|
46
|
+
# internal API method
|
|
47
|
+
return @slot_types
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def serialize(buff)
|
|
51
|
+
# serialize message into buffer
|
|
52
|
+
# @param buff: buffer
|
|
53
|
+
# @type buff: StringIO
|
|
54
|
+
begin
|
|
55
|
+
pass
|
|
56
|
+
rescue => exception
|
|
57
|
+
raise "some erro in serialize: #{exception}"
|
|
58
|
+
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def deserialize(str)
|
|
63
|
+
# unpack serialized message in str into this message instance
|
|
64
|
+
# @param str: byte array of serialized message
|
|
65
|
+
# @type str: str
|
|
66
|
+
|
|
67
|
+
begin
|
|
68
|
+
end_point = 0
|
|
69
|
+
return self
|
|
70
|
+
rescue => exception
|
|
71
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end # end of class
|
|
75
|
+
end # end of module
|
|
76
|
+
# autogenerated by genmsg_ruby from EmptyResponse.msg. Do not edit.
|
|
77
|
+
require 'ros/message'
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
module Roscpp
|
|
81
|
+
|
|
82
|
+
class EmptyResponse <::ROS::Message
|
|
83
|
+
def self.md5sum
|
|
84
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def self.type
|
|
88
|
+
"roscpp/EmptyResponse"
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
def has_header?
|
|
92
|
+
false
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
def message_definition
|
|
96
|
+
"
|
|
97
|
+
"
|
|
98
|
+
end
|
|
99
|
+
attr_accessor
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
103
|
+
@@slot_types = []
|
|
104
|
+
|
|
105
|
+
def initialize
|
|
106
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
107
|
+
# set to None will be assigned a default value. The recommend
|
|
108
|
+
# use is keyword arguments as this is more robust to future message
|
|
109
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
110
|
+
#
|
|
111
|
+
# The available fields are:
|
|
112
|
+
#
|
|
113
|
+
#
|
|
114
|
+
# @param args: complete set of field values, in .msg order
|
|
115
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
116
|
+
# to set specific fields.
|
|
117
|
+
#
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def _get_types
|
|
121
|
+
# internal API method
|
|
122
|
+
return @slot_types
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def serialize(buff)
|
|
126
|
+
# serialize message into buffer
|
|
127
|
+
# @param buff: buffer
|
|
128
|
+
# @type buff: StringIO
|
|
129
|
+
begin
|
|
130
|
+
pass
|
|
131
|
+
rescue => exception
|
|
132
|
+
raise "some erro in serialize: #{exception}"
|
|
133
|
+
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
def deserialize(str)
|
|
138
|
+
# unpack serialized message in str into this message instance
|
|
139
|
+
# @param str: byte array of serialized message
|
|
140
|
+
# @type str: str
|
|
141
|
+
|
|
142
|
+
begin
|
|
143
|
+
end_point = 0
|
|
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
|
|
151
|
+
module Roscpp
|
|
152
|
+
class Empty
|
|
153
|
+
def self.type
|
|
154
|
+
'roscpp/Empty'
|
|
155
|
+
end
|
|
156
|
+
def self.md5sum
|
|
157
|
+
'd41d8cd98f00b204e9800998ecf8427e'
|
|
158
|
+
end
|
|
159
|
+
def self.request_class
|
|
160
|
+
EmptyRequest
|
|
161
|
+
end
|
|
162
|
+
def self.response_class
|
|
163
|
+
EmptyResponse
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from GetLoggersRequest.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
module Roscpp
|
|
6
|
+
|
|
7
|
+
class GetLoggersRequest <::ROS::Message
|
|
8
|
+
def self.md5sum
|
|
9
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def self.type
|
|
13
|
+
"roscpp/GetLoggersRequest"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def has_header?
|
|
17
|
+
false
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def message_definition
|
|
21
|
+
"
|
|
22
|
+
"
|
|
23
|
+
end
|
|
24
|
+
attr_accessor
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
28
|
+
@@slot_types = []
|
|
29
|
+
|
|
30
|
+
def initialize
|
|
31
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
32
|
+
# set to None will be assigned a default value. The recommend
|
|
33
|
+
# use is keyword arguments as this is more robust to future message
|
|
34
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
35
|
+
#
|
|
36
|
+
# The available fields are:
|
|
37
|
+
#
|
|
38
|
+
#
|
|
39
|
+
# @param args: complete set of field values, in .msg order
|
|
40
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
41
|
+
# to set specific fields.
|
|
42
|
+
#
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _get_types
|
|
46
|
+
# internal API method
|
|
47
|
+
return @slot_types
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def serialize(buff)
|
|
51
|
+
# serialize message into buffer
|
|
52
|
+
# @param buff: buffer
|
|
53
|
+
# @type buff: StringIO
|
|
54
|
+
begin
|
|
55
|
+
pass
|
|
56
|
+
rescue => exception
|
|
57
|
+
raise "some erro in serialize: #{exception}"
|
|
58
|
+
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def deserialize(str)
|
|
63
|
+
# unpack serialized message in str into this message instance
|
|
64
|
+
# @param str: byte array of serialized message
|
|
65
|
+
# @type str: str
|
|
66
|
+
|
|
67
|
+
begin
|
|
68
|
+
end_point = 0
|
|
69
|
+
return self
|
|
70
|
+
rescue => exception
|
|
71
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end # end of class
|
|
75
|
+
end # end of module
|
|
76
|
+
# autogenerated by genmsg_ruby from GetLoggersResponse.msg. Do not edit.
|
|
77
|
+
require 'ros/message'
|
|
78
|
+
|
|
79
|
+
require "roscpp/Logger"
|
|
80
|
+
|
|
81
|
+
module Roscpp
|
|
82
|
+
|
|
83
|
+
class GetLoggersResponse <::ROS::Message
|
|
84
|
+
def self.md5sum
|
|
85
|
+
"32e97e85527d4678a8f9279894bb64b0"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def self.type
|
|
89
|
+
"roscpp/GetLoggersResponse"
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
def has_header?
|
|
93
|
+
false
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def message_definition
|
|
97
|
+
"Logger[] loggers
|
|
98
|
+
|
|
99
|
+
================================================================================
|
|
100
|
+
MSG: roscpp/Logger
|
|
101
|
+
string name
|
|
102
|
+
string level
|
|
103
|
+
|
|
104
|
+
"
|
|
105
|
+
end
|
|
106
|
+
attr_accessor :loggers
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
110
|
+
@@slot_types = ['roscpp/Logger[]']
|
|
111
|
+
|
|
112
|
+
def initialize
|
|
113
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
114
|
+
# set to None will be assigned a default value. The recommend
|
|
115
|
+
# use is keyword arguments as this is more robust to future message
|
|
116
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
117
|
+
#
|
|
118
|
+
# The available fields are:
|
|
119
|
+
# loggers
|
|
120
|
+
#
|
|
121
|
+
# @param args: complete set of field values, in .msg order
|
|
122
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
123
|
+
# to set specific fields.
|
|
124
|
+
#
|
|
125
|
+
|
|
126
|
+
# message fields cannot be None, assign default values for those that are
|
|
127
|
+
@loggers = []
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
def _get_types
|
|
131
|
+
# internal API method
|
|
132
|
+
return @slot_types
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
def serialize(buff)
|
|
136
|
+
# serialize message into buffer
|
|
137
|
+
# @param buff: buffer
|
|
138
|
+
# @type buff: StringIO
|
|
139
|
+
begin
|
|
140
|
+
length = @loggers.length
|
|
141
|
+
buff.write(@@struct_L.pack(length))
|
|
142
|
+
for val1 in @loggers
|
|
143
|
+
_x = val1.name
|
|
144
|
+
length = _x.length
|
|
145
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
146
|
+
_x = val1.level
|
|
147
|
+
length = _x.length
|
|
148
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
149
|
+
end
|
|
150
|
+
rescue => exception
|
|
151
|
+
raise "some erro in serialize: #{exception}"
|
|
152
|
+
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
def deserialize(str)
|
|
157
|
+
# unpack serialized message in str into this message instance
|
|
158
|
+
# @param str: byte array of serialized message
|
|
159
|
+
# @type str: str
|
|
160
|
+
|
|
161
|
+
begin
|
|
162
|
+
end_point = 0
|
|
163
|
+
start = end_point
|
|
164
|
+
end_point += 4
|
|
165
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
166
|
+
@loggers = []
|
|
167
|
+
length.times do
|
|
168
|
+
val1 = Roscpp::Logger.new
|
|
169
|
+
start = end_point
|
|
170
|
+
end_point += 4
|
|
171
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
172
|
+
start = end_point
|
|
173
|
+
end_point += length
|
|
174
|
+
val1.name = str[start..(end_point-1)]
|
|
175
|
+
start = end_point
|
|
176
|
+
end_point += 4
|
|
177
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
178
|
+
start = end_point
|
|
179
|
+
end_point += length
|
|
180
|
+
val1.level = str[start..(end_point-1)]
|
|
181
|
+
@loggers.push(val1)
|
|
182
|
+
end
|
|
183
|
+
return self
|
|
184
|
+
rescue => exception
|
|
185
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
end # end of class
|
|
189
|
+
end # end of module
|
|
190
|
+
module Roscpp
|
|
191
|
+
class GetLoggers
|
|
192
|
+
def self.type
|
|
193
|
+
'roscpp/GetLoggers'
|
|
194
|
+
end
|
|
195
|
+
def self.md5sum
|
|
196
|
+
'32e97e85527d4678a8f9279894bb64b0'
|
|
197
|
+
end
|
|
198
|
+
def self.request_class
|
|
199
|
+
GetLoggersRequest
|
|
200
|
+
end
|
|
201
|
+
def self.response_class
|
|
202
|
+
GetLoggersResponse
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from Logger.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
module Roscpp
|
|
6
|
+
|
|
7
|
+
class Logger <::ROS::Message
|
|
8
|
+
def self.md5sum
|
|
9
|
+
"a6069a2ff40db7bd32143dd66e1f408e"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def self.type
|
|
13
|
+
"roscpp/Logger"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def has_header?
|
|
17
|
+
false
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def message_definition
|
|
21
|
+
"string name
|
|
22
|
+
string level
|
|
23
|
+
|
|
24
|
+
"
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :name, :level
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
30
|
+
@@slot_types = ['string','string']
|
|
31
|
+
|
|
32
|
+
def initialize
|
|
33
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
34
|
+
# set to None will be assigned a default value. The recommend
|
|
35
|
+
# use is keyword arguments as this is more robust to future message
|
|
36
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
37
|
+
#
|
|
38
|
+
# The available fields are:
|
|
39
|
+
# name,level
|
|
40
|
+
#
|
|
41
|
+
# @param args: complete set of field values, in .msg order
|
|
42
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
43
|
+
# to set specific fields.
|
|
44
|
+
#
|
|
45
|
+
|
|
46
|
+
# message fields cannot be None, assign default values for those that are
|
|
47
|
+
@name = ''
|
|
48
|
+
@level = ''
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def _get_types
|
|
52
|
+
# internal API method
|
|
53
|
+
return @slot_types
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def serialize(buff)
|
|
57
|
+
# serialize message into buffer
|
|
58
|
+
# @param buff: buffer
|
|
59
|
+
# @type buff: StringIO
|
|
60
|
+
begin
|
|
61
|
+
_x = @name
|
|
62
|
+
length = _x.length
|
|
63
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
64
|
+
_x = @level
|
|
65
|
+
length = _x.length
|
|
66
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
67
|
+
rescue => exception
|
|
68
|
+
raise "some erro in serialize: #{exception}"
|
|
69
|
+
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def deserialize(str)
|
|
74
|
+
# unpack serialized message in str into this message instance
|
|
75
|
+
# @param str: byte array of serialized message
|
|
76
|
+
# @type str: str
|
|
77
|
+
|
|
78
|
+
begin
|
|
79
|
+
end_point = 0
|
|
80
|
+
start = end_point
|
|
81
|
+
end_point += 4
|
|
82
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
83
|
+
start = end_point
|
|
84
|
+
end_point += length
|
|
85
|
+
@name = str[start..(end_point-1)]
|
|
86
|
+
start = end_point
|
|
87
|
+
end_point += 4
|
|
88
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
89
|
+
start = end_point
|
|
90
|
+
end_point += length
|
|
91
|
+
@level = str[start..(end_point-1)]
|
|
92
|
+
return self
|
|
93
|
+
rescue => exception
|
|
94
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end # end of class
|
|
98
|
+
end # end of module
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from SetLoggerLevelRequest.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
module Roscpp
|
|
6
|
+
|
|
7
|
+
class SetLoggerLevelRequest <::ROS::Message
|
|
8
|
+
def self.md5sum
|
|
9
|
+
"51da076440d78ca1684d36c868df61ea"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def self.type
|
|
13
|
+
"roscpp/SetLoggerLevelRequest"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def has_header?
|
|
17
|
+
false
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def message_definition
|
|
21
|
+
"string logger
|
|
22
|
+
string level
|
|
23
|
+
|
|
24
|
+
"
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :logger, :level
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
30
|
+
@@slot_types = ['string','string']
|
|
31
|
+
|
|
32
|
+
def initialize
|
|
33
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
34
|
+
# set to None will be assigned a default value. The recommend
|
|
35
|
+
# use is keyword arguments as this is more robust to future message
|
|
36
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
37
|
+
#
|
|
38
|
+
# The available fields are:
|
|
39
|
+
# logger,level
|
|
40
|
+
#
|
|
41
|
+
# @param args: complete set of field values, in .msg order
|
|
42
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
43
|
+
# to set specific fields.
|
|
44
|
+
#
|
|
45
|
+
|
|
46
|
+
# message fields cannot be None, assign default values for those that are
|
|
47
|
+
@logger = ''
|
|
48
|
+
@level = ''
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def _get_types
|
|
52
|
+
# internal API method
|
|
53
|
+
return @slot_types
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def serialize(buff)
|
|
57
|
+
# serialize message into buffer
|
|
58
|
+
# @param buff: buffer
|
|
59
|
+
# @type buff: StringIO
|
|
60
|
+
begin
|
|
61
|
+
_x = @logger
|
|
62
|
+
length = _x.length
|
|
63
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
64
|
+
_x = @level
|
|
65
|
+
length = _x.length
|
|
66
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
67
|
+
rescue => exception
|
|
68
|
+
raise "some erro in serialize: #{exception}"
|
|
69
|
+
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def deserialize(str)
|
|
74
|
+
# unpack serialized message in str into this message instance
|
|
75
|
+
# @param str: byte array of serialized message
|
|
76
|
+
# @type str: str
|
|
77
|
+
|
|
78
|
+
begin
|
|
79
|
+
end_point = 0
|
|
80
|
+
start = end_point
|
|
81
|
+
end_point += 4
|
|
82
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
83
|
+
start = end_point
|
|
84
|
+
end_point += length
|
|
85
|
+
@logger = str[start..(end_point-1)]
|
|
86
|
+
start = end_point
|
|
87
|
+
end_point += 4
|
|
88
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
89
|
+
start = end_point
|
|
90
|
+
end_point += length
|
|
91
|
+
@level = str[start..(end_point-1)]
|
|
92
|
+
return self
|
|
93
|
+
rescue => exception
|
|
94
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end # end of class
|
|
98
|
+
end # end of module
|
|
99
|
+
# autogenerated by genmsg_ruby from SetLoggerLevelResponse.msg. Do not edit.
|
|
100
|
+
require 'ros/message'
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
module Roscpp
|
|
104
|
+
|
|
105
|
+
class SetLoggerLevelResponse <::ROS::Message
|
|
106
|
+
def self.md5sum
|
|
107
|
+
"d41d8cd98f00b204e9800998ecf8427e"
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
def self.type
|
|
111
|
+
"roscpp/SetLoggerLevelResponse"
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
def has_header?
|
|
115
|
+
false
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
def message_definition
|
|
119
|
+
"
|
|
120
|
+
"
|
|
121
|
+
end
|
|
122
|
+
attr_accessor
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
126
|
+
@@slot_types = []
|
|
127
|
+
|
|
128
|
+
def initialize
|
|
129
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
|
130
|
+
# set to None will be assigned a default value. The recommend
|
|
131
|
+
# use is keyword arguments as this is more robust to future message
|
|
132
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
|
133
|
+
#
|
|
134
|
+
# The available fields are:
|
|
135
|
+
#
|
|
136
|
+
#
|
|
137
|
+
# @param args: complete set of field values, in .msg order
|
|
138
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
|
139
|
+
# to set specific fields.
|
|
140
|
+
#
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
def _get_types
|
|
144
|
+
# internal API method
|
|
145
|
+
return @slot_types
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
def serialize(buff)
|
|
149
|
+
# serialize message into buffer
|
|
150
|
+
# @param buff: buffer
|
|
151
|
+
# @type buff: StringIO
|
|
152
|
+
begin
|
|
153
|
+
pass
|
|
154
|
+
rescue => exception
|
|
155
|
+
raise "some erro in serialize: #{exception}"
|
|
156
|
+
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
def deserialize(str)
|
|
161
|
+
# unpack serialized message in str into this message instance
|
|
162
|
+
# @param str: byte array of serialized message
|
|
163
|
+
# @type str: str
|
|
164
|
+
|
|
165
|
+
begin
|
|
166
|
+
end_point = 0
|
|
167
|
+
return self
|
|
168
|
+
rescue => exception
|
|
169
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
end # end of class
|
|
173
|
+
end # end of module
|
|
174
|
+
module Roscpp
|
|
175
|
+
class SetLoggerLevel
|
|
176
|
+
def self.type
|
|
177
|
+
'roscpp/SetLoggerLevel'
|
|
178
|
+
end
|
|
179
|
+
def self.md5sum
|
|
180
|
+
'51da076440d78ca1684d36c868df61ea'
|
|
181
|
+
end
|
|
182
|
+
def self.request_class
|
|
183
|
+
SetLoggerLevelRequest
|
|
184
|
+
end
|
|
185
|
+
def self.response_class
|
|
186
|
+
SetLoggerLevelResponse
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
end
|