rosruby_msgs 0.0.2 → 0.0.3
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 → 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
|
@@ -104,35 +104,40 @@ float32[] values
|
|
|
104
104
|
@@struct_L = ::ROS::Struct.new("L")
|
|
105
105
|
@@slot_types = ['Header','geometry_msgs/Point32[]','sensor_msgs/ChannelFloat32[]']
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
# header,points,channels
|
|
115
|
-
#
|
|
116
|
-
# @param args: complete set of field values, in .msg order
|
|
117
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
118
|
-
# to set specific fields.
|
|
119
|
-
#
|
|
120
|
-
|
|
107
|
+
# Constructor. You can set the default values using keyword operators.
|
|
108
|
+
#
|
|
109
|
+
# @param [Hash] args keyword for initializing values
|
|
110
|
+
# @option args [Header] :header initialize value
|
|
111
|
+
# @option args [geometry_msgs/Point32[]] :points initialize value
|
|
112
|
+
# @option args [sensor_msgs/ChannelFloat32[]] :channels initialize value
|
|
113
|
+
def initialize(args={})
|
|
121
114
|
# message fields cannot be None, assign default values for those that are
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
115
|
+
if args[:header]
|
|
116
|
+
@header = args[:header]
|
|
117
|
+
else
|
|
118
|
+
@header = Std_msgs::Header.new
|
|
119
|
+
end
|
|
120
|
+
if args[:points]
|
|
121
|
+
@points = args[:points]
|
|
122
|
+
else
|
|
123
|
+
@points = []
|
|
124
|
+
end
|
|
125
|
+
if args[:channels]
|
|
126
|
+
@channels = args[:channels]
|
|
127
|
+
else
|
|
128
|
+
@channels = []
|
|
129
|
+
end
|
|
125
130
|
end
|
|
126
131
|
|
|
132
|
+
# internal API method
|
|
133
|
+
# @return [String] Message type string.
|
|
127
134
|
def _get_types
|
|
128
|
-
|
|
129
|
-
return @slot_types
|
|
135
|
+
@slot_types
|
|
130
136
|
end
|
|
131
137
|
|
|
138
|
+
# serialize message into buffer
|
|
139
|
+
# @param [IO] buff buffer
|
|
132
140
|
def serialize(buff)
|
|
133
|
-
# serialize message into buffer
|
|
134
|
-
# @param buff: buffer
|
|
135
|
-
# @type buff: StringIO
|
|
136
141
|
begin
|
|
137
142
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
138
143
|
_x = @header.frame_id
|
|
@@ -161,10 +166,9 @@ float32[] values
|
|
|
161
166
|
end
|
|
162
167
|
end
|
|
163
168
|
|
|
169
|
+
# unpack serialized message in str into this message instance
|
|
170
|
+
# @param [String] str: byte array of serialized message
|
|
164
171
|
def deserialize(str)
|
|
165
|
-
# unpack serialized message in str into this message instance
|
|
166
|
-
# @param str: byte array of serialized message
|
|
167
|
-
# @type str: str
|
|
168
172
|
|
|
169
173
|
begin
|
|
170
174
|
if @header == nil
|
|
@@ -97,41 +97,76 @@ uint32 count # How many elements in the field
|
|
|
97
97
|
@@struct_L = ::ROS::Struct.new("L")
|
|
98
98
|
@@slot_types = ['Header','uint32','uint32','sensor_msgs/PointField[]','bool','uint32','uint32','uint8[]','bool']
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
100
|
+
# Constructor. You can set the default values using keyword operators.
|
|
101
|
+
#
|
|
102
|
+
# @param [Hash] args keyword for initializing values
|
|
103
|
+
# @option args [Header] :header initialize value
|
|
104
|
+
# @option args [uint32] :height initialize value
|
|
105
|
+
# @option args [uint32] :width initialize value
|
|
106
|
+
# @option args [sensor_msgs/PointField[]] :fields initialize value
|
|
107
|
+
# @option args [bool] :is_bigendian initialize value
|
|
108
|
+
# @option args [uint32] :point_step initialize value
|
|
109
|
+
# @option args [uint32] :row_step initialize value
|
|
110
|
+
# @option args [uint8[]] :data initialize value
|
|
111
|
+
# @option args [bool] :is_dense initialize value
|
|
112
|
+
def initialize(args={})
|
|
114
113
|
# message fields cannot be None, assign default values for those that are
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
if args[:header]
|
|
115
|
+
@header = args[:header]
|
|
116
|
+
else
|
|
117
|
+
@header = Std_msgs::Header.new
|
|
118
|
+
end
|
|
119
|
+
if args[:height]
|
|
120
|
+
@height = args[:height]
|
|
121
|
+
else
|
|
122
|
+
@height = 0
|
|
123
|
+
end
|
|
124
|
+
if args[:width]
|
|
125
|
+
@width = args[:width]
|
|
126
|
+
else
|
|
127
|
+
@width = 0
|
|
128
|
+
end
|
|
129
|
+
if args[:fields]
|
|
130
|
+
@fields = args[:fields]
|
|
131
|
+
else
|
|
132
|
+
@fields = []
|
|
133
|
+
end
|
|
134
|
+
if args[:is_bigendian]
|
|
135
|
+
@is_bigendian = args[:is_bigendian]
|
|
136
|
+
else
|
|
137
|
+
@is_bigendian = false
|
|
138
|
+
end
|
|
139
|
+
if args[:point_step]
|
|
140
|
+
@point_step = args[:point_step]
|
|
141
|
+
else
|
|
142
|
+
@point_step = 0
|
|
143
|
+
end
|
|
144
|
+
if args[:row_step]
|
|
145
|
+
@row_step = args[:row_step]
|
|
146
|
+
else
|
|
147
|
+
@row_step = 0
|
|
148
|
+
end
|
|
149
|
+
if args[:data]
|
|
150
|
+
@data = args[:data]
|
|
151
|
+
else
|
|
152
|
+
@data = ''
|
|
153
|
+
end
|
|
154
|
+
if args[:is_dense]
|
|
155
|
+
@is_dense = args[:is_dense]
|
|
156
|
+
else
|
|
157
|
+
@is_dense = false
|
|
158
|
+
end
|
|
124
159
|
end
|
|
125
160
|
|
|
161
|
+
# internal API method
|
|
162
|
+
# @return [String] Message type string.
|
|
126
163
|
def _get_types
|
|
127
|
-
|
|
128
|
-
return @slot_types
|
|
164
|
+
@slot_types
|
|
129
165
|
end
|
|
130
166
|
|
|
167
|
+
# serialize message into buffer
|
|
168
|
+
# @param [IO] buff buffer
|
|
131
169
|
def serialize(buff)
|
|
132
|
-
# serialize message into buffer
|
|
133
|
-
# @param buff: buffer
|
|
134
|
-
# @type buff: StringIO
|
|
135
170
|
begin
|
|
136
171
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
137
172
|
_x = @header.frame_id
|
|
@@ -150,12 +185,7 @@ uint32 count # How many elements in the field
|
|
|
150
185
|
buff.write(@@struct_CL2.pack(@is_bigendian, @point_step, @row_step))
|
|
151
186
|
_x = @data
|
|
152
187
|
length = _x.length
|
|
153
|
-
|
|
154
|
-
if type(_x) in [list, tuple]
|
|
155
|
-
buff.write([length, *_x].pack("La#{length}"))
|
|
156
|
-
else
|
|
157
|
-
buff.write([length, _x].pack("La#{length}"))
|
|
158
|
-
end
|
|
188
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
159
189
|
buff.write(@@struct_C.pack(@is_dense))
|
|
160
190
|
rescue => exception
|
|
161
191
|
raise "some erro in serialize: #{exception}"
|
|
@@ -163,10 +193,9 @@ uint32 count # How many elements in the field
|
|
|
163
193
|
end
|
|
164
194
|
end
|
|
165
195
|
|
|
196
|
+
# unpack serialized message in str into this message instance
|
|
197
|
+
# @param [String] str: byte array of serialized message
|
|
166
198
|
def deserialize(str)
|
|
167
|
-
# unpack serialized message in str into this message instance
|
|
168
|
-
# @param str: byte array of serialized message
|
|
169
|
-
# @type str: str
|
|
170
199
|
|
|
171
200
|
begin
|
|
172
201
|
if @header == nil
|
|
@@ -53,36 +53,46 @@ uint32 count # How many elements in the field
|
|
|
53
53
|
@@struct_L = ::ROS::Struct.new("L")
|
|
54
54
|
@@slot_types = ['string','uint32','uint8','uint32']
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
#
|
|
65
|
-
# @param args: complete set of field values, in .msg order
|
|
66
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
67
|
-
# to set specific fields.
|
|
68
|
-
#
|
|
69
|
-
|
|
56
|
+
# Constructor. You can set the default values using keyword operators.
|
|
57
|
+
#
|
|
58
|
+
# @param [Hash] args keyword for initializing values
|
|
59
|
+
# @option args [string] :name initialize value
|
|
60
|
+
# @option args [uint32] :offset initialize value
|
|
61
|
+
# @option args [uint8] :datatype initialize value
|
|
62
|
+
# @option args [uint32] :count initialize value
|
|
63
|
+
def initialize(args={})
|
|
70
64
|
# message fields cannot be None, assign default values for those that are
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
65
|
+
if args[:name]
|
|
66
|
+
@name = args[:name]
|
|
67
|
+
else
|
|
68
|
+
@name = ''
|
|
69
|
+
end
|
|
70
|
+
if args[:offset]
|
|
71
|
+
@offset = args[:offset]
|
|
72
|
+
else
|
|
73
|
+
@offset = 0
|
|
74
|
+
end
|
|
75
|
+
if args[:datatype]
|
|
76
|
+
@datatype = args[:datatype]
|
|
77
|
+
else
|
|
78
|
+
@datatype = 0
|
|
79
|
+
end
|
|
80
|
+
if args[:count]
|
|
81
|
+
@count = args[:count]
|
|
82
|
+
else
|
|
83
|
+
@count = 0
|
|
84
|
+
end
|
|
75
85
|
end
|
|
76
86
|
|
|
87
|
+
# internal API method
|
|
88
|
+
# @return [String] Message type string.
|
|
77
89
|
def _get_types
|
|
78
|
-
|
|
79
|
-
return @slot_types
|
|
90
|
+
@slot_types
|
|
80
91
|
end
|
|
81
92
|
|
|
93
|
+
# serialize message into buffer
|
|
94
|
+
# @param [IO] buff buffer
|
|
82
95
|
def serialize(buff)
|
|
83
|
-
# serialize message into buffer
|
|
84
|
-
# @param buff: buffer
|
|
85
|
-
# @type buff: StringIO
|
|
86
96
|
begin
|
|
87
97
|
_x = @name
|
|
88
98
|
length = _x.length
|
|
@@ -94,10 +104,9 @@ uint32 count # How many elements in the field
|
|
|
94
104
|
end
|
|
95
105
|
end
|
|
96
106
|
|
|
107
|
+
# unpack serialized message in str into this message instance
|
|
108
|
+
# @param [String] str: byte array of serialized message
|
|
97
109
|
def deserialize(str)
|
|
98
|
-
# unpack serialized message in str into this message instance
|
|
99
|
-
# @param str: byte array of serialized message
|
|
100
|
-
# @type str: str
|
|
101
110
|
|
|
102
111
|
begin
|
|
103
112
|
end_point = 0
|
|
@@ -82,38 +82,58 @@ string frame_id
|
|
|
82
82
|
@@struct_L = ::ROS::Struct.new("L")
|
|
83
83
|
@@slot_types = ['Header','uint8','float32','float32','float32','float32']
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
96
|
-
# to set specific fields.
|
|
97
|
-
#
|
|
98
|
-
|
|
85
|
+
# Constructor. You can set the default values using keyword operators.
|
|
86
|
+
#
|
|
87
|
+
# @param [Hash] args keyword for initializing values
|
|
88
|
+
# @option args [Header] :header initialize value
|
|
89
|
+
# @option args [uint8] :radiation_type initialize value
|
|
90
|
+
# @option args [float32] :field_of_view initialize value
|
|
91
|
+
# @option args [float32] :min_range initialize value
|
|
92
|
+
# @option args [float32] :max_range initialize value
|
|
93
|
+
# @option args [float32] :range initialize value
|
|
94
|
+
def initialize(args={})
|
|
99
95
|
# message fields cannot be None, assign default values for those that are
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
96
|
+
if args[:header]
|
|
97
|
+
@header = args[:header]
|
|
98
|
+
else
|
|
99
|
+
@header = Std_msgs::Header.new
|
|
100
|
+
end
|
|
101
|
+
if args[:radiation_type]
|
|
102
|
+
@radiation_type = args[:radiation_type]
|
|
103
|
+
else
|
|
104
|
+
@radiation_type = 0
|
|
105
|
+
end
|
|
106
|
+
if args[:field_of_view]
|
|
107
|
+
@field_of_view = args[:field_of_view]
|
|
108
|
+
else
|
|
109
|
+
@field_of_view = 0.0
|
|
110
|
+
end
|
|
111
|
+
if args[:min_range]
|
|
112
|
+
@min_range = args[:min_range]
|
|
113
|
+
else
|
|
114
|
+
@min_range = 0.0
|
|
115
|
+
end
|
|
116
|
+
if args[:max_range]
|
|
117
|
+
@max_range = args[:max_range]
|
|
118
|
+
else
|
|
119
|
+
@max_range = 0.0
|
|
120
|
+
end
|
|
121
|
+
if args[:range]
|
|
122
|
+
@range = args[:range]
|
|
123
|
+
else
|
|
124
|
+
@range = 0.0
|
|
125
|
+
end
|
|
106
126
|
end
|
|
107
127
|
|
|
128
|
+
# internal API method
|
|
129
|
+
# @return [String] Message type string.
|
|
108
130
|
def _get_types
|
|
109
|
-
|
|
110
|
-
return @slot_types
|
|
131
|
+
@slot_types
|
|
111
132
|
end
|
|
112
133
|
|
|
134
|
+
# serialize message into buffer
|
|
135
|
+
# @param [IO] buff buffer
|
|
113
136
|
def serialize(buff)
|
|
114
|
-
# serialize message into buffer
|
|
115
|
-
# @param buff: buffer
|
|
116
|
-
# @type buff: StringIO
|
|
117
137
|
begin
|
|
118
138
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
119
139
|
_x = @header.frame_id
|
|
@@ -126,10 +146,9 @@ string frame_id
|
|
|
126
146
|
end
|
|
127
147
|
end
|
|
128
148
|
|
|
149
|
+
# unpack serialized message in str into this message instance
|
|
150
|
+
# @param [String] str: byte array of serialized message
|
|
129
151
|
def deserialize(str)
|
|
130
|
-
# unpack serialized message in str into this message instance
|
|
131
|
-
# @param str: byte array of serialized message
|
|
132
|
-
# @type str: str
|
|
133
152
|
|
|
134
153
|
begin
|
|
135
154
|
if @header == nil
|
|
@@ -47,37 +47,52 @@ bool do_rectify
|
|
|
47
47
|
@@struct_L = ::ROS::Struct.new("L")
|
|
48
48
|
@@slot_types = ['uint32','uint32','uint32','uint32','bool']
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
# @param args: complete set of field values, in .msg order
|
|
60
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
61
|
-
# to set specific fields.
|
|
62
|
-
#
|
|
63
|
-
|
|
50
|
+
# Constructor. You can set the default values using keyword operators.
|
|
51
|
+
#
|
|
52
|
+
# @param [Hash] args keyword for initializing values
|
|
53
|
+
# @option args [uint32] :x_offset initialize value
|
|
54
|
+
# @option args [uint32] :y_offset initialize value
|
|
55
|
+
# @option args [uint32] :height initialize value
|
|
56
|
+
# @option args [uint32] :width initialize value
|
|
57
|
+
# @option args [bool] :do_rectify initialize value
|
|
58
|
+
def initialize(args={})
|
|
64
59
|
# message fields cannot be None, assign default values for those that are
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
60
|
+
if args[:x_offset]
|
|
61
|
+
@x_offset = args[:x_offset]
|
|
62
|
+
else
|
|
63
|
+
@x_offset = 0
|
|
64
|
+
end
|
|
65
|
+
if args[:y_offset]
|
|
66
|
+
@y_offset = args[:y_offset]
|
|
67
|
+
else
|
|
68
|
+
@y_offset = 0
|
|
69
|
+
end
|
|
70
|
+
if args[:height]
|
|
71
|
+
@height = args[:height]
|
|
72
|
+
else
|
|
73
|
+
@height = 0
|
|
74
|
+
end
|
|
75
|
+
if args[:width]
|
|
76
|
+
@width = args[:width]
|
|
77
|
+
else
|
|
78
|
+
@width = 0
|
|
79
|
+
end
|
|
80
|
+
if args[:do_rectify]
|
|
81
|
+
@do_rectify = args[:do_rectify]
|
|
82
|
+
else
|
|
83
|
+
@do_rectify = false
|
|
84
|
+
end
|
|
70
85
|
end
|
|
71
86
|
|
|
87
|
+
# internal API method
|
|
88
|
+
# @return [String] Message type string.
|
|
72
89
|
def _get_types
|
|
73
|
-
|
|
74
|
-
return @slot_types
|
|
90
|
+
@slot_types
|
|
75
91
|
end
|
|
76
92
|
|
|
93
|
+
# serialize message into buffer
|
|
94
|
+
# @param [IO] buff buffer
|
|
77
95
|
def serialize(buff)
|
|
78
|
-
# serialize message into buffer
|
|
79
|
-
# @param buff: buffer
|
|
80
|
-
# @type buff: StringIO
|
|
81
96
|
begin
|
|
82
97
|
buff.write(@@struct_L4C.pack(@x_offset, @y_offset, @height, @width, @do_rectify))
|
|
83
98
|
rescue => exception
|
|
@@ -86,10 +101,9 @@ bool do_rectify
|
|
|
86
101
|
end
|
|
87
102
|
end
|
|
88
103
|
|
|
104
|
+
# unpack serialized message in str into this message instance
|
|
105
|
+
# @param [String] str: byte array of serialized message
|
|
89
106
|
def deserialize(str)
|
|
90
|
-
# unpack serialized message in str into this message instance
|
|
91
|
-
# @param str: byte array of serialized message
|
|
92
|
-
# @type str: str
|
|
93
107
|
|
|
94
108
|
begin
|
|
95
109
|
end_point = 0
|