rosruby_msgs 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/{lib/actionlib_msgs → actionlib_msgs}/GoalID.rb +23 -24
- data/{lib/actionlib_msgs → actionlib_msgs}/GoalStatus.rb +29 -25
- data/{lib/actionlib_msgs → actionlib_msgs}/GoalStatusArray.rb +31 -32
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingAction.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionFeedback.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionGoal.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionResult.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingFeedback.rb +35 -26
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingGoal.rb +17 -23
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingResult.rb +23 -24
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciAction.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionFeedback.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionGoal.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionResult.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciFeedback.rb +17 -23
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciGoal.rb +17 -23
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciResult.rb +17 -23
- data/{lib/geometry_msgs → geometry_msgs}/Point.rb +29 -25
- data/{lib/geometry_msgs → geometry_msgs}/Point32.rb +29 -25
- data/{lib/geometry_msgs → geometry_msgs}/PointStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Polygon.rb +17 -23
- data/{lib/geometry_msgs → geometry_msgs}/PolygonStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Pose.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Pose2D.rb +29 -25
- data/{lib/geometry_msgs → geometry_msgs}/PoseArray.rb +31 -32
- data/{lib/geometry_msgs → geometry_msgs}/PoseStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/PoseWithCovariance.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/PoseWithCovarianceStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Quaternion.rb +35 -26
- data/{lib/geometry_msgs → geometry_msgs}/QuaternionStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Transform.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/TransformStamped.rb +29 -25
- data/{lib/geometry_msgs → geometry_msgs}/Twist.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/TwistStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/TwistWithCovariance.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/TwistWithCovarianceStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Vector3.rb +29 -25
- data/{lib/geometry_msgs → geometry_msgs}/Vector3Stamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Wrench.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/WrenchStamped.rb +23 -24
- data/{lib/nav_msgs → nav_msgs}/GetMap.rb +29 -45
- data/{lib/nav_msgs → nav_msgs}/GetPlan.rb +66 -68
- data/{lib/nav_msgs → nav_msgs}/GridCells.rb +35 -26
- data/{lib/nav_msgs → nav_msgs}/MapMetaData.rb +41 -27
- data/{lib/nav_msgs → nav_msgs}/OccupancyGrid.rb +29 -25
- data/{lib/nav_msgs → nav_msgs}/Odometry.rb +35 -26
- data/{lib/nav_msgs → nav_msgs}/Path.rb +43 -44
- data/pr2_controllers_msgs/JointTrajectoryAction.rb +409 -0
- data/pr2_controllers_msgs/JointTrajectoryActionFeedback.rb +206 -0
- data/pr2_controllers_msgs/JointTrajectoryActionGoal.rb +265 -0
- data/pr2_controllers_msgs/JointTrajectoryActionResult.rb +205 -0
- data/pr2_controllers_msgs/JointTrajectoryControllerState.rb +284 -0
- data/pr2_controllers_msgs/JointTrajectoryFeedback.rb +67 -0
- data/pr2_controllers_msgs/JointTrajectoryGoal.rb +196 -0
- data/pr2_controllers_msgs/JointTrajectoryResult.rb +66 -0
- data/pr2_controllers_msgs/PointHeadActionFeedback.rb +211 -0
- data/pr2_controllers_msgs/PointHeadActionGoal.rb +225 -0
- data/pr2_controllers_msgs/PointHeadActionResult.rb +205 -0
- data/pr2_controllers_msgs/PointHeadGoal.rb +186 -0
- data/pr2_controllers_msgs/Pr2GripperCommandAction.rb +334 -0
- data/pr2_controllers_msgs/Pr2GripperCommandActionGoal.rb +0 -0
- data/pr2_controllers_msgs/Pr2GripperCommandActionResult.rb +216 -0
- data/pr2_controllers_msgs/Pr2GripperCommandFeedback.rb +102 -0
- data/pr2_controllers_msgs/Pr2GripperCommandGoal.rb +87 -0
- data/pr2_controllers_msgs/Pr2GripperCommandResult.rb +101 -0
- data/pr2_controllers_msgs/SingleJointPositionAction.rb +335 -0
- data/pr2_controllers_msgs/SingleJointPositionActionFeedback.rb +228 -0
- data/pr2_controllers_msgs/SingleJointPositionActionGoal.rb +173 -0
- data/pr2_controllers_msgs/SingleJointPositionActionResult.rb +205 -0
- data/pr2_controllers_msgs/SingleJointPositionGoal.rb +96 -0
- data/pr2_controllers_msgs/SingleJointPositionResult.rb +66 -0
- data/{lib/roscpp → roscpp}/Empty.rb +24 -44
- data/{lib/roscpp → roscpp}/GetLoggers.rb +29 -45
- data/{lib/roscpp → roscpp}/Logger.rb +23 -24
- data/{lib/roscpp → roscpp}/SetLoggerLevel.rb +35 -46
- data/{lib/roscpp_tutorials → roscpp_tutorials}/TwoInts.rb +40 -47
- data/{lib/rosgraph_msgs → rosgraph_msgs}/Clock.rb +17 -23
- data/{lib/rosgraph_msgs → rosgraph_msgs}/Log.rb +59 -30
- data/{lib/sensor_msgs → sensor_msgs}/CameraInfo.rb +77 -33
- data/{lib/sensor_msgs → sensor_msgs}/ChannelFloat32.rb +23 -24
- data/{lib/sensor_msgs → sensor_msgs}/CompressedImage.rb +30 -31
- data/{lib/sensor_msgs → sensor_msgs}/Image.rb +54 -35
- data/{lib/sensor_msgs → sensor_msgs}/Imu.rb +53 -29
- data/{lib/sensor_msgs → sensor_msgs}/JointState.rb +41 -27
- data/{lib/sensor_msgs → sensor_msgs}/Joy.rb +29 -25
- data/{lib/sensor_msgs → sensor_msgs}/JoyFeedback.rb +29 -25
- data/{lib/sensor_msgs → sensor_msgs}/JoyFeedbackArray.rb +17 -23
- data/{lib/sensor_msgs → sensor_msgs}/LaserScan.rb +71 -32
- data/{lib/sensor_msgs → sensor_msgs}/NavSatFix.rb +53 -29
- data/{lib/sensor_msgs → sensor_msgs}/NavSatStatus.rb +23 -24
- data/{lib/sensor_msgs → sensor_msgs}/PointCloud.rb +29 -25
- data/{lib/sensor_msgs → sensor_msgs}/PointCloud2.rb +66 -37
- data/{lib/sensor_msgs → sensor_msgs}/PointField.rb +35 -26
- data/{lib/sensor_msgs → sensor_msgs}/Range.rb +47 -28
- data/{lib/sensor_msgs → sensor_msgs}/RegionOfInterest.rb +41 -27
- data/{lib/sensor_msgs → sensor_msgs}/SetCameraInfo.rb +40 -47
- data/{lib/sensor_msgs → sensor_msgs}/TimeReference.rb +29 -25
- data/{lib/std_msgs → std_msgs}/Bool.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Byte.rb +17 -23
- data/{lib/std_msgs → std_msgs}/ByteMultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Char.rb +17 -23
- data/{lib/std_msgs → std_msgs}/ColorRGBA.rb +35 -26
- data/{lib/std_msgs → std_msgs}/Duration.rb +17 -23
- data/std_msgs/Empty.rb +65 -0
- data/{lib/std_msgs → std_msgs}/Float32.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Float32MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Float64.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Float64MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Header.rb +29 -25
- data/{lib/std_msgs → std_msgs}/Int16.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Int16MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Int32.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Int32MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Int64.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Int64MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Int8.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Int8MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/MultiArrayDimension.rb +29 -25
- data/{lib/std_msgs → std_msgs}/MultiArrayLayout.rb +23 -24
- data/{lib/std_msgs → std_msgs}/String.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Time.rb +17 -23
- data/{lib/std_msgs → std_msgs}/UInt16.rb +17 -23
- data/{lib/std_msgs → std_msgs}/UInt16MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/UInt32.rb +17 -23
- data/{lib/std_msgs → std_msgs}/UInt32MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/UInt64.rb +17 -23
- data/{lib/std_msgs → std_msgs}/UInt64MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/UInt8.rb +17 -23
- data/{lib/std_msgs → std_msgs}/UInt8MultiArray.rb +24 -30
- data/{lib/std_srvs → std_srvs}/Empty.rb +24 -44
- data/{lib/stereo_msgs → stereo_msgs}/DisparityImage.rb +60 -36
- data/{lib/tf → tf}/FrameGraph.rb +29 -45
- data/{lib/tf → tf}/tfMessage.rb +37 -43
- data/{lib/trajectory_msgs → trajectory_msgs}/JointTrajectory.rb +33 -29
- data/{lib/trajectory_msgs → trajectory_msgs}/JointTrajectoryPoint.rb +35 -26
- data/{lib/visualization_msgs → visualization_msgs}/ImageMarker.rb +89 -35
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarker.rb +89 -65
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerControl.rb +91 -62
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerFeedback.rb +65 -31
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerInit.rb +85 -81
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerPose.rb +29 -25
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerUpdate.rb +123 -104
- data/{lib/visualization_msgs → visualization_msgs}/Marker.rb +101 -37
- data/{lib/visualization_msgs → visualization_msgs}/MarkerArray.rb +49 -55
- data/{lib/visualization_msgs → visualization_msgs}/MenuEntry.rb +41 -27
- metadata +149 -129
- data/lib/std_msgs/Empty.rb +0 -75
@@ -29,34 +29,34 @@ string level
|
|
29
29
|
@@struct_L = ::ROS::Struct.new("L")
|
30
30
|
@@slot_types = ['string','string']
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
-
|
32
|
+
# Constructor. You can set the default values using keyword operators.
|
33
|
+
#
|
34
|
+
# @param [Hash] args keyword for initializing values
|
35
|
+
# @option args [string] :logger initialize value
|
36
|
+
# @option args [string] :level initialize value
|
37
|
+
def initialize(args={})
|
46
38
|
# message fields cannot be None, assign default values for those that are
|
47
|
-
|
48
|
-
|
39
|
+
if args[:logger]
|
40
|
+
@logger = args[:logger]
|
41
|
+
else
|
42
|
+
@logger = ''
|
43
|
+
end
|
44
|
+
if args[:level]
|
45
|
+
@level = args[:level]
|
46
|
+
else
|
47
|
+
@level = ''
|
48
|
+
end
|
49
49
|
end
|
50
50
|
|
51
|
+
# internal API method
|
52
|
+
# @return [String] Message type string.
|
51
53
|
def _get_types
|
52
|
-
|
53
|
-
return @slot_types
|
54
|
+
@slot_types
|
54
55
|
end
|
55
56
|
|
57
|
+
# serialize message into buffer
|
58
|
+
# @param [IO] buff buffer
|
56
59
|
def serialize(buff)
|
57
|
-
# serialize message into buffer
|
58
|
-
# @param buff: buffer
|
59
|
-
# @type buff: StringIO
|
60
60
|
begin
|
61
61
|
_x = @logger
|
62
62
|
length = _x.length
|
@@ -70,10 +70,9 @@ string level
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
+
# unpack serialized message in str into this message instance
|
74
|
+
# @param [String] str: byte array of serialized message
|
73
75
|
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
76
|
|
78
77
|
begin
|
79
78
|
end_point = 0
|
@@ -125,30 +124,21 @@ class SetLoggerLevelResponse <::ROS::Message
|
|
125
124
|
@@struct_L = ::ROS::Struct.new("L")
|
126
125
|
@@slot_types = []
|
127
126
|
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
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
|
-
|
127
|
+
# Constructor. You can set the default values using keyword operators.
|
128
|
+
#
|
129
|
+
# @param [Hash] args keyword for initializing values
|
130
|
+
def initialize(args={})
|
131
|
+
end
|
142
132
|
|
133
|
+
# internal API method
|
134
|
+
# @return [String] Message type string.
|
143
135
|
def _get_types
|
144
|
-
|
145
|
-
return @slot_types
|
136
|
+
@slot_types
|
146
137
|
end
|
147
138
|
|
139
|
+
# serialize message into buffer
|
140
|
+
# @param [IO] buff buffer
|
148
141
|
def serialize(buff)
|
149
|
-
# serialize message into buffer
|
150
|
-
# @param buff: buffer
|
151
|
-
# @type buff: StringIO
|
152
142
|
begin
|
153
143
|
pass
|
154
144
|
rescue => exception
|
@@ -157,10 +147,9 @@ class SetLoggerLevelResponse <::ROS::Message
|
|
157
147
|
end
|
158
148
|
end
|
159
149
|
|
150
|
+
# unpack serialized message in str into this message instance
|
151
|
+
# @param [String] str: byte array of serialized message
|
160
152
|
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
153
|
|
165
154
|
begin
|
166
155
|
end_point = 0
|
@@ -30,34 +30,34 @@ int64 b
|
|
30
30
|
@@struct_L = ::ROS::Struct.new("L")
|
31
31
|
@@slot_types = ['int64','int64']
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
-
|
33
|
+
# Constructor. You can set the default values using keyword operators.
|
34
|
+
#
|
35
|
+
# @param [Hash] args keyword for initializing values
|
36
|
+
# @option args [int64] :a initialize value
|
37
|
+
# @option args [int64] :b initialize value
|
38
|
+
def initialize(args={})
|
47
39
|
# message fields cannot be None, assign default values for those that are
|
48
|
-
|
49
|
-
|
40
|
+
if args[:a]
|
41
|
+
@a = args[:a]
|
42
|
+
else
|
43
|
+
@a = 0
|
44
|
+
end
|
45
|
+
if args[:b]
|
46
|
+
@b = args[:b]
|
47
|
+
else
|
48
|
+
@b = 0
|
49
|
+
end
|
50
50
|
end
|
51
51
|
|
52
|
+
# internal API method
|
53
|
+
# @return [String] Message type string.
|
52
54
|
def _get_types
|
53
|
-
|
54
|
-
return @slot_types
|
55
|
+
@slot_types
|
55
56
|
end
|
56
57
|
|
58
|
+
# serialize message into buffer
|
59
|
+
# @param [IO] buff buffer
|
57
60
|
def serialize(buff)
|
58
|
-
# serialize message into buffer
|
59
|
-
# @param buff: buffer
|
60
|
-
# @type buff: StringIO
|
61
61
|
begin
|
62
62
|
buff.write(@@struct_q2.pack(@a, @b))
|
63
63
|
rescue => exception
|
@@ -66,10 +66,9 @@ int64 b
|
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
|
+
# unpack serialized message in str into this message instance
|
70
|
+
# @param [String] str: byte array of serialized message
|
69
71
|
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
72
|
|
74
73
|
begin
|
75
74
|
end_point = 0
|
@@ -115,33 +114,28 @@ class TwoIntsResponse <::ROS::Message
|
|
115
114
|
@@struct_L = ::ROS::Struct.new("L")
|
116
115
|
@@slot_types = ['int64']
|
117
116
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
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
|
-
|
117
|
+
# Constructor. You can set the default values using keyword operators.
|
118
|
+
#
|
119
|
+
# @param [Hash] args keyword for initializing values
|
120
|
+
# @option args [int64] :sum initialize value
|
121
|
+
def initialize(args={})
|
132
122
|
# message fields cannot be None, assign default values for those that are
|
133
|
-
|
123
|
+
if args[:sum]
|
124
|
+
@sum = args[:sum]
|
125
|
+
else
|
126
|
+
@sum = 0
|
127
|
+
end
|
134
128
|
end
|
135
129
|
|
130
|
+
# internal API method
|
131
|
+
# @return [String] Message type string.
|
136
132
|
def _get_types
|
137
|
-
|
138
|
-
return @slot_types
|
133
|
+
@slot_types
|
139
134
|
end
|
140
135
|
|
136
|
+
# serialize message into buffer
|
137
|
+
# @param [IO] buff buffer
|
141
138
|
def serialize(buff)
|
142
|
-
# serialize message into buffer
|
143
|
-
# @param buff: buffer
|
144
|
-
# @type buff: StringIO
|
145
139
|
begin
|
146
140
|
buff.write(@@struct_q.pack(@sum))
|
147
141
|
rescue => exception
|
@@ -150,10 +144,9 @@ class TwoIntsResponse <::ROS::Message
|
|
150
144
|
end
|
151
145
|
end
|
152
146
|
|
147
|
+
# unpack serialized message in str into this message instance
|
148
|
+
# @param [String] str: byte array of serialized message
|
153
149
|
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
150
|
|
158
151
|
begin
|
159
152
|
end_point = 0
|
@@ -33,33 +33,28 @@ time clock
|
|
33
33
|
@@struct_L = ::ROS::Struct.new("L")
|
34
34
|
@@slot_types = ['time']
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
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
|
-
|
36
|
+
# Constructor. You can set the default values using keyword operators.
|
37
|
+
#
|
38
|
+
# @param [Hash] args keyword for initializing values
|
39
|
+
# @option args [time] :clock initialize value
|
40
|
+
def initialize(args={})
|
50
41
|
# message fields cannot be None, assign default values for those that are
|
51
|
-
|
42
|
+
if args[:clock]
|
43
|
+
@clock = args[:clock]
|
44
|
+
else
|
45
|
+
@clock = ROS::Time.new
|
46
|
+
end
|
52
47
|
end
|
53
48
|
|
49
|
+
# internal API method
|
50
|
+
# @return [String] Message type string.
|
54
51
|
def _get_types
|
55
|
-
|
56
|
-
return @slot_types
|
52
|
+
@slot_types
|
57
53
|
end
|
58
54
|
|
55
|
+
# serialize message into buffer
|
56
|
+
# @param [IO] buff buffer
|
59
57
|
def serialize(buff)
|
60
|
-
# serialize message into buffer
|
61
|
-
# @param buff: buffer
|
62
|
-
# @type buff: StringIO
|
63
58
|
begin
|
64
59
|
buff.write(@@struct_L2.pack(@clock.secs, @clock.nsecs))
|
65
60
|
rescue => exception
|
@@ -68,10 +63,9 @@ time clock
|
|
68
63
|
end
|
69
64
|
end
|
70
65
|
|
66
|
+
# unpack serialized message in str into this message instance
|
67
|
+
# @param [String] str: byte array of serialized message
|
71
68
|
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
69
|
|
76
70
|
begin
|
77
71
|
if @clock == nil
|
@@ -74,40 +74,70 @@ string frame_id
|
|
74
74
|
@@struct_L = ::ROS::Struct.new("L")
|
75
75
|
@@slot_types = ['Header','byte','string','string','string','string','uint32','string[]']
|
76
76
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
#
|
90
|
-
|
77
|
+
# Constructor. You can set the default values using keyword operators.
|
78
|
+
#
|
79
|
+
# @param [Hash] args keyword for initializing values
|
80
|
+
# @option args [Header] :header initialize value
|
81
|
+
# @option args [byte] :level initialize value
|
82
|
+
# @option args [string] :name initialize value
|
83
|
+
# @option args [string] :msg initialize value
|
84
|
+
# @option args [string] :file initialize value
|
85
|
+
# @option args [string] :function initialize value
|
86
|
+
# @option args [uint32] :line initialize value
|
87
|
+
# @option args [string[]] :topics initialize value
|
88
|
+
def initialize(args={})
|
91
89
|
# message fields cannot be None, assign default values for those that are
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
90
|
+
if args[:header]
|
91
|
+
@header = args[:header]
|
92
|
+
else
|
93
|
+
@header = Std_msgs::Header.new
|
94
|
+
end
|
95
|
+
if args[:level]
|
96
|
+
@level = args[:level]
|
97
|
+
else
|
98
|
+
@level = 0
|
99
|
+
end
|
100
|
+
if args[:name]
|
101
|
+
@name = args[:name]
|
102
|
+
else
|
103
|
+
@name = ''
|
104
|
+
end
|
105
|
+
if args[:msg]
|
106
|
+
@msg = args[:msg]
|
107
|
+
else
|
108
|
+
@msg = ''
|
109
|
+
end
|
110
|
+
if args[:file]
|
111
|
+
@file = args[:file]
|
112
|
+
else
|
113
|
+
@file = ''
|
114
|
+
end
|
115
|
+
if args[:function]
|
116
|
+
@function = args[:function]
|
117
|
+
else
|
118
|
+
@function = ''
|
119
|
+
end
|
120
|
+
if args[:line]
|
121
|
+
@line = args[:line]
|
122
|
+
else
|
123
|
+
@line = 0
|
124
|
+
end
|
125
|
+
if args[:topics]
|
126
|
+
@topics = args[:topics]
|
127
|
+
else
|
128
|
+
@topics = []
|
129
|
+
end
|
100
130
|
end
|
101
131
|
|
132
|
+
# internal API method
|
133
|
+
# @return [String] Message type string.
|
102
134
|
def _get_types
|
103
|
-
|
104
|
-
return @slot_types
|
135
|
+
@slot_types
|
105
136
|
end
|
106
137
|
|
138
|
+
# serialize message into buffer
|
139
|
+
# @param [IO] buff buffer
|
107
140
|
def serialize(buff)
|
108
|
-
# serialize message into buffer
|
109
|
-
# @param buff: buffer
|
110
|
-
# @type buff: StringIO
|
111
141
|
begin
|
112
142
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
113
143
|
_x = @header.frame_id
|
@@ -139,10 +169,9 @@ string frame_id
|
|
139
169
|
end
|
140
170
|
end
|
141
171
|
|
172
|
+
# unpack serialized message in str into this message instance
|
173
|
+
# @param [String] str: byte array of serialized message
|
142
174
|
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
175
|
|
147
176
|
begin
|
148
177
|
if @header == nil
|
@@ -205,43 +205,88 @@ bool do_rectify
|
|
205
205
|
@@struct_L = ::ROS::Struct.new("L")
|
206
206
|
@@slot_types = ['Header','uint32','uint32','string','float64[]','float64[9]','float64[9]','float64[12]','uint32','uint32','sensor_msgs/RegionOfInterest']
|
207
207
|
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
208
|
+
# Constructor. You can set the default values using keyword operators.
|
209
|
+
#
|
210
|
+
# @param [Hash] args keyword for initializing values
|
211
|
+
# @option args [Header] :header initialize value
|
212
|
+
# @option args [uint32] :height initialize value
|
213
|
+
# @option args [uint32] :width initialize value
|
214
|
+
# @option args [string] :distortion_model initialize value
|
215
|
+
# @option args [float64[]] :D initialize value
|
216
|
+
# @option args [float64[9]] :K initialize value
|
217
|
+
# @option args [float64[9]] :R initialize value
|
218
|
+
# @option args [float64[12]] :P initialize value
|
219
|
+
# @option args [uint32] :binning_x initialize value
|
220
|
+
# @option args [uint32] :binning_y initialize value
|
221
|
+
# @option args [sensor_msgs/RegionOfInterest] :roi initialize value
|
222
|
+
def initialize(args={})
|
222
223
|
# message fields cannot be None, assign default values for those that are
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
224
|
+
if args[:header]
|
225
|
+
@header = args[:header]
|
226
|
+
else
|
227
|
+
@header = Std_msgs::Header.new
|
228
|
+
end
|
229
|
+
if args[:height]
|
230
|
+
@height = args[:height]
|
231
|
+
else
|
232
|
+
@height = 0
|
233
|
+
end
|
234
|
+
if args[:width]
|
235
|
+
@width = args[:width]
|
236
|
+
else
|
237
|
+
@width = 0
|
238
|
+
end
|
239
|
+
if args[:distortion_model]
|
240
|
+
@distortion_model = args[:distortion_model]
|
241
|
+
else
|
242
|
+
@distortion_model = ''
|
243
|
+
end
|
244
|
+
if args[:D]
|
245
|
+
@D = args[:D]
|
246
|
+
else
|
247
|
+
@D = []
|
248
|
+
end
|
249
|
+
if args[:K]
|
250
|
+
@K = args[:K]
|
251
|
+
else
|
252
|
+
@K = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
|
253
|
+
end
|
254
|
+
if args[:R]
|
255
|
+
@R = args[:R]
|
256
|
+
else
|
257
|
+
@R = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
|
258
|
+
end
|
259
|
+
if args[:P]
|
260
|
+
@P = args[:P]
|
261
|
+
else
|
262
|
+
@P = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
|
263
|
+
end
|
264
|
+
if args[:binning_x]
|
265
|
+
@binning_x = args[:binning_x]
|
266
|
+
else
|
267
|
+
@binning_x = 0
|
268
|
+
end
|
269
|
+
if args[:binning_y]
|
270
|
+
@binning_y = args[:binning_y]
|
271
|
+
else
|
272
|
+
@binning_y = 0
|
273
|
+
end
|
274
|
+
if args[:roi]
|
275
|
+
@roi = args[:roi]
|
276
|
+
else
|
277
|
+
@roi = Sensor_msgs::RegionOfInterest.new
|
278
|
+
end
|
234
279
|
end
|
235
280
|
|
281
|
+
# internal API method
|
282
|
+
# @return [String] Message type string.
|
236
283
|
def _get_types
|
237
|
-
|
238
|
-
return @slot_types
|
284
|
+
@slot_types
|
239
285
|
end
|
240
286
|
|
287
|
+
# serialize message into buffer
|
288
|
+
# @param [IO] buff buffer
|
241
289
|
def serialize(buff)
|
242
|
-
# serialize message into buffer
|
243
|
-
# @param buff: buffer
|
244
|
-
# @type buff: StringIO
|
245
290
|
begin
|
246
291
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
247
292
|
_x = @header.frame_id
|
@@ -265,10 +310,9 @@ bool do_rectify
|
|
265
310
|
end
|
266
311
|
end
|
267
312
|
|
313
|
+
# unpack serialized message in str into this message instance
|
314
|
+
# @param [String] str: byte array of serialized message
|
268
315
|
def deserialize(str)
|
269
|
-
# unpack serialized message in str into this message instance
|
270
|
-
# @param str: byte array of serialized message
|
271
|
-
# @type str: str
|
272
316
|
|
273
317
|
begin
|
274
318
|
if @header == nil
|