rosruby_msgs 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/{lib/actionlib_msgs → actionlib_msgs}/GoalID.rb +23 -24
- data/{lib/actionlib_msgs → actionlib_msgs}/GoalStatus.rb +29 -25
- data/{lib/actionlib_msgs → actionlib_msgs}/GoalStatusArray.rb +31 -32
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingAction.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionFeedback.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionGoal.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionResult.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingFeedback.rb +35 -26
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingGoal.rb +17 -23
- data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingResult.rb +23 -24
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciAction.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionFeedback.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionGoal.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionResult.rb +29 -25
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciFeedback.rb +17 -23
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciGoal.rb +17 -23
- data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciResult.rb +17 -23
- data/{lib/geometry_msgs → geometry_msgs}/Point.rb +29 -25
- data/{lib/geometry_msgs → geometry_msgs}/Point32.rb +29 -25
- data/{lib/geometry_msgs → geometry_msgs}/PointStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Polygon.rb +17 -23
- data/{lib/geometry_msgs → geometry_msgs}/PolygonStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Pose.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Pose2D.rb +29 -25
- data/{lib/geometry_msgs → geometry_msgs}/PoseArray.rb +31 -32
- data/{lib/geometry_msgs → geometry_msgs}/PoseStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/PoseWithCovariance.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/PoseWithCovarianceStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Quaternion.rb +35 -26
- data/{lib/geometry_msgs → geometry_msgs}/QuaternionStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Transform.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/TransformStamped.rb +29 -25
- data/{lib/geometry_msgs → geometry_msgs}/Twist.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/TwistStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/TwistWithCovariance.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/TwistWithCovarianceStamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Vector3.rb +29 -25
- data/{lib/geometry_msgs → geometry_msgs}/Vector3Stamped.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/Wrench.rb +23 -24
- data/{lib/geometry_msgs → geometry_msgs}/WrenchStamped.rb +23 -24
- data/{lib/nav_msgs → nav_msgs}/GetMap.rb +29 -45
- data/{lib/nav_msgs → nav_msgs}/GetPlan.rb +66 -68
- data/{lib/nav_msgs → nav_msgs}/GridCells.rb +35 -26
- data/{lib/nav_msgs → nav_msgs}/MapMetaData.rb +41 -27
- data/{lib/nav_msgs → nav_msgs}/OccupancyGrid.rb +29 -25
- data/{lib/nav_msgs → nav_msgs}/Odometry.rb +35 -26
- data/{lib/nav_msgs → nav_msgs}/Path.rb +43 -44
- data/pr2_controllers_msgs/JointTrajectoryAction.rb +409 -0
- data/pr2_controllers_msgs/JointTrajectoryActionFeedback.rb +206 -0
- data/pr2_controllers_msgs/JointTrajectoryActionGoal.rb +265 -0
- data/pr2_controllers_msgs/JointTrajectoryActionResult.rb +205 -0
- data/pr2_controllers_msgs/JointTrajectoryControllerState.rb +284 -0
- data/pr2_controllers_msgs/JointTrajectoryFeedback.rb +67 -0
- data/pr2_controllers_msgs/JointTrajectoryGoal.rb +196 -0
- data/pr2_controllers_msgs/JointTrajectoryResult.rb +66 -0
- data/pr2_controllers_msgs/PointHeadActionFeedback.rb +211 -0
- data/pr2_controllers_msgs/PointHeadActionGoal.rb +225 -0
- data/pr2_controllers_msgs/PointHeadActionResult.rb +205 -0
- data/pr2_controllers_msgs/PointHeadGoal.rb +186 -0
- data/pr2_controllers_msgs/Pr2GripperCommandAction.rb +334 -0
- data/pr2_controllers_msgs/Pr2GripperCommandActionGoal.rb +0 -0
- data/pr2_controllers_msgs/Pr2GripperCommandActionResult.rb +216 -0
- data/pr2_controllers_msgs/Pr2GripperCommandFeedback.rb +102 -0
- data/pr2_controllers_msgs/Pr2GripperCommandGoal.rb +87 -0
- data/pr2_controllers_msgs/Pr2GripperCommandResult.rb +101 -0
- data/pr2_controllers_msgs/SingleJointPositionAction.rb +335 -0
- data/pr2_controllers_msgs/SingleJointPositionActionFeedback.rb +228 -0
- data/pr2_controllers_msgs/SingleJointPositionActionGoal.rb +173 -0
- data/pr2_controllers_msgs/SingleJointPositionActionResult.rb +205 -0
- data/pr2_controllers_msgs/SingleJointPositionGoal.rb +96 -0
- data/pr2_controllers_msgs/SingleJointPositionResult.rb +66 -0
- data/{lib/roscpp → roscpp}/Empty.rb +24 -44
- data/{lib/roscpp → roscpp}/GetLoggers.rb +29 -45
- data/{lib/roscpp → roscpp}/Logger.rb +23 -24
- data/{lib/roscpp → roscpp}/SetLoggerLevel.rb +35 -46
- data/{lib/roscpp_tutorials → roscpp_tutorials}/TwoInts.rb +40 -47
- data/{lib/rosgraph_msgs → rosgraph_msgs}/Clock.rb +17 -23
- data/{lib/rosgraph_msgs → rosgraph_msgs}/Log.rb +59 -30
- data/{lib/sensor_msgs → sensor_msgs}/CameraInfo.rb +77 -33
- data/{lib/sensor_msgs → sensor_msgs}/ChannelFloat32.rb +23 -24
- data/{lib/sensor_msgs → sensor_msgs}/CompressedImage.rb +30 -31
- data/{lib/sensor_msgs → sensor_msgs}/Image.rb +54 -35
- data/{lib/sensor_msgs → sensor_msgs}/Imu.rb +53 -29
- data/{lib/sensor_msgs → sensor_msgs}/JointState.rb +41 -27
- data/{lib/sensor_msgs → sensor_msgs}/Joy.rb +29 -25
- data/{lib/sensor_msgs → sensor_msgs}/JoyFeedback.rb +29 -25
- data/{lib/sensor_msgs → sensor_msgs}/JoyFeedbackArray.rb +17 -23
- data/{lib/sensor_msgs → sensor_msgs}/LaserScan.rb +71 -32
- data/{lib/sensor_msgs → sensor_msgs}/NavSatFix.rb +53 -29
- data/{lib/sensor_msgs → sensor_msgs}/NavSatStatus.rb +23 -24
- data/{lib/sensor_msgs → sensor_msgs}/PointCloud.rb +29 -25
- data/{lib/sensor_msgs → sensor_msgs}/PointCloud2.rb +66 -37
- data/{lib/sensor_msgs → sensor_msgs}/PointField.rb +35 -26
- data/{lib/sensor_msgs → sensor_msgs}/Range.rb +47 -28
- data/{lib/sensor_msgs → sensor_msgs}/RegionOfInterest.rb +41 -27
- data/{lib/sensor_msgs → sensor_msgs}/SetCameraInfo.rb +40 -47
- data/{lib/sensor_msgs → sensor_msgs}/TimeReference.rb +29 -25
- data/{lib/std_msgs → std_msgs}/Bool.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Byte.rb +17 -23
- data/{lib/std_msgs → std_msgs}/ByteMultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Char.rb +17 -23
- data/{lib/std_msgs → std_msgs}/ColorRGBA.rb +35 -26
- data/{lib/std_msgs → std_msgs}/Duration.rb +17 -23
- data/std_msgs/Empty.rb +65 -0
- data/{lib/std_msgs → std_msgs}/Float32.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Float32MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Float64.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Float64MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Header.rb +29 -25
- data/{lib/std_msgs → std_msgs}/Int16.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Int16MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Int32.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Int32MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Int64.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Int64MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/Int8.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Int8MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/MultiArrayDimension.rb +29 -25
- data/{lib/std_msgs → std_msgs}/MultiArrayLayout.rb +23 -24
- data/{lib/std_msgs → std_msgs}/String.rb +17 -23
- data/{lib/std_msgs → std_msgs}/Time.rb +17 -23
- data/{lib/std_msgs → std_msgs}/UInt16.rb +17 -23
- data/{lib/std_msgs → std_msgs}/UInt16MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/UInt32.rb +17 -23
- data/{lib/std_msgs → std_msgs}/UInt32MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/UInt64.rb +17 -23
- data/{lib/std_msgs → std_msgs}/UInt64MultiArray.rb +23 -24
- data/{lib/std_msgs → std_msgs}/UInt8.rb +17 -23
- data/{lib/std_msgs → std_msgs}/UInt8MultiArray.rb +24 -30
- data/{lib/std_srvs → std_srvs}/Empty.rb +24 -44
- data/{lib/stereo_msgs → stereo_msgs}/DisparityImage.rb +60 -36
- data/{lib/tf → tf}/FrameGraph.rb +29 -45
- data/{lib/tf → tf}/tfMessage.rb +37 -43
- data/{lib/trajectory_msgs → trajectory_msgs}/JointTrajectory.rb +33 -29
- data/{lib/trajectory_msgs → trajectory_msgs}/JointTrajectoryPoint.rb +35 -26
- data/{lib/visualization_msgs → visualization_msgs}/ImageMarker.rb +89 -35
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarker.rb +89 -65
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerControl.rb +91 -62
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerFeedback.rb +65 -31
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerInit.rb +85 -81
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerPose.rb +29 -25
- data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerUpdate.rb +123 -104
- data/{lib/visualization_msgs → visualization_msgs}/Marker.rb +101 -37
- data/{lib/visualization_msgs → visualization_msgs}/MarkerArray.rb +49 -55
- data/{lib/visualization_msgs → visualization_msgs}/MenuEntry.rb +41 -27
- metadata +149 -129
- data/lib/std_msgs/Empty.rb +0 -75
@@ -58,35 +58,40 @@ duration time_from_start
|
|
58
58
|
@@struct_L = ::ROS::Struct.new("L")
|
59
59
|
@@slot_types = ['Header','string[]','trajectory_msgs/JointTrajectoryPoint[]']
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
# header,joint_names,points
|
69
|
-
#
|
70
|
-
# @param args: complete set of field values, in .msg order
|
71
|
-
# @param kwds: use keyword arguments corresponding to message field names
|
72
|
-
# to set specific fields.
|
73
|
-
#
|
74
|
-
|
61
|
+
# Constructor. You can set the default values using keyword operators.
|
62
|
+
#
|
63
|
+
# @param [Hash] args keyword for initializing values
|
64
|
+
# @option args [Header] :header initialize value
|
65
|
+
# @option args [string[]] :joint_names initialize value
|
66
|
+
# @option args [trajectory_msgs/JointTrajectoryPoint[]] :points initialize value
|
67
|
+
def initialize(args={})
|
75
68
|
# message fields cannot be None, assign default values for those that are
|
76
|
-
|
77
|
-
|
78
|
-
|
69
|
+
if args[:header]
|
70
|
+
@header = args[:header]
|
71
|
+
else
|
72
|
+
@header = Std_msgs::Header.new
|
73
|
+
end
|
74
|
+
if args[:joint_names]
|
75
|
+
@joint_names = args[:joint_names]
|
76
|
+
else
|
77
|
+
@joint_names = []
|
78
|
+
end
|
79
|
+
if args[:points]
|
80
|
+
@points = args[:points]
|
81
|
+
else
|
82
|
+
@points = []
|
83
|
+
end
|
79
84
|
end
|
80
85
|
|
86
|
+
# internal API method
|
87
|
+
# @return [String] Message type string.
|
81
88
|
def _get_types
|
82
|
-
|
83
|
-
return @slot_types
|
89
|
+
@slot_types
|
84
90
|
end
|
85
91
|
|
92
|
+
# serialize message into buffer
|
93
|
+
# @param [IO] buff buffer
|
86
94
|
def serialize(buff)
|
87
|
-
# serialize message into buffer
|
88
|
-
# @param buff: buffer
|
89
|
-
# @type buff: StringIO
|
90
95
|
begin
|
91
96
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
92
97
|
_x = @header.frame_id
|
@@ -113,8 +118,8 @@ duration time_from_start
|
|
113
118
|
buff.write(@@struct_L.pack(length))
|
114
119
|
pattern = "d#{length}"
|
115
120
|
buff.write(*val1.accelerations.pack(pattern))
|
116
|
-
|
117
|
-
_x =
|
121
|
+
_v5 = val1.time_from_start
|
122
|
+
_x = _v5
|
118
123
|
buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
|
119
124
|
end
|
120
125
|
rescue => exception
|
@@ -123,10 +128,9 @@ duration time_from_start
|
|
123
128
|
end
|
124
129
|
end
|
125
130
|
|
131
|
+
# unpack serialized message in str into this message instance
|
132
|
+
# @param [String] str: byte array of serialized message
|
126
133
|
def deserialize(str)
|
127
|
-
# unpack serialized message in str into this message instance
|
128
|
-
# @param str: byte array of serialized message
|
129
|
-
# @type str: str
|
130
134
|
|
131
135
|
begin
|
132
136
|
if @header == nil
|
@@ -182,8 +186,8 @@ duration time_from_start
|
|
182
186
|
start = end_point
|
183
187
|
end_point += ROS::Struct::calc_size("#{pattern}")
|
184
188
|
val1.accelerations = str[start..(end_point-1)].unpack(pattern)
|
185
|
-
|
186
|
-
_x =
|
189
|
+
_v6 = val1.time_from_start
|
190
|
+
_x = _v6
|
187
191
|
start = end_point
|
188
192
|
end_point += ROS::Struct::calc_size('l2')
|
189
193
|
(_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
|
@@ -32,36 +32,46 @@ duration time_from_start
|
|
32
32
|
@@struct_L = ::ROS::Struct.new("L")
|
33
33
|
@@slot_types = ['float64[]','float64[]','float64[]','duration']
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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[]] :positions initialize value
|
39
|
+
# @option args [float64[]] :velocities initialize value
|
40
|
+
# @option args [float64[]] :accelerations initialize value
|
41
|
+
# @option args [duration] :time_from_start initialize value
|
42
|
+
def initialize(args={})
|
49
43
|
# message fields cannot be None, assign default values for those that are
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
44
|
+
if args[:positions]
|
45
|
+
@positions = args[:positions]
|
46
|
+
else
|
47
|
+
@positions = []
|
48
|
+
end
|
49
|
+
if args[:velocities]
|
50
|
+
@velocities = args[:velocities]
|
51
|
+
else
|
52
|
+
@velocities = []
|
53
|
+
end
|
54
|
+
if args[:accelerations]
|
55
|
+
@accelerations = args[:accelerations]
|
56
|
+
else
|
57
|
+
@accelerations = []
|
58
|
+
end
|
59
|
+
if args[:time_from_start]
|
60
|
+
@time_from_start = args[:time_from_start]
|
61
|
+
else
|
62
|
+
@time_from_start = ROS::Duration.new
|
63
|
+
end
|
54
64
|
end
|
55
65
|
|
66
|
+
# internal API method
|
67
|
+
# @return [String] Message type string.
|
56
68
|
def _get_types
|
57
|
-
|
58
|
-
return @slot_types
|
69
|
+
@slot_types
|
59
70
|
end
|
60
71
|
|
72
|
+
# serialize message into buffer
|
73
|
+
# @param [IO] buff buffer
|
61
74
|
def serialize(buff)
|
62
|
-
# serialize message into buffer
|
63
|
-
# @param buff: buffer
|
64
|
-
# @type buff: StringIO
|
65
75
|
begin
|
66
76
|
length = @positions.length
|
67
77
|
buff.write(@@struct_L.pack(length))
|
@@ -82,10 +92,9 @@ duration time_from_start
|
|
82
92
|
end
|
83
93
|
end
|
84
94
|
|
95
|
+
# unpack serialized message in str into this message instance
|
96
|
+
# @param [String] str: byte array of serialized message
|
85
97
|
def deserialize(str)
|
86
|
-
# unpack serialized message in str into this message instance
|
87
|
-
# @param str: byte array of serialized message
|
88
|
-
# @type str: str
|
89
98
|
|
90
99
|
begin
|
91
100
|
if @time_from_start == nil
|
@@ -99,45 +99,100 @@ float32 a
|
|
99
99
|
@@struct_L = ::ROS::Struct.new("L")
|
100
100
|
@@slot_types = ['Header','string','int32','int32','int32','geometry_msgs/Point','float32','std_msgs/ColorRGBA','uint8','std_msgs/ColorRGBA','duration','geometry_msgs/Point[]','std_msgs/ColorRGBA[]']
|
101
101
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
102
|
+
# Constructor. You can set the default values using keyword operators.
|
103
|
+
#
|
104
|
+
# @param [Hash] args keyword for initializing values
|
105
|
+
# @option args [Header] :header initialize value
|
106
|
+
# @option args [string] :ns initialize value
|
107
|
+
# @option args [int32] :id initialize value
|
108
|
+
# @option args [int32] :type initialize value
|
109
|
+
# @option args [int32] :action initialize value
|
110
|
+
# @option args [geometry_msgs/Point] :position initialize value
|
111
|
+
# @option args [float32] :scale initialize value
|
112
|
+
# @option args [std_msgs/ColorRGBA] :outline_color initialize value
|
113
|
+
# @option args [uint8] :filled initialize value
|
114
|
+
# @option args [std_msgs/ColorRGBA] :fill_color initialize value
|
115
|
+
# @option args [duration] :lifetime initialize value
|
116
|
+
# @option args [geometry_msgs/Point[]] :points initialize value
|
117
|
+
# @option args [std_msgs/ColorRGBA[]] :outline_colors initialize value
|
118
|
+
def initialize(args={})
|
116
119
|
# message fields cannot be None, assign default values for those that are
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
120
|
+
if args[:header]
|
121
|
+
@header = args[:header]
|
122
|
+
else
|
123
|
+
@header = Std_msgs::Header.new
|
124
|
+
end
|
125
|
+
if args[:ns]
|
126
|
+
@ns = args[:ns]
|
127
|
+
else
|
128
|
+
@ns = ''
|
129
|
+
end
|
130
|
+
if args[:id]
|
131
|
+
@id = args[:id]
|
132
|
+
else
|
133
|
+
@id = 0
|
134
|
+
end
|
135
|
+
if args[:type]
|
136
|
+
@type = args[:type]
|
137
|
+
else
|
138
|
+
@type = 0
|
139
|
+
end
|
140
|
+
if args[:action]
|
141
|
+
@action = args[:action]
|
142
|
+
else
|
143
|
+
@action = 0
|
144
|
+
end
|
145
|
+
if args[:position]
|
146
|
+
@position = args[:position]
|
147
|
+
else
|
148
|
+
@position = Geometry_msgs::Point.new
|
149
|
+
end
|
150
|
+
if args[:scale]
|
151
|
+
@scale = args[:scale]
|
152
|
+
else
|
153
|
+
@scale = 0.0
|
154
|
+
end
|
155
|
+
if args[:outline_color]
|
156
|
+
@outline_color = args[:outline_color]
|
157
|
+
else
|
158
|
+
@outline_color = Std_msgs::ColorRGBA.new
|
159
|
+
end
|
160
|
+
if args[:filled]
|
161
|
+
@filled = args[:filled]
|
162
|
+
else
|
163
|
+
@filled = 0
|
164
|
+
end
|
165
|
+
if args[:fill_color]
|
166
|
+
@fill_color = args[:fill_color]
|
167
|
+
else
|
168
|
+
@fill_color = Std_msgs::ColorRGBA.new
|
169
|
+
end
|
170
|
+
if args[:lifetime]
|
171
|
+
@lifetime = args[:lifetime]
|
172
|
+
else
|
173
|
+
@lifetime = ROS::Duration.new
|
174
|
+
end
|
175
|
+
if args[:points]
|
176
|
+
@points = args[:points]
|
177
|
+
else
|
178
|
+
@points = []
|
179
|
+
end
|
180
|
+
if args[:outline_colors]
|
181
|
+
@outline_colors = args[:outline_colors]
|
182
|
+
else
|
183
|
+
@outline_colors = []
|
184
|
+
end
|
130
185
|
end
|
131
186
|
|
187
|
+
# internal API method
|
188
|
+
# @return [String] Message type string.
|
132
189
|
def _get_types
|
133
|
-
|
134
|
-
return @slot_types
|
190
|
+
@slot_types
|
135
191
|
end
|
136
192
|
|
193
|
+
# serialize message into buffer
|
194
|
+
# @param [IO] buff buffer
|
137
195
|
def serialize(buff)
|
138
|
-
# serialize message into buffer
|
139
|
-
# @param buff: buffer
|
140
|
-
# @type buff: StringIO
|
141
196
|
begin
|
142
197
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
143
198
|
_x = @header.frame_id
|
@@ -165,10 +220,9 @@ float32 a
|
|
165
220
|
end
|
166
221
|
end
|
167
222
|
|
223
|
+
# unpack serialized message in str into this message instance
|
224
|
+
# @param [String] str: byte array of serialized message
|
168
225
|
def deserialize(str)
|
169
|
-
# unpack serialized message in str into this message instance
|
170
|
-
# @param str: byte array of serialized message
|
171
|
-
# @type str: str
|
172
226
|
|
173
227
|
begin
|
174
228
|
if @header == nil
|
@@ -304,39 +304,64 @@ float32 a
|
|
304
304
|
@@struct_L = ::ROS::Struct.new("L")
|
305
305
|
@@slot_types = ['Header','geometry_msgs/Pose','string','string','float32','visualization_msgs/MenuEntry[]','visualization_msgs/InteractiveMarkerControl[]']
|
306
306
|
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
# to set specific fields.
|
319
|
-
#
|
320
|
-
|
307
|
+
# Constructor. You can set the default values using keyword operators.
|
308
|
+
#
|
309
|
+
# @param [Hash] args keyword for initializing values
|
310
|
+
# @option args [Header] :header initialize value
|
311
|
+
# @option args [geometry_msgs/Pose] :pose initialize value
|
312
|
+
# @option args [string] :name initialize value
|
313
|
+
# @option args [string] :description initialize value
|
314
|
+
# @option args [float32] :scale initialize value
|
315
|
+
# @option args [visualization_msgs/MenuEntry[]] :menu_entries initialize value
|
316
|
+
# @option args [visualization_msgs/InteractiveMarkerControl[]] :controls initialize value
|
317
|
+
def initialize(args={})
|
321
318
|
# message fields cannot be None, assign default values for those that are
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
319
|
+
if args[:header]
|
320
|
+
@header = args[:header]
|
321
|
+
else
|
322
|
+
@header = Std_msgs::Header.new
|
323
|
+
end
|
324
|
+
if args[:pose]
|
325
|
+
@pose = args[:pose]
|
326
|
+
else
|
327
|
+
@pose = Geometry_msgs::Pose.new
|
328
|
+
end
|
329
|
+
if args[:name]
|
330
|
+
@name = args[:name]
|
331
|
+
else
|
332
|
+
@name = ''
|
333
|
+
end
|
334
|
+
if args[:description]
|
335
|
+
@description = args[:description]
|
336
|
+
else
|
337
|
+
@description = ''
|
338
|
+
end
|
339
|
+
if args[:scale]
|
340
|
+
@scale = args[:scale]
|
341
|
+
else
|
342
|
+
@scale = 0.0
|
343
|
+
end
|
344
|
+
if args[:menu_entries]
|
345
|
+
@menu_entries = args[:menu_entries]
|
346
|
+
else
|
347
|
+
@menu_entries = []
|
348
|
+
end
|
349
|
+
if args[:controls]
|
350
|
+
@controls = args[:controls]
|
351
|
+
else
|
352
|
+
@controls = []
|
353
|
+
end
|
329
354
|
end
|
330
355
|
|
356
|
+
# internal API method
|
357
|
+
# @return [String] Message type string.
|
331
358
|
def _get_types
|
332
|
-
|
333
|
-
return @slot_types
|
359
|
+
@slot_types
|
334
360
|
end
|
335
361
|
|
362
|
+
# serialize message into buffer
|
363
|
+
# @param [IO] buff buffer
|
336
364
|
def serialize(buff)
|
337
|
-
# serialize message into buffer
|
338
|
-
# @param buff: buffer
|
339
|
-
# @type buff: StringIO
|
340
365
|
begin
|
341
366
|
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
342
367
|
_x = @header.frame_id
|
@@ -369,20 +394,20 @@ float32 a
|
|
369
394
|
_x = val1.name
|
370
395
|
length = _x.length
|
371
396
|
buff.write([length, _x].pack("La#{length}"))
|
372
|
-
|
373
|
-
_x =
|
397
|
+
_v43 = val1.orientation
|
398
|
+
_x = _v43
|
374
399
|
buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
|
375
400
|
_x = val1
|
376
401
|
buff.write(@@struct_C3.pack(_x.orientation_mode, _x.interaction_mode, _x.always_visible))
|
377
402
|
length = val1.markers.length
|
378
403
|
buff.write(@@struct_L.pack(length))
|
379
404
|
for val2 in val1.markers
|
380
|
-
|
381
|
-
buff.write(@@struct_L.pack(
|
382
|
-
|
383
|
-
_x =
|
405
|
+
_v44 = val2.header
|
406
|
+
buff.write(@@struct_L.pack(_v44.seq))
|
407
|
+
_v45 = _v44.stamp
|
408
|
+
_x = _v45
|
384
409
|
buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
|
385
|
-
_x =
|
410
|
+
_x = _v44.frame_id
|
386
411
|
length = _x.length
|
387
412
|
buff.write([length, _x].pack("La#{length}"))
|
388
413
|
_x = val2.ns
|
@@ -390,21 +415,21 @@ float32 a
|
|
390
415
|
buff.write([length, _x].pack("La#{length}"))
|
391
416
|
_x = val2
|
392
417
|
buff.write(@@struct_l3.pack(_x.id, _x.type, _x.action))
|
393
|
-
|
394
|
-
|
395
|
-
_x =
|
418
|
+
_v46 = val2.pose
|
419
|
+
_v47 = _v46.position
|
420
|
+
_x = _v47
|
396
421
|
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
397
|
-
|
398
|
-
_x =
|
422
|
+
_v48 = _v46.orientation
|
423
|
+
_x = _v48
|
399
424
|
buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
|
400
|
-
|
401
|
-
_x =
|
425
|
+
_v49 = val2.scale
|
426
|
+
_x = _v49
|
402
427
|
buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
|
403
|
-
|
404
|
-
_x =
|
428
|
+
_v50 = val2.color
|
429
|
+
_x = _v50
|
405
430
|
buff.write(@@struct_f4.pack(_x.r, _x.g, _x.b, _x.a))
|
406
|
-
|
407
|
-
_x =
|
431
|
+
_v51 = val2.lifetime
|
432
|
+
_x = _v51
|
408
433
|
buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
|
409
434
|
buff.write(@@struct_C.pack(val2.frame_locked))
|
410
435
|
length = val2.points.length
|
@@ -438,10 +463,9 @@ float32 a
|
|
438
463
|
end
|
439
464
|
end
|
440
465
|
|
466
|
+
# unpack serialized message in str into this message instance
|
467
|
+
# @param [String] str: byte array of serialized message
|
441
468
|
def deserialize(str)
|
442
|
-
# unpack serialized message in str into this message instance
|
443
|
-
# @param str: byte array of serialized message
|
444
|
-
# @type str: str
|
445
469
|
|
446
470
|
begin
|
447
471
|
if @header == nil
|
@@ -517,8 +541,8 @@ float32 a
|
|
517
541
|
start = end_point
|
518
542
|
end_point += length
|
519
543
|
val1.name = str[start..(end_point-1)]
|
520
|
-
|
521
|
-
_x =
|
544
|
+
_v52 = val1.orientation
|
545
|
+
_x = _v52
|
522
546
|
start = end_point
|
523
547
|
end_point += ROS::Struct::calc_size('d4')
|
524
548
|
(_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
|
@@ -533,12 +557,12 @@ float32 a
|
|
533
557
|
val1.markers = []
|
534
558
|
length.times do
|
535
559
|
val2 = Visualization_msgs::Marker.new
|
536
|
-
|
560
|
+
_v53 = val2.header
|
537
561
|
start = end_point
|
538
562
|
end_point += ROS::Struct::calc_size('L')
|
539
|
-
(
|
540
|
-
|
541
|
-
_x =
|
563
|
+
(_v53.seq,) = @@struct_L.unpack(str[start..(end_point-1)])
|
564
|
+
_v54 = _v53.stamp
|
565
|
+
_x = _v54
|
542
566
|
start = end_point
|
543
567
|
end_point += ROS::Struct::calc_size('L2')
|
544
568
|
(_x.secs, _x.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
@@ -547,7 +571,7 @@ float32 a
|
|
547
571
|
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
548
572
|
start = end_point
|
549
573
|
end_point += length
|
550
|
-
|
574
|
+
_v53.frame_id = str[start..(end_point-1)]
|
551
575
|
start = end_point
|
552
576
|
end_point += 4
|
553
577
|
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
@@ -558,29 +582,29 @@ float32 a
|
|
558
582
|
start = end_point
|
559
583
|
end_point += ROS::Struct::calc_size('l3')
|
560
584
|
(_x.id, _x.type, _x.action,) = @@struct_l3.unpack(str[start..(end_point-1)])
|
561
|
-
|
562
|
-
|
563
|
-
_x =
|
585
|
+
_v55 = val2.pose
|
586
|
+
_v56 = _v55.position
|
587
|
+
_x = _v56
|
564
588
|
start = end_point
|
565
589
|
end_point += ROS::Struct::calc_size('d3')
|
566
590
|
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
567
|
-
|
568
|
-
_x =
|
591
|
+
_v57 = _v55.orientation
|
592
|
+
_x = _v57
|
569
593
|
start = end_point
|
570
594
|
end_point += ROS::Struct::calc_size('d4')
|
571
595
|
(_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
|
572
|
-
|
573
|
-
_x =
|
596
|
+
_v58 = val2.scale
|
597
|
+
_x = _v58
|
574
598
|
start = end_point
|
575
599
|
end_point += ROS::Struct::calc_size('d3')
|
576
600
|
(_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
|
577
|
-
|
578
|
-
_x =
|
601
|
+
_v59 = val2.color
|
602
|
+
_x = _v59
|
579
603
|
start = end_point
|
580
604
|
end_point += ROS::Struct::calc_size('f4')
|
581
605
|
(_x.r, _x.g, _x.b, _x.a,) = @@struct_f4.unpack(str[start..(end_point-1)])
|
582
|
-
|
583
|
-
_x =
|
606
|
+
_v60 = val2.lifetime
|
607
|
+
_x = _v60
|
584
608
|
start = end_point
|
585
609
|
end_point += ROS::Struct::calc_size('l2')
|
586
610
|
(_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
|