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
|
@@ -51,35 +51,40 @@ string frame_id
|
|
|
51
51
|
@@struct_L = ::ROS::Struct.new("L")
|
|
52
52
|
@@slot_types = ['Header','float32[]','int32[]']
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
# header,axes,buttons
|
|
62
|
-
#
|
|
63
|
-
# @param args: complete set of field values, in .msg order
|
|
64
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
65
|
-
# to set specific fields.
|
|
66
|
-
#
|
|
67
|
-
|
|
54
|
+
# Constructor. You can set the default values using keyword operators.
|
|
55
|
+
#
|
|
56
|
+
# @param [Hash] args keyword for initializing values
|
|
57
|
+
# @option args [Header] :header initialize value
|
|
58
|
+
# @option args [float32[]] :axes initialize value
|
|
59
|
+
# @option args [int32[]] :buttons initialize value
|
|
60
|
+
def initialize(args={})
|
|
68
61
|
# message fields cannot be None, assign default values for those that are
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
if args[:header]
|
|
63
|
+
@header = args[:header]
|
|
64
|
+
else
|
|
65
|
+
@header = Std_msgs::Header.new
|
|
66
|
+
end
|
|
67
|
+
if args[:axes]
|
|
68
|
+
@axes = args[:axes]
|
|
69
|
+
else
|
|
70
|
+
@axes = []
|
|
71
|
+
end
|
|
72
|
+
if args[:buttons]
|
|
73
|
+
@buttons = args[:buttons]
|
|
74
|
+
else
|
|
75
|
+
@buttons = []
|
|
76
|
+
end
|
|
72
77
|
end
|
|
73
78
|
|
|
79
|
+
# internal API method
|
|
80
|
+
# @return [String] Message type string.
|
|
74
81
|
def _get_types
|
|
75
|
-
|
|
76
|
-
return @slot_types
|
|
82
|
+
@slot_types
|
|
77
83
|
end
|
|
78
84
|
|
|
85
|
+
# serialize message into buffer
|
|
86
|
+
# @param [IO] buff buffer
|
|
79
87
|
def serialize(buff)
|
|
80
|
-
# serialize message into buffer
|
|
81
|
-
# @param buff: buffer
|
|
82
|
-
# @type buff: StringIO
|
|
83
88
|
begin
|
|
84
89
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
85
90
|
_x = @header.frame_id
|
|
@@ -99,10 +104,9 @@ string frame_id
|
|
|
99
104
|
end
|
|
100
105
|
end
|
|
101
106
|
|
|
107
|
+
# unpack serialized message in str into this message instance
|
|
108
|
+
# @param [String] str: byte array of serialized message
|
|
102
109
|
def deserialize(str)
|
|
103
|
-
# unpack serialized message in str into this message instance
|
|
104
|
-
# @param str: byte array of serialized message
|
|
105
|
-
# @type str: str
|
|
106
110
|
|
|
107
111
|
begin
|
|
108
112
|
if @header == nil
|
|
@@ -48,35 +48,40 @@ float32 intensity
|
|
|
48
48
|
@@struct_L = ::ROS::Struct.new("L")
|
|
49
49
|
@@slot_types = ['uint8','uint8','float32']
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
# type,id,intensity
|
|
59
|
-
#
|
|
60
|
-
# @param args: complete set of field values, in .msg order
|
|
61
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
62
|
-
# to set specific fields.
|
|
63
|
-
#
|
|
64
|
-
|
|
51
|
+
# Constructor. You can set the default values using keyword operators.
|
|
52
|
+
#
|
|
53
|
+
# @param [Hash] args keyword for initializing values
|
|
54
|
+
# @option args [uint8] :type initialize value
|
|
55
|
+
# @option args [uint8] :id initialize value
|
|
56
|
+
# @option args [float32] :intensity initialize value
|
|
57
|
+
def initialize(args={})
|
|
65
58
|
# message fields cannot be None, assign default values for those that are
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
if args[:type]
|
|
60
|
+
@type = args[:type]
|
|
61
|
+
else
|
|
62
|
+
@type = 0
|
|
63
|
+
end
|
|
64
|
+
if args[:id]
|
|
65
|
+
@id = args[:id]
|
|
66
|
+
else
|
|
67
|
+
@id = 0
|
|
68
|
+
end
|
|
69
|
+
if args[:intensity]
|
|
70
|
+
@intensity = args[:intensity]
|
|
71
|
+
else
|
|
72
|
+
@intensity = 0.0
|
|
73
|
+
end
|
|
69
74
|
end
|
|
70
75
|
|
|
76
|
+
# internal API method
|
|
77
|
+
# @return [String] Message type string.
|
|
71
78
|
def _get_types
|
|
72
|
-
|
|
73
|
-
return @slot_types
|
|
79
|
+
@slot_types
|
|
74
80
|
end
|
|
75
81
|
|
|
82
|
+
# serialize message into buffer
|
|
83
|
+
# @param [IO] buff buffer
|
|
76
84
|
def serialize(buff)
|
|
77
|
-
# serialize message into buffer
|
|
78
|
-
# @param buff: buffer
|
|
79
|
-
# @type buff: StringIO
|
|
80
85
|
begin
|
|
81
86
|
buff.write(@@struct_C2f.pack(@type, @id, @intensity))
|
|
82
87
|
rescue => exception
|
|
@@ -85,10 +90,9 @@ float32 intensity
|
|
|
85
90
|
end
|
|
86
91
|
end
|
|
87
92
|
|
|
93
|
+
# unpack serialized message in str into this message instance
|
|
94
|
+
# @param [String] str: byte array of serialized message
|
|
88
95
|
def deserialize(str)
|
|
89
|
-
# unpack serialized message in str into this message instance
|
|
90
|
-
# @param str: byte array of serialized message
|
|
91
|
-
# @type str: str
|
|
92
96
|
|
|
93
97
|
begin
|
|
94
98
|
end_point = 0
|
|
@@ -48,33 +48,28 @@ float32 intensity
|
|
|
48
48
|
@@struct_L = ::ROS::Struct.new("L")
|
|
49
49
|
@@slot_types = ['sensor_msgs/JoyFeedback[]']
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
#
|
|
57
|
-
# The available fields are:
|
|
58
|
-
# array
|
|
59
|
-
#
|
|
60
|
-
# @param args: complete set of field values, in .msg order
|
|
61
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
62
|
-
# to set specific fields.
|
|
63
|
-
#
|
|
64
|
-
|
|
51
|
+
# Constructor. You can set the default values using keyword operators.
|
|
52
|
+
#
|
|
53
|
+
# @param [Hash] args keyword for initializing values
|
|
54
|
+
# @option args [sensor_msgs/JoyFeedback[]] :array initialize value
|
|
55
|
+
def initialize(args={})
|
|
65
56
|
# message fields cannot be None, assign default values for those that are
|
|
66
|
-
|
|
57
|
+
if args[:array]
|
|
58
|
+
@array = args[:array]
|
|
59
|
+
else
|
|
60
|
+
@array = []
|
|
61
|
+
end
|
|
67
62
|
end
|
|
68
63
|
|
|
64
|
+
# internal API method
|
|
65
|
+
# @return [String] Message type string.
|
|
69
66
|
def _get_types
|
|
70
|
-
|
|
71
|
-
return @slot_types
|
|
67
|
+
@slot_types
|
|
72
68
|
end
|
|
73
69
|
|
|
70
|
+
# serialize message into buffer
|
|
71
|
+
# @param [IO] buff buffer
|
|
74
72
|
def serialize(buff)
|
|
75
|
-
# serialize message into buffer
|
|
76
|
-
# @param buff: buffer
|
|
77
|
-
# @type buff: StringIO
|
|
78
73
|
begin
|
|
79
74
|
length = @array.length
|
|
80
75
|
buff.write(@@struct_L.pack(length))
|
|
@@ -88,10 +83,9 @@ float32 intensity
|
|
|
88
83
|
end
|
|
89
84
|
end
|
|
90
85
|
|
|
86
|
+
# unpack serialized message in str into this message instance
|
|
87
|
+
# @param [String] str: byte array of serialized message
|
|
91
88
|
def deserialize(str)
|
|
92
|
-
# unpack serialized message in str into this message instance
|
|
93
|
-
# @param str: byte array of serialized message
|
|
94
|
-
# @type str: str
|
|
95
89
|
|
|
96
90
|
begin
|
|
97
91
|
end_point = 0
|
|
@@ -77,42 +77,82 @@ string frame_id
|
|
|
77
77
|
@@struct_L = ::ROS::Struct.new("L")
|
|
78
78
|
@@slot_types = ['Header','float32','float32','float32','float32','float32','float32','float32','float32[]','float32[]']
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
80
|
+
# Constructor. You can set the default values using keyword operators.
|
|
81
|
+
#
|
|
82
|
+
# @param [Hash] args keyword for initializing values
|
|
83
|
+
# @option args [Header] :header initialize value
|
|
84
|
+
# @option args [float32] :angle_min initialize value
|
|
85
|
+
# @option args [float32] :angle_max initialize value
|
|
86
|
+
# @option args [float32] :angle_increment initialize value
|
|
87
|
+
# @option args [float32] :time_increment initialize value
|
|
88
|
+
# @option args [float32] :scan_time initialize value
|
|
89
|
+
# @option args [float32] :range_min initialize value
|
|
90
|
+
# @option args [float32] :range_max initialize value
|
|
91
|
+
# @option args [float32[]] :ranges initialize value
|
|
92
|
+
# @option args [float32[]] :intensities initialize value
|
|
93
|
+
def initialize(args={})
|
|
94
94
|
# message fields cannot be None, assign default values for those that are
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
if args[:header]
|
|
96
|
+
@header = args[:header]
|
|
97
|
+
else
|
|
98
|
+
@header = Std_msgs::Header.new
|
|
99
|
+
end
|
|
100
|
+
if args[:angle_min]
|
|
101
|
+
@angle_min = args[:angle_min]
|
|
102
|
+
else
|
|
103
|
+
@angle_min = 0.0
|
|
104
|
+
end
|
|
105
|
+
if args[:angle_max]
|
|
106
|
+
@angle_max = args[:angle_max]
|
|
107
|
+
else
|
|
108
|
+
@angle_max = 0.0
|
|
109
|
+
end
|
|
110
|
+
if args[:angle_increment]
|
|
111
|
+
@angle_increment = args[:angle_increment]
|
|
112
|
+
else
|
|
113
|
+
@angle_increment = 0.0
|
|
114
|
+
end
|
|
115
|
+
if args[:time_increment]
|
|
116
|
+
@time_increment = args[:time_increment]
|
|
117
|
+
else
|
|
118
|
+
@time_increment = 0.0
|
|
119
|
+
end
|
|
120
|
+
if args[:scan_time]
|
|
121
|
+
@scan_time = args[:scan_time]
|
|
122
|
+
else
|
|
123
|
+
@scan_time = 0.0
|
|
124
|
+
end
|
|
125
|
+
if args[:range_min]
|
|
126
|
+
@range_min = args[:range_min]
|
|
127
|
+
else
|
|
128
|
+
@range_min = 0.0
|
|
129
|
+
end
|
|
130
|
+
if args[:range_max]
|
|
131
|
+
@range_max = args[:range_max]
|
|
132
|
+
else
|
|
133
|
+
@range_max = 0.0
|
|
134
|
+
end
|
|
135
|
+
if args[:ranges]
|
|
136
|
+
@ranges = args[:ranges]
|
|
137
|
+
else
|
|
138
|
+
@ranges = []
|
|
139
|
+
end
|
|
140
|
+
if args[:intensities]
|
|
141
|
+
@intensities = args[:intensities]
|
|
142
|
+
else
|
|
143
|
+
@intensities = []
|
|
144
|
+
end
|
|
105
145
|
end
|
|
106
146
|
|
|
147
|
+
# internal API method
|
|
148
|
+
# @return [String] Message type string.
|
|
107
149
|
def _get_types
|
|
108
|
-
|
|
109
|
-
return @slot_types
|
|
150
|
+
@slot_types
|
|
110
151
|
end
|
|
111
152
|
|
|
153
|
+
# serialize message into buffer
|
|
154
|
+
# @param [IO] buff buffer
|
|
112
155
|
def serialize(buff)
|
|
113
|
-
# serialize message into buffer
|
|
114
|
-
# @param buff: buffer
|
|
115
|
-
# @type buff: StringIO
|
|
116
156
|
begin
|
|
117
157
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
118
158
|
_x = @header.frame_id
|
|
@@ -133,10 +173,9 @@ string frame_id
|
|
|
133
173
|
end
|
|
134
174
|
end
|
|
135
175
|
|
|
176
|
+
# unpack serialized message in str into this message instance
|
|
177
|
+
# @param [String] str: byte array of serialized message
|
|
136
178
|
def deserialize(str)
|
|
137
|
-
# unpack serialized message in str into this message instance
|
|
138
|
-
# @param str: byte array of serialized message
|
|
139
|
-
# @type str: str
|
|
140
179
|
|
|
141
180
|
begin
|
|
142
181
|
if @header == nil
|
|
@@ -128,39 +128,64 @@ uint16 service
|
|
|
128
128
|
@@struct_L = ::ROS::Struct.new("L")
|
|
129
129
|
@@slot_types = ['Header','sensor_msgs/NavSatStatus','float64','float64','float64','float64[9]','uint8']
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
# to set specific fields.
|
|
143
|
-
#
|
|
144
|
-
|
|
131
|
+
# Constructor. You can set the default values using keyword operators.
|
|
132
|
+
#
|
|
133
|
+
# @param [Hash] args keyword for initializing values
|
|
134
|
+
# @option args [Header] :header initialize value
|
|
135
|
+
# @option args [sensor_msgs/NavSatStatus] :status initialize value
|
|
136
|
+
# @option args [float64] :latitude initialize value
|
|
137
|
+
# @option args [float64] :longitude initialize value
|
|
138
|
+
# @option args [float64] :altitude initialize value
|
|
139
|
+
# @option args [float64[9]] :position_covariance initialize value
|
|
140
|
+
# @option args [uint8] :position_covariance_type initialize value
|
|
141
|
+
def initialize(args={})
|
|
145
142
|
# message fields cannot be None, assign default values for those that are
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
143
|
+
if args[:header]
|
|
144
|
+
@header = args[:header]
|
|
145
|
+
else
|
|
146
|
+
@header = Std_msgs::Header.new
|
|
147
|
+
end
|
|
148
|
+
if args[:status]
|
|
149
|
+
@status = args[:status]
|
|
150
|
+
else
|
|
151
|
+
@status = Sensor_msgs::NavSatStatus.new
|
|
152
|
+
end
|
|
153
|
+
if args[:latitude]
|
|
154
|
+
@latitude = args[:latitude]
|
|
155
|
+
else
|
|
156
|
+
@latitude = 0.0
|
|
157
|
+
end
|
|
158
|
+
if args[:longitude]
|
|
159
|
+
@longitude = args[:longitude]
|
|
160
|
+
else
|
|
161
|
+
@longitude = 0.0
|
|
162
|
+
end
|
|
163
|
+
if args[:altitude]
|
|
164
|
+
@altitude = args[:altitude]
|
|
165
|
+
else
|
|
166
|
+
@altitude = 0.0
|
|
167
|
+
end
|
|
168
|
+
if args[:position_covariance]
|
|
169
|
+
@position_covariance = args[:position_covariance]
|
|
170
|
+
else
|
|
171
|
+
@position_covariance = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
|
|
172
|
+
end
|
|
173
|
+
if args[:position_covariance_type]
|
|
174
|
+
@position_covariance_type = args[:position_covariance_type]
|
|
175
|
+
else
|
|
176
|
+
@position_covariance_type = 0
|
|
177
|
+
end
|
|
153
178
|
end
|
|
154
179
|
|
|
180
|
+
# internal API method
|
|
181
|
+
# @return [String] Message type string.
|
|
155
182
|
def _get_types
|
|
156
|
-
|
|
157
|
-
return @slot_types
|
|
183
|
+
@slot_types
|
|
158
184
|
end
|
|
159
185
|
|
|
186
|
+
# serialize message into buffer
|
|
187
|
+
# @param [IO] buff buffer
|
|
160
188
|
def serialize(buff)
|
|
161
|
-
# serialize message into buffer
|
|
162
|
-
# @param buff: buffer
|
|
163
|
-
# @type buff: StringIO
|
|
164
189
|
begin
|
|
165
190
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
166
191
|
_x = @header.frame_id
|
|
@@ -175,10 +200,9 @@ uint16 service
|
|
|
175
200
|
end
|
|
176
201
|
end
|
|
177
202
|
|
|
203
|
+
# unpack serialized message in str into this message instance
|
|
204
|
+
# @param [String] str: byte array of serialized message
|
|
178
205
|
def deserialize(str)
|
|
179
|
-
# unpack serialized message in str into this message instance
|
|
180
|
-
# @param str: byte array of serialized message
|
|
181
|
-
# @type str: str
|
|
182
206
|
|
|
183
207
|
begin
|
|
184
208
|
if @header == nil
|
|
@@ -60,34 +60,34 @@ uint16 service
|
|
|
60
60
|
@@struct_L = ::ROS::Struct.new("L")
|
|
61
61
|
@@slot_types = ['int8','uint16']
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
# The available fields are:
|
|
70
|
-
# status,service
|
|
71
|
-
#
|
|
72
|
-
# @param args: complete set of field values, in .msg order
|
|
73
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
74
|
-
# to set specific fields.
|
|
75
|
-
#
|
|
76
|
-
|
|
63
|
+
# Constructor. You can set the default values using keyword operators.
|
|
64
|
+
#
|
|
65
|
+
# @param [Hash] args keyword for initializing values
|
|
66
|
+
# @option args [int8] :status initialize value
|
|
67
|
+
# @option args [uint16] :service initialize value
|
|
68
|
+
def initialize(args={})
|
|
77
69
|
# message fields cannot be None, assign default values for those that are
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
if args[:status]
|
|
71
|
+
@status = args[:status]
|
|
72
|
+
else
|
|
73
|
+
@status = 0
|
|
74
|
+
end
|
|
75
|
+
if args[:service]
|
|
76
|
+
@service = args[:service]
|
|
77
|
+
else
|
|
78
|
+
@service = 0
|
|
79
|
+
end
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
+
# internal API method
|
|
83
|
+
# @return [String] Message type string.
|
|
82
84
|
def _get_types
|
|
83
|
-
|
|
84
|
-
return @slot_types
|
|
85
|
+
@slot_types
|
|
85
86
|
end
|
|
86
87
|
|
|
88
|
+
# serialize message into buffer
|
|
89
|
+
# @param [IO] buff buffer
|
|
87
90
|
def serialize(buff)
|
|
88
|
-
# serialize message into buffer
|
|
89
|
-
# @param buff: buffer
|
|
90
|
-
# @type buff: StringIO
|
|
91
91
|
begin
|
|
92
92
|
buff.write(@@struct_cS.pack(@status, @service))
|
|
93
93
|
rescue => exception
|
|
@@ -96,10 +96,9 @@ uint16 service
|
|
|
96
96
|
end
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
+
# unpack serialized message in str into this message instance
|
|
100
|
+
# @param [String] str: byte array of serialized message
|
|
99
101
|
def deserialize(str)
|
|
100
|
-
# unpack serialized message in str into this message instance
|
|
101
|
-
# @param str: byte array of serialized message
|
|
102
|
-
# @type str: str
|
|
103
102
|
|
|
104
103
|
begin
|
|
105
104
|
end_point = 0
|