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
|
@@ -103,35 +103,40 @@ int32[] sequence
|
|
|
103
103
|
@@struct_L = ::ROS::Struct.new("L")
|
|
104
104
|
@@slot_types = ['Header','actionlib_msgs/GoalStatus','actionlib_tutorials/FibonacciResult']
|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
# header,status,result
|
|
114
|
-
#
|
|
115
|
-
# @param args: complete set of field values, in .msg order
|
|
116
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
117
|
-
# to set specific fields.
|
|
118
|
-
#
|
|
119
|
-
|
|
106
|
+
# Constructor. You can set the default values using keyword operators.
|
|
107
|
+
#
|
|
108
|
+
# @param [Hash] args keyword for initializing values
|
|
109
|
+
# @option args [Header] :header initialize value
|
|
110
|
+
# @option args [actionlib_msgs/GoalStatus] :status initialize value
|
|
111
|
+
# @option args [actionlib_tutorials/FibonacciResult] :result initialize value
|
|
112
|
+
def initialize(args={})
|
|
120
113
|
# message fields cannot be None, assign default values for those that are
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
114
|
+
if args[:header]
|
|
115
|
+
@header = args[:header]
|
|
116
|
+
else
|
|
117
|
+
@header = Std_msgs::Header.new
|
|
118
|
+
end
|
|
119
|
+
if args[:status]
|
|
120
|
+
@status = args[:status]
|
|
121
|
+
else
|
|
122
|
+
@status = Actionlib_msgs::GoalStatus.new
|
|
123
|
+
end
|
|
124
|
+
if args[:result]
|
|
125
|
+
@result = args[:result]
|
|
126
|
+
else
|
|
127
|
+
@result = Actionlib_tutorials::FibonacciResult.new
|
|
128
|
+
end
|
|
124
129
|
end
|
|
125
130
|
|
|
131
|
+
# internal API method
|
|
132
|
+
# @return [String] Message type string.
|
|
126
133
|
def _get_types
|
|
127
|
-
|
|
128
|
-
return @slot_types
|
|
134
|
+
@slot_types
|
|
129
135
|
end
|
|
130
136
|
|
|
137
|
+
# serialize message into buffer
|
|
138
|
+
# @param [IO] buff buffer
|
|
131
139
|
def serialize(buff)
|
|
132
|
-
# serialize message into buffer
|
|
133
|
-
# @param buff: buffer
|
|
134
|
-
# @type buff: StringIO
|
|
135
140
|
begin
|
|
136
141
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
137
142
|
_x = @header.frame_id
|
|
@@ -155,10 +160,9 @@ int32[] sequence
|
|
|
155
160
|
end
|
|
156
161
|
end
|
|
157
162
|
|
|
163
|
+
# unpack serialized message in str into this message instance
|
|
164
|
+
# @param [String] str: byte array of serialized message
|
|
158
165
|
def deserialize(str)
|
|
159
|
-
# unpack serialized message in str into this message instance
|
|
160
|
-
# @param str: byte array of serialized message
|
|
161
|
-
# @type str: str
|
|
162
166
|
|
|
163
167
|
begin
|
|
164
168
|
if @header == nil
|
|
@@ -32,33 +32,28 @@ int32[] sequence
|
|
|
32
32
|
@@struct_L = ::ROS::Struct.new("L")
|
|
33
33
|
@@slot_types = ['int32[]']
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
#
|
|
41
|
-
# The available fields are:
|
|
42
|
-
# sequence
|
|
43
|
-
#
|
|
44
|
-
# @param args: complete set of field values, in .msg order
|
|
45
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
46
|
-
# to set specific fields.
|
|
47
|
-
#
|
|
48
|
-
|
|
35
|
+
# Constructor. You can set the default values using keyword operators.
|
|
36
|
+
#
|
|
37
|
+
# @param [Hash] args keyword for initializing values
|
|
38
|
+
# @option args [int32[]] :sequence initialize value
|
|
39
|
+
def initialize(args={})
|
|
49
40
|
# message fields cannot be None, assign default values for those that are
|
|
50
|
-
|
|
41
|
+
if args[:sequence]
|
|
42
|
+
@sequence = args[:sequence]
|
|
43
|
+
else
|
|
44
|
+
@sequence = []
|
|
45
|
+
end
|
|
51
46
|
end
|
|
52
47
|
|
|
48
|
+
# internal API method
|
|
49
|
+
# @return [String] Message type string.
|
|
53
50
|
def _get_types
|
|
54
|
-
|
|
55
|
-
return @slot_types
|
|
51
|
+
@slot_types
|
|
56
52
|
end
|
|
57
53
|
|
|
54
|
+
# serialize message into buffer
|
|
55
|
+
# @param [IO] buff buffer
|
|
58
56
|
def serialize(buff)
|
|
59
|
-
# serialize message into buffer
|
|
60
|
-
# @param buff: buffer
|
|
61
|
-
# @type buff: StringIO
|
|
62
57
|
begin
|
|
63
58
|
length = @sequence.length
|
|
64
59
|
buff.write(@@struct_L.pack(length))
|
|
@@ -70,10 +65,9 @@ int32[] sequence
|
|
|
70
65
|
end
|
|
71
66
|
end
|
|
72
67
|
|
|
68
|
+
# unpack serialized message in str into this message instance
|
|
69
|
+
# @param [String] str: byte array of serialized message
|
|
73
70
|
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
71
|
|
|
78
72
|
begin
|
|
79
73
|
end_point = 0
|
|
@@ -31,33 +31,28 @@ int32 order
|
|
|
31
31
|
@@struct_L = ::ROS::Struct.new("L")
|
|
32
32
|
@@slot_types = ['int32']
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
#
|
|
40
|
-
# The available fields are:
|
|
41
|
-
# order
|
|
42
|
-
#
|
|
43
|
-
# @param args: complete set of field values, in .msg order
|
|
44
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
45
|
-
# to set specific fields.
|
|
46
|
-
#
|
|
47
|
-
|
|
34
|
+
# Constructor. You can set the default values using keyword operators.
|
|
35
|
+
#
|
|
36
|
+
# @param [Hash] args keyword for initializing values
|
|
37
|
+
# @option args [int32] :order initialize value
|
|
38
|
+
def initialize(args={})
|
|
48
39
|
# message fields cannot be None, assign default values for those that are
|
|
49
|
-
|
|
40
|
+
if args[:order]
|
|
41
|
+
@order = args[:order]
|
|
42
|
+
else
|
|
43
|
+
@order = 0
|
|
44
|
+
end
|
|
50
45
|
end
|
|
51
46
|
|
|
47
|
+
# internal API method
|
|
48
|
+
# @return [String] Message type string.
|
|
52
49
|
def _get_types
|
|
53
|
-
|
|
54
|
-
return @slot_types
|
|
50
|
+
@slot_types
|
|
55
51
|
end
|
|
56
52
|
|
|
53
|
+
# serialize message into buffer
|
|
54
|
+
# @param [IO] buff buffer
|
|
57
55
|
def serialize(buff)
|
|
58
|
-
# serialize message into buffer
|
|
59
|
-
# @param buff: buffer
|
|
60
|
-
# @type buff: StringIO
|
|
61
56
|
begin
|
|
62
57
|
buff.write(@@struct_l.pack(@order))
|
|
63
58
|
rescue => exception
|
|
@@ -66,10 +61,9 @@ int32 order
|
|
|
66
61
|
end
|
|
67
62
|
end
|
|
68
63
|
|
|
64
|
+
# unpack serialized message in str into this message instance
|
|
65
|
+
# @param [String] str: byte array of serialized message
|
|
69
66
|
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
67
|
|
|
74
68
|
begin
|
|
75
69
|
end_point = 0
|
|
@@ -30,33 +30,28 @@ int32[] sequence
|
|
|
30
30
|
@@struct_L = ::ROS::Struct.new("L")
|
|
31
31
|
@@slot_types = ['int32[]']
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
#
|
|
39
|
-
# The available fields are:
|
|
40
|
-
# sequence
|
|
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 [int32[]] :sequence initialize value
|
|
37
|
+
def initialize(args={})
|
|
47
38
|
# message fields cannot be None, assign default values for those that are
|
|
48
|
-
|
|
39
|
+
if args[:sequence]
|
|
40
|
+
@sequence = args[:sequence]
|
|
41
|
+
else
|
|
42
|
+
@sequence = []
|
|
43
|
+
end
|
|
49
44
|
end
|
|
50
45
|
|
|
46
|
+
# internal API method
|
|
47
|
+
# @return [String] Message type string.
|
|
51
48
|
def _get_types
|
|
52
|
-
|
|
53
|
-
return @slot_types
|
|
49
|
+
@slot_types
|
|
54
50
|
end
|
|
55
51
|
|
|
52
|
+
# serialize message into buffer
|
|
53
|
+
# @param [IO] buff buffer
|
|
56
54
|
def serialize(buff)
|
|
57
|
-
# serialize message into buffer
|
|
58
|
-
# @param buff: buffer
|
|
59
|
-
# @type buff: StringIO
|
|
60
55
|
begin
|
|
61
56
|
length = @sequence.length
|
|
62
57
|
buff.write(@@struct_L.pack(length))
|
|
@@ -68,10 +63,9 @@ int32[] sequence
|
|
|
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
|
end_point = 0
|
|
@@ -32,35 +32,40 @@ float64 z
|
|
|
32
32
|
@@struct_L = ::ROS::Struct.new("L")
|
|
33
33
|
@@slot_types = ['float64','float64','float64']
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
# x,y,z
|
|
43
|
-
#
|
|
44
|
-
# @param args: complete set of field values, in .msg order
|
|
45
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
46
|
-
# to set specific fields.
|
|
47
|
-
#
|
|
48
|
-
|
|
35
|
+
# Constructor. You can set the default values using keyword operators.
|
|
36
|
+
#
|
|
37
|
+
# @param [Hash] args keyword for initializing values
|
|
38
|
+
# @option args [float64] :x initialize value
|
|
39
|
+
# @option args [float64] :y initialize value
|
|
40
|
+
# @option args [float64] :z initialize value
|
|
41
|
+
def initialize(args={})
|
|
49
42
|
# message fields cannot be None, assign default values for those that are
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
if args[:x]
|
|
44
|
+
@x = args[:x]
|
|
45
|
+
else
|
|
46
|
+
@x = 0.0
|
|
47
|
+
end
|
|
48
|
+
if args[:y]
|
|
49
|
+
@y = args[:y]
|
|
50
|
+
else
|
|
51
|
+
@y = 0.0
|
|
52
|
+
end
|
|
53
|
+
if args[:z]
|
|
54
|
+
@z = args[:z]
|
|
55
|
+
else
|
|
56
|
+
@z = 0.0
|
|
57
|
+
end
|
|
53
58
|
end
|
|
54
59
|
|
|
60
|
+
# internal API method
|
|
61
|
+
# @return [String] Message type string.
|
|
55
62
|
def _get_types
|
|
56
|
-
|
|
57
|
-
return @slot_types
|
|
63
|
+
@slot_types
|
|
58
64
|
end
|
|
59
65
|
|
|
66
|
+
# serialize message into buffer
|
|
67
|
+
# @param [IO] buff buffer
|
|
60
68
|
def serialize(buff)
|
|
61
|
-
# serialize message into buffer
|
|
62
|
-
# @param buff: buffer
|
|
63
|
-
# @type buff: StringIO
|
|
64
69
|
begin
|
|
65
70
|
buff.write(@@struct_d3.pack(@x, @y, @z))
|
|
66
71
|
rescue => exception
|
|
@@ -69,10 +74,9 @@ float64 z
|
|
|
69
74
|
end
|
|
70
75
|
end
|
|
71
76
|
|
|
77
|
+
# unpack serialized message in str into this message instance
|
|
78
|
+
# @param [String] str: byte array of serialized message
|
|
72
79
|
def deserialize(str)
|
|
73
|
-
# unpack serialized message in str into this message instance
|
|
74
|
-
# @param str: byte array of serialized message
|
|
75
|
-
# @type str: str
|
|
76
80
|
|
|
77
81
|
begin
|
|
78
82
|
end_point = 0
|
|
@@ -38,35 +38,40 @@ float32 z
|
|
|
38
38
|
@@struct_L = ::ROS::Struct.new("L")
|
|
39
39
|
@@slot_types = ['float32','float32','float32']
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
# x,y,z
|
|
49
|
-
#
|
|
50
|
-
# @param args: complete set of field values, in .msg order
|
|
51
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
52
|
-
# to set specific fields.
|
|
53
|
-
#
|
|
54
|
-
|
|
41
|
+
# Constructor. You can set the default values using keyword operators.
|
|
42
|
+
#
|
|
43
|
+
# @param [Hash] args keyword for initializing values
|
|
44
|
+
# @option args [float32] :x initialize value
|
|
45
|
+
# @option args [float32] :y initialize value
|
|
46
|
+
# @option args [float32] :z initialize value
|
|
47
|
+
def initialize(args={})
|
|
55
48
|
# message fields cannot be None, assign default values for those that are
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
if args[:x]
|
|
50
|
+
@x = args[:x]
|
|
51
|
+
else
|
|
52
|
+
@x = 0.0
|
|
53
|
+
end
|
|
54
|
+
if args[:y]
|
|
55
|
+
@y = args[:y]
|
|
56
|
+
else
|
|
57
|
+
@y = 0.0
|
|
58
|
+
end
|
|
59
|
+
if args[:z]
|
|
60
|
+
@z = args[:z]
|
|
61
|
+
else
|
|
62
|
+
@z = 0.0
|
|
63
|
+
end
|
|
59
64
|
end
|
|
60
65
|
|
|
66
|
+
# internal API method
|
|
67
|
+
# @return [String] Message type string.
|
|
61
68
|
def _get_types
|
|
62
|
-
|
|
63
|
-
return @slot_types
|
|
69
|
+
@slot_types
|
|
64
70
|
end
|
|
65
71
|
|
|
72
|
+
# serialize message into buffer
|
|
73
|
+
# @param [IO] buff buffer
|
|
66
74
|
def serialize(buff)
|
|
67
|
-
# serialize message into buffer
|
|
68
|
-
# @param buff: buffer
|
|
69
|
-
# @type buff: StringIO
|
|
70
75
|
begin
|
|
71
76
|
buff.write(@@struct_f3.pack(@x, @y, @z))
|
|
72
77
|
rescue => exception
|
|
@@ -75,10 +80,9 @@ float32 z
|
|
|
75
80
|
end
|
|
76
81
|
end
|
|
77
82
|
|
|
83
|
+
# unpack serialized message in str into this message instance
|
|
84
|
+
# @param [String] str: byte array of serialized message
|
|
78
85
|
def deserialize(str)
|
|
79
|
-
# unpack serialized message in str into this message instance
|
|
80
|
-
# @param str: byte array of serialized message
|
|
81
|
-
# @type str: str
|
|
82
86
|
|
|
83
87
|
begin
|
|
84
88
|
end_point = 0
|
|
@@ -59,34 +59,34 @@ float64 z
|
|
|
59
59
|
@@struct_L = ::ROS::Struct.new("L")
|
|
60
60
|
@@slot_types = ['Header','geometry_msgs/Point']
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
# The available fields are:
|
|
69
|
-
# header,point
|
|
70
|
-
#
|
|
71
|
-
# @param args: complete set of field values, in .msg order
|
|
72
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
73
|
-
# to set specific fields.
|
|
74
|
-
#
|
|
75
|
-
|
|
62
|
+
# Constructor. You can set the default values using keyword operators.
|
|
63
|
+
#
|
|
64
|
+
# @param [Hash] args keyword for initializing values
|
|
65
|
+
# @option args [Header] :header initialize value
|
|
66
|
+
# @option args [geometry_msgs/Point] :point initialize value
|
|
67
|
+
def initialize(args={})
|
|
76
68
|
# message fields cannot be None, assign default values for those that are
|
|
77
|
-
|
|
78
|
-
|
|
69
|
+
if args[:header]
|
|
70
|
+
@header = args[:header]
|
|
71
|
+
else
|
|
72
|
+
@header = Std_msgs::Header.new
|
|
73
|
+
end
|
|
74
|
+
if args[:point]
|
|
75
|
+
@point = args[:point]
|
|
76
|
+
else
|
|
77
|
+
@point = Geometry_msgs::Point.new
|
|
78
|
+
end
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
+
# internal API method
|
|
82
|
+
# @return [String] Message type string.
|
|
81
83
|
def _get_types
|
|
82
|
-
|
|
83
|
-
return @slot_types
|
|
84
|
+
@slot_types
|
|
84
85
|
end
|
|
85
86
|
|
|
87
|
+
# serialize message into buffer
|
|
88
|
+
# @param [IO] buff buffer
|
|
86
89
|
def serialize(buff)
|
|
87
|
-
# serialize message into buffer
|
|
88
|
-
# @param buff: buffer
|
|
89
|
-
# @type buff: StringIO
|
|
90
90
|
begin
|
|
91
91
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
92
92
|
_x = @header.frame_id
|
|
@@ -99,10 +99,9 @@ float64 z
|
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
+
# unpack serialized message in str into this message instance
|
|
103
|
+
# @param [String] str: byte array of serialized message
|
|
102
104
|
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
105
|
|
|
107
106
|
begin
|
|
108
107
|
if @header == nil
|