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
|
@@ -44,33 +44,28 @@ float32 z
|
|
|
44
44
|
@@struct_L = ::ROS::Struct.new("L")
|
|
45
45
|
@@slot_types = ['geometry_msgs/Point32[]']
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
#
|
|
53
|
-
# The available fields are:
|
|
54
|
-
# points
|
|
55
|
-
#
|
|
56
|
-
# @param args: complete set of field values, in .msg order
|
|
57
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
58
|
-
# to set specific fields.
|
|
59
|
-
#
|
|
60
|
-
|
|
47
|
+
# Constructor. You can set the default values using keyword operators.
|
|
48
|
+
#
|
|
49
|
+
# @param [Hash] args keyword for initializing values
|
|
50
|
+
# @option args [geometry_msgs/Point32[]] :points initialize value
|
|
51
|
+
def initialize(args={})
|
|
61
52
|
# message fields cannot be None, assign default values for those that are
|
|
62
|
-
|
|
53
|
+
if args[:points]
|
|
54
|
+
@points = args[:points]
|
|
55
|
+
else
|
|
56
|
+
@points = []
|
|
57
|
+
end
|
|
63
58
|
end
|
|
64
59
|
|
|
60
|
+
# internal API method
|
|
61
|
+
# @return [String] Message type string.
|
|
65
62
|
def _get_types
|
|
66
|
-
|
|
67
|
-
return @slot_types
|
|
63
|
+
@slot_types
|
|
68
64
|
end
|
|
69
65
|
|
|
66
|
+
# serialize message into buffer
|
|
67
|
+
# @param [IO] buff buffer
|
|
70
68
|
def serialize(buff)
|
|
71
|
-
# serialize message into buffer
|
|
72
|
-
# @param buff: buffer
|
|
73
|
-
# @type buff: StringIO
|
|
74
69
|
begin
|
|
75
70
|
length = @points.length
|
|
76
71
|
buff.write(@@struct_L.pack(length))
|
|
@@ -84,10 +79,9 @@ float32 z
|
|
|
84
79
|
end
|
|
85
80
|
end
|
|
86
81
|
|
|
82
|
+
# unpack serialized message in str into this message instance
|
|
83
|
+
# @param [String] str: byte array of serialized message
|
|
87
84
|
def deserialize(str)
|
|
88
|
-
# unpack serialized message in str into this message instance
|
|
89
|
-
# @param str: byte array of serialized message
|
|
90
|
-
# @type str: str
|
|
91
85
|
|
|
92
86
|
begin
|
|
93
87
|
end_point = 0
|
|
@@ -71,34 +71,34 @@ float32 z
|
|
|
71
71
|
@@struct_L = ::ROS::Struct.new("L")
|
|
72
72
|
@@slot_types = ['Header','geometry_msgs/Polygon']
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
# The available fields are:
|
|
81
|
-
# header,polygon
|
|
82
|
-
#
|
|
83
|
-
# @param args: complete set of field values, in .msg order
|
|
84
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
85
|
-
# to set specific fields.
|
|
86
|
-
#
|
|
87
|
-
|
|
74
|
+
# Constructor. You can set the default values using keyword operators.
|
|
75
|
+
#
|
|
76
|
+
# @param [Hash] args keyword for initializing values
|
|
77
|
+
# @option args [Header] :header initialize value
|
|
78
|
+
# @option args [geometry_msgs/Polygon] :polygon initialize value
|
|
79
|
+
def initialize(args={})
|
|
88
80
|
# message fields cannot be None, assign default values for those that are
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
if args[:header]
|
|
82
|
+
@header = args[:header]
|
|
83
|
+
else
|
|
84
|
+
@header = Std_msgs::Header.new
|
|
85
|
+
end
|
|
86
|
+
if args[:polygon]
|
|
87
|
+
@polygon = args[:polygon]
|
|
88
|
+
else
|
|
89
|
+
@polygon = Geometry_msgs::Polygon.new
|
|
90
|
+
end
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
+
# internal API method
|
|
94
|
+
# @return [String] Message type string.
|
|
93
95
|
def _get_types
|
|
94
|
-
|
|
95
|
-
return @slot_types
|
|
96
|
+
@slot_types
|
|
96
97
|
end
|
|
97
98
|
|
|
99
|
+
# serialize message into buffer
|
|
100
|
+
# @param [IO] buff buffer
|
|
98
101
|
def serialize(buff)
|
|
99
|
-
# serialize message into buffer
|
|
100
|
-
# @param buff: buffer
|
|
101
|
-
# @type buff: StringIO
|
|
102
102
|
begin
|
|
103
103
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
104
104
|
_x = @header.frame_id
|
|
@@ -116,10 +116,9 @@ float32 z
|
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
+
# unpack serialized message in str into this message instance
|
|
120
|
+
# @param [String] str: byte array of serialized message
|
|
119
121
|
def deserialize(str)
|
|
120
|
-
# unpack serialized message in str into this message instance
|
|
121
|
-
# @param str: byte array of serialized message
|
|
122
|
-
# @type str: str
|
|
123
122
|
|
|
124
123
|
begin
|
|
125
124
|
if @header == nil
|
|
@@ -49,34 +49,34 @@ float64 w
|
|
|
49
49
|
@@struct_L = ::ROS::Struct.new("L")
|
|
50
50
|
@@slot_types = ['geometry_msgs/Point','geometry_msgs/Quaternion']
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
# The available fields are:
|
|
59
|
-
# position,orientation
|
|
60
|
-
#
|
|
61
|
-
# @param args: complete set of field values, in .msg order
|
|
62
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
63
|
-
# to set specific fields.
|
|
64
|
-
#
|
|
65
|
-
|
|
52
|
+
# Constructor. You can set the default values using keyword operators.
|
|
53
|
+
#
|
|
54
|
+
# @param [Hash] args keyword for initializing values
|
|
55
|
+
# @option args [geometry_msgs/Point] :position initialize value
|
|
56
|
+
# @option args [geometry_msgs/Quaternion] :orientation initialize value
|
|
57
|
+
def initialize(args={})
|
|
66
58
|
# message fields cannot be None, assign default values for those that are
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
if args[:position]
|
|
60
|
+
@position = args[:position]
|
|
61
|
+
else
|
|
62
|
+
@position = Geometry_msgs::Point.new
|
|
63
|
+
end
|
|
64
|
+
if args[:orientation]
|
|
65
|
+
@orientation = args[:orientation]
|
|
66
|
+
else
|
|
67
|
+
@orientation = Geometry_msgs::Quaternion.new
|
|
68
|
+
end
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
+
# internal API method
|
|
72
|
+
# @return [String] Message type string.
|
|
71
73
|
def _get_types
|
|
72
|
-
|
|
73
|
-
return @slot_types
|
|
74
|
+
@slot_types
|
|
74
75
|
end
|
|
75
76
|
|
|
77
|
+
# serialize message into buffer
|
|
78
|
+
# @param [IO] buff buffer
|
|
76
79
|
def serialize(buff)
|
|
77
|
-
# serialize message into buffer
|
|
78
|
-
# @param buff: buffer
|
|
79
|
-
# @type buff: StringIO
|
|
80
80
|
begin
|
|
81
81
|
buff.write(@@struct_d7.pack(@position.x, @position.y, @position.z, @orientation.x, @orientation.y, @orientation.z, @orientation.w))
|
|
82
82
|
rescue => exception
|
|
@@ -85,10 +85,9 @@ float64 w
|
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
+
# unpack serialized message in str into this message instance
|
|
89
|
+
# @param [String] str: byte array of serialized message
|
|
88
90
|
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
91
|
|
|
93
92
|
begin
|
|
94
93
|
if @position == nil
|
|
@@ -32,35 +32,40 @@ float64 theta
|
|
|
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,theta
|
|
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] :theta 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[:theta]
|
|
54
|
+
@theta = args[:theta]
|
|
55
|
+
else
|
|
56
|
+
@theta = 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, @theta))
|
|
66
71
|
rescue => exception
|
|
@@ -69,10 +74,9 @@ float64 theta
|
|
|
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
|
|
@@ -79,34 +79,34 @@ float64 w
|
|
|
79
79
|
@@struct_L = ::ROS::Struct.new("L")
|
|
80
80
|
@@slot_types = ['Header','geometry_msgs/Pose[]']
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
# The available fields are:
|
|
89
|
-
# header,poses
|
|
90
|
-
#
|
|
91
|
-
# @param args: complete set of field values, in .msg order
|
|
92
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
93
|
-
# to set specific fields.
|
|
94
|
-
#
|
|
95
|
-
|
|
82
|
+
# Constructor. You can set the default values using keyword operators.
|
|
83
|
+
#
|
|
84
|
+
# @param [Hash] args keyword for initializing values
|
|
85
|
+
# @option args [Header] :header initialize value
|
|
86
|
+
# @option args [geometry_msgs/Pose[]] :poses initialize value
|
|
87
|
+
def initialize(args={})
|
|
96
88
|
# message fields cannot be None, assign default values for those that are
|
|
97
|
-
|
|
98
|
-
|
|
89
|
+
if args[:header]
|
|
90
|
+
@header = args[:header]
|
|
91
|
+
else
|
|
92
|
+
@header = Std_msgs::Header.new
|
|
93
|
+
end
|
|
94
|
+
if args[:poses]
|
|
95
|
+
@poses = args[:poses]
|
|
96
|
+
else
|
|
97
|
+
@poses = []
|
|
98
|
+
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
+
# internal API method
|
|
102
|
+
# @return [String] Message type string.
|
|
101
103
|
def _get_types
|
|
102
|
-
|
|
103
|
-
return @slot_types
|
|
104
|
+
@slot_types
|
|
104
105
|
end
|
|
105
106
|
|
|
107
|
+
# serialize message into buffer
|
|
108
|
+
# @param [IO] buff buffer
|
|
106
109
|
def serialize(buff)
|
|
107
|
-
# serialize message into buffer
|
|
108
|
-
# @param buff: buffer
|
|
109
|
-
# @type buff: StringIO
|
|
110
110
|
begin
|
|
111
111
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
112
112
|
_x = @header.frame_id
|
|
@@ -115,11 +115,11 @@ float64 w
|
|
|
115
115
|
length = @poses.length
|
|
116
116
|
buff.write(@@struct_L.pack(length))
|
|
117
117
|
for val1 in @poses
|
|
118
|
-
|
|
119
|
-
_x =
|
|
118
|
+
_v35 = val1.position
|
|
119
|
+
_x = _v35
|
|
120
120
|
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
|
121
|
-
|
|
122
|
-
_x =
|
|
121
|
+
_v36 = val1.orientation
|
|
122
|
+
_x = _v36
|
|
123
123
|
buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
|
|
124
124
|
end
|
|
125
125
|
rescue => exception
|
|
@@ -128,10 +128,9 @@ float64 w
|
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
+
# unpack serialized message in str into this message instance
|
|
132
|
+
# @param [String] str: byte array of serialized message
|
|
131
133
|
def deserialize(str)
|
|
132
|
-
# unpack serialized message in str into this message instance
|
|
133
|
-
# @param str: byte array of serialized message
|
|
134
|
-
# @type str: str
|
|
135
134
|
|
|
136
135
|
begin
|
|
137
136
|
if @header == nil
|
|
@@ -153,13 +152,13 @@ float64 w
|
|
|
153
152
|
@poses = []
|
|
154
153
|
length.times do
|
|
155
154
|
val1 = Geometry_msgs::Pose.new
|
|
156
|
-
|
|
157
|
-
_x =
|
|
155
|
+
_v37 = val1.position
|
|
156
|
+
_x = _v37
|
|
158
157
|
start = end_point
|
|
159
158
|
end_point += ROS::Struct::calc_size('d3')
|
|
160
159
|
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
|
161
|
-
|
|
162
|
-
_x =
|
|
160
|
+
_v38 = val1.orientation
|
|
161
|
+
_x = _v38
|
|
163
162
|
start = end_point
|
|
164
163
|
end_point += ROS::Struct::calc_size('d4')
|
|
165
164
|
(_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
|
|
@@ -76,34 +76,34 @@ float64 w
|
|
|
76
76
|
@@struct_L = ::ROS::Struct.new("L")
|
|
77
77
|
@@slot_types = ['Header','geometry_msgs/Pose']
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
# The available fields are:
|
|
86
|
-
# header,pose
|
|
87
|
-
#
|
|
88
|
-
# @param args: complete set of field values, in .msg order
|
|
89
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
90
|
-
# to set specific fields.
|
|
91
|
-
#
|
|
92
|
-
|
|
79
|
+
# Constructor. You can set the default values using keyword operators.
|
|
80
|
+
#
|
|
81
|
+
# @param [Hash] args keyword for initializing values
|
|
82
|
+
# @option args [Header] :header initialize value
|
|
83
|
+
# @option args [geometry_msgs/Pose] :pose initialize value
|
|
84
|
+
def initialize(args={})
|
|
93
85
|
# message fields cannot be None, assign default values for those that are
|
|
94
|
-
|
|
95
|
-
|
|
86
|
+
if args[:header]
|
|
87
|
+
@header = args[:header]
|
|
88
|
+
else
|
|
89
|
+
@header = Std_msgs::Header.new
|
|
90
|
+
end
|
|
91
|
+
if args[:pose]
|
|
92
|
+
@pose = args[:pose]
|
|
93
|
+
else
|
|
94
|
+
@pose = Geometry_msgs::Pose.new
|
|
95
|
+
end
|
|
96
96
|
end
|
|
97
97
|
|
|
98
|
+
# internal API method
|
|
99
|
+
# @return [String] Message type string.
|
|
98
100
|
def _get_types
|
|
99
|
-
|
|
100
|
-
return @slot_types
|
|
101
|
+
@slot_types
|
|
101
102
|
end
|
|
102
103
|
|
|
104
|
+
# serialize message into buffer
|
|
105
|
+
# @param [IO] buff buffer
|
|
103
106
|
def serialize(buff)
|
|
104
|
-
# serialize message into buffer
|
|
105
|
-
# @param buff: buffer
|
|
106
|
-
# @type buff: StringIO
|
|
107
107
|
begin
|
|
108
108
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
109
109
|
_x = @header.frame_id
|
|
@@ -116,10 +116,9 @@ float64 w
|
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
+
# unpack serialized message in str into this message instance
|
|
120
|
+
# @param [String] str: byte array of serialized message
|
|
119
121
|
def deserialize(str)
|
|
120
|
-
# unpack serialized message in str into this message instance
|
|
121
|
-
# @param str: byte array of serialized message
|
|
122
|
-
# @type str: str
|
|
123
122
|
|
|
124
123
|
begin
|
|
125
124
|
if @header == nil
|
|
@@ -63,34 +63,34 @@ float64 w
|
|
|
63
63
|
@@struct_L = ::ROS::Struct.new("L")
|
|
64
64
|
@@slot_types = ['geometry_msgs/Pose','float64[36]']
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
# The available fields are:
|
|
73
|
-
# pose,covariance
|
|
74
|
-
#
|
|
75
|
-
# @param args: complete set of field values, in .msg order
|
|
76
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
|
77
|
-
# to set specific fields.
|
|
78
|
-
#
|
|
79
|
-
|
|
66
|
+
# Constructor. You can set the default values using keyword operators.
|
|
67
|
+
#
|
|
68
|
+
# @param [Hash] args keyword for initializing values
|
|
69
|
+
# @option args [geometry_msgs/Pose] :pose initialize value
|
|
70
|
+
# @option args [float64[36]] :covariance initialize value
|
|
71
|
+
def initialize(args={})
|
|
80
72
|
# message fields cannot be None, assign default values for those that are
|
|
81
|
-
|
|
82
|
-
|
|
73
|
+
if args[:pose]
|
|
74
|
+
@pose = args[:pose]
|
|
75
|
+
else
|
|
76
|
+
@pose = Geometry_msgs::Pose.new
|
|
77
|
+
end
|
|
78
|
+
if args[:covariance]
|
|
79
|
+
@covariance = args[:covariance]
|
|
80
|
+
else
|
|
81
|
+
@covariance = [0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]
|
|
82
|
+
end
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
+
# internal API method
|
|
86
|
+
# @return [String] Message type string.
|
|
85
87
|
def _get_types
|
|
86
|
-
|
|
87
|
-
return @slot_types
|
|
88
|
+
@slot_types
|
|
88
89
|
end
|
|
89
90
|
|
|
91
|
+
# serialize message into buffer
|
|
92
|
+
# @param [IO] buff buffer
|
|
90
93
|
def serialize(buff)
|
|
91
|
-
# serialize message into buffer
|
|
92
|
-
# @param buff: buffer
|
|
93
|
-
# @type buff: StringIO
|
|
94
94
|
begin
|
|
95
95
|
buff.write(@@struct_d7.pack(@pose.position.x, @pose.position.y, @pose.position.z, @pose.orientation.x, @pose.orientation.y, @pose.orientation.z, @pose.orientation.w))
|
|
96
96
|
buff.write(@@struct_d36.pack(*@covariance))
|
|
@@ -100,10 +100,9 @@ float64 w
|
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
+
# unpack serialized message in str into this message instance
|
|
104
|
+
# @param [String] str: byte array of serialized message
|
|
103
105
|
def deserialize(str)
|
|
104
|
-
# unpack serialized message in str into this message instance
|
|
105
|
-
# @param str: byte array of serialized message
|
|
106
|
-
# @type str: str
|
|
107
106
|
|
|
108
107
|
begin
|
|
109
108
|
if @pose == nil
|