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
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from PointHeadActionGoal.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "ros/time"
|
|
5
|
+
require "geometry_msgs/PointStamped"
|
|
6
|
+
require "ros/duration"
|
|
7
|
+
require "std_msgs/Header"
|
|
8
|
+
require "actionlib_msgs/GoalID"
|
|
9
|
+
require "geometry_msgs/Point"
|
|
10
|
+
require "pr2_controllers_msgs/PointHeadGoal"
|
|
11
|
+
require "geometry_msgs/Vector3"
|
|
12
|
+
|
|
13
|
+
module Pr2_controllers_msgs
|
|
14
|
+
|
|
15
|
+
class PointHeadActionGoal <::ROS::Message
|
|
16
|
+
def self.md5sum
|
|
17
|
+
"b53a8323d0ba7b310ba17a2d3a82a6b8"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.type
|
|
21
|
+
"pr2_controllers_msgs/PointHeadActionGoal"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def has_header?
|
|
25
|
+
true
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def message_definition
|
|
29
|
+
"# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
30
|
+
|
|
31
|
+
Header header
|
|
32
|
+
actionlib_msgs/GoalID goal_id
|
|
33
|
+
PointHeadGoal goal
|
|
34
|
+
|
|
35
|
+
================================================================================
|
|
36
|
+
MSG: std_msgs/Header
|
|
37
|
+
# Standard metadata for higher-level stamped data types.
|
|
38
|
+
# This is generally used to communicate timestamped data
|
|
39
|
+
# in a particular coordinate frame.
|
|
40
|
+
#
|
|
41
|
+
# sequence ID: consecutively increasing ID
|
|
42
|
+
uint32 seq
|
|
43
|
+
#Two-integer timestamp that is expressed as:
|
|
44
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
45
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
46
|
+
# time-handling sugar is provided by the client library
|
|
47
|
+
time stamp
|
|
48
|
+
#Frame this data is associated with
|
|
49
|
+
# 0: no frame
|
|
50
|
+
# 1: global frame
|
|
51
|
+
string frame_id
|
|
52
|
+
|
|
53
|
+
================================================================================
|
|
54
|
+
MSG: actionlib_msgs/GoalID
|
|
55
|
+
# The stamp should store the time at which this goal was requested.
|
|
56
|
+
# It is used by an action server when it tries to preempt all
|
|
57
|
+
# goals that were requested before a certain time
|
|
58
|
+
time stamp
|
|
59
|
+
|
|
60
|
+
# The id provides a way to associate feedback and
|
|
61
|
+
# result message with specific goal requests. The id
|
|
62
|
+
# specified must be unique.
|
|
63
|
+
string id
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
================================================================================
|
|
67
|
+
MSG: pr2_controllers_msgs/PointHeadGoal
|
|
68
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
69
|
+
geometry_msgs/PointStamped target
|
|
70
|
+
geometry_msgs/Vector3 pointing_axis
|
|
71
|
+
string pointing_frame
|
|
72
|
+
duration min_duration
|
|
73
|
+
float64 max_velocity
|
|
74
|
+
|
|
75
|
+
================================================================================
|
|
76
|
+
MSG: geometry_msgs/PointStamped
|
|
77
|
+
# This represents a Point with reference coordinate frame and timestamp
|
|
78
|
+
Header header
|
|
79
|
+
Point point
|
|
80
|
+
|
|
81
|
+
================================================================================
|
|
82
|
+
MSG: geometry_msgs/Point
|
|
83
|
+
# This contains the position of a point in free space
|
|
84
|
+
float64 x
|
|
85
|
+
float64 y
|
|
86
|
+
float64 z
|
|
87
|
+
|
|
88
|
+
================================================================================
|
|
89
|
+
MSG: geometry_msgs/Vector3
|
|
90
|
+
# This represents a vector in free space.
|
|
91
|
+
|
|
92
|
+
float64 x
|
|
93
|
+
float64 y
|
|
94
|
+
float64 z
|
|
95
|
+
"
|
|
96
|
+
end
|
|
97
|
+
attr_accessor :header, :goal_id, :goal
|
|
98
|
+
|
|
99
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
100
|
+
@@struct_d6 = ::ROS::Struct.new("d6")
|
|
101
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
|
102
|
+
@@struct_l2d = ::ROS::Struct.new("l2d")
|
|
103
|
+
|
|
104
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
105
|
+
@@slot_types = ['Header','actionlib_msgs/GoalID','pr2_controllers_msgs/PointHeadGoal']
|
|
106
|
+
|
|
107
|
+
# Constructor. You can set the default values using keyword operators.
|
|
108
|
+
#
|
|
109
|
+
# @param [Hash] args keyword for initializing values
|
|
110
|
+
# @option args [Header] :header initialize value
|
|
111
|
+
# @option args [actionlib_msgs/GoalID] :goal_id initialize value
|
|
112
|
+
# @option args [pr2_controllers_msgs/PointHeadGoal] :goal initialize value
|
|
113
|
+
def initialize(args={})
|
|
114
|
+
# message fields cannot be None, assign default values for those that are
|
|
115
|
+
if args[:header]
|
|
116
|
+
@header = args[:header]
|
|
117
|
+
else
|
|
118
|
+
@header = Std_msgs::Header.new
|
|
119
|
+
end
|
|
120
|
+
if args[:goal_id]
|
|
121
|
+
@goal_id = args[:goal_id]
|
|
122
|
+
else
|
|
123
|
+
@goal_id = Actionlib_msgs::GoalID.new
|
|
124
|
+
end
|
|
125
|
+
if args[:goal]
|
|
126
|
+
@goal = args[:goal]
|
|
127
|
+
else
|
|
128
|
+
@goal = Pr2_controllers_msgs::PointHeadGoal.new
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# internal API method
|
|
133
|
+
# @return [String] Message type string.
|
|
134
|
+
def _get_types
|
|
135
|
+
@slot_types
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# serialize message into buffer
|
|
139
|
+
# @param [IO] buff buffer
|
|
140
|
+
def serialize(buff)
|
|
141
|
+
begin
|
|
142
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
143
|
+
_x = @header.frame_id
|
|
144
|
+
length = _x.length
|
|
145
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
146
|
+
buff.write(@@struct_L2.pack(@goal_id.stamp.secs, @goal_id.stamp.nsecs))
|
|
147
|
+
_x = @goal_id.id
|
|
148
|
+
length = _x.length
|
|
149
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
150
|
+
buff.write(@@struct_L3.pack(@goal.target.header.seq, @goal.target.header.stamp.secs, @goal.target.header.stamp.nsecs))
|
|
151
|
+
_x = @goal.target.header.frame_id
|
|
152
|
+
length = _x.length
|
|
153
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
154
|
+
buff.write(@@struct_d6.pack(@goal.target.point.x, @goal.target.point.y, @goal.target.point.z, @goal.pointing_axis.x, @goal.pointing_axis.y, @goal.pointing_axis.z))
|
|
155
|
+
_x = @goal.pointing_frame
|
|
156
|
+
length = _x.length
|
|
157
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
158
|
+
buff.write(@@struct_l2d.pack(@goal.min_duration.secs, @goal.min_duration.nsecs, @goal.max_velocity))
|
|
159
|
+
rescue => exception
|
|
160
|
+
raise "some erro in serialize: #{exception}"
|
|
161
|
+
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# unpack serialized message in str into this message instance
|
|
166
|
+
# @param [String] str: byte array of serialized message
|
|
167
|
+
def deserialize(str)
|
|
168
|
+
|
|
169
|
+
begin
|
|
170
|
+
if @header == nil
|
|
171
|
+
@header = Std_msgs::Header.new
|
|
172
|
+
end
|
|
173
|
+
if @goal_id == nil
|
|
174
|
+
@goal_id = Actionlib_msgs::GoalID.new
|
|
175
|
+
end
|
|
176
|
+
if @goal == nil
|
|
177
|
+
@goal = Pr2_controllers_msgs::PointHeadGoal.new
|
|
178
|
+
end
|
|
179
|
+
end_point = 0
|
|
180
|
+
start = end_point
|
|
181
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
182
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
183
|
+
start = end_point
|
|
184
|
+
end_point += 4
|
|
185
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
186
|
+
start = end_point
|
|
187
|
+
end_point += length
|
|
188
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
189
|
+
start = end_point
|
|
190
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
191
|
+
(@goal_id.stamp.secs, @goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
192
|
+
start = end_point
|
|
193
|
+
end_point += 4
|
|
194
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
195
|
+
start = end_point
|
|
196
|
+
end_point += length
|
|
197
|
+
@goal_id.id = str[start..(end_point-1)]
|
|
198
|
+
start = end_point
|
|
199
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
200
|
+
(@goal.target.header.seq, @goal.target.header.stamp.secs, @goal.target.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
201
|
+
start = end_point
|
|
202
|
+
end_point += 4
|
|
203
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
204
|
+
start = end_point
|
|
205
|
+
end_point += length
|
|
206
|
+
@goal.target.header.frame_id = str[start..(end_point-1)]
|
|
207
|
+
start = end_point
|
|
208
|
+
end_point += ROS::Struct::calc_size('d6')
|
|
209
|
+
(@goal.target.point.x, @goal.target.point.y, @goal.target.point.z, @goal.pointing_axis.x, @goal.pointing_axis.y, @goal.pointing_axis.z,) = @@struct_d6.unpack(str[start..(end_point-1)])
|
|
210
|
+
start = end_point
|
|
211
|
+
end_point += 4
|
|
212
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
213
|
+
start = end_point
|
|
214
|
+
end_point += length
|
|
215
|
+
@goal.pointing_frame = str[start..(end_point-1)]
|
|
216
|
+
start = end_point
|
|
217
|
+
end_point += ROS::Struct::calc_size('l2d')
|
|
218
|
+
(@goal.min_duration.secs, @goal.min_duration.nsecs, @goal.max_velocity,) = @@struct_l2d.unpack(str[start..(end_point-1)])
|
|
219
|
+
return self
|
|
220
|
+
rescue => exception
|
|
221
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
end # end of class
|
|
225
|
+
end # end of module
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from PointHeadActionResult.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "std_msgs/Header"
|
|
5
|
+
require "actionlib_msgs/GoalID"
|
|
6
|
+
require "actionlib_msgs/GoalStatus"
|
|
7
|
+
require "pr2_controllers_msgs/PointHeadResult"
|
|
8
|
+
require "ros/time"
|
|
9
|
+
|
|
10
|
+
module Pr2_controllers_msgs
|
|
11
|
+
|
|
12
|
+
class PointHeadActionResult <::ROS::Message
|
|
13
|
+
def self.md5sum
|
|
14
|
+
"1eb06eeff08fa7ea874431638cb52332"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def self.type
|
|
18
|
+
"pr2_controllers_msgs/PointHeadActionResult"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def has_header?
|
|
22
|
+
true
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def message_definition
|
|
26
|
+
"# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
27
|
+
|
|
28
|
+
Header header
|
|
29
|
+
actionlib_msgs/GoalStatus status
|
|
30
|
+
PointHeadResult result
|
|
31
|
+
|
|
32
|
+
================================================================================
|
|
33
|
+
MSG: std_msgs/Header
|
|
34
|
+
# Standard metadata for higher-level stamped data types.
|
|
35
|
+
# This is generally used to communicate timestamped data
|
|
36
|
+
# in a particular coordinate frame.
|
|
37
|
+
#
|
|
38
|
+
# sequence ID: consecutively increasing ID
|
|
39
|
+
uint32 seq
|
|
40
|
+
#Two-integer timestamp that is expressed as:
|
|
41
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
42
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
43
|
+
# time-handling sugar is provided by the client library
|
|
44
|
+
time stamp
|
|
45
|
+
#Frame this data is associated with
|
|
46
|
+
# 0: no frame
|
|
47
|
+
# 1: global frame
|
|
48
|
+
string frame_id
|
|
49
|
+
|
|
50
|
+
================================================================================
|
|
51
|
+
MSG: actionlib_msgs/GoalStatus
|
|
52
|
+
GoalID goal_id
|
|
53
|
+
uint8 status
|
|
54
|
+
uint8 PENDING = 0 # The goal has yet to be processed by the action server
|
|
55
|
+
uint8 ACTIVE = 1 # The goal is currently being processed by the action server
|
|
56
|
+
uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
|
|
57
|
+
# and has since completed its execution (Terminal State)
|
|
58
|
+
uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
|
|
59
|
+
uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
|
|
60
|
+
# to some failure (Terminal State)
|
|
61
|
+
uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
|
|
62
|
+
# because the goal was unattainable or invalid (Terminal State)
|
|
63
|
+
uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
|
|
64
|
+
# and has not yet completed execution
|
|
65
|
+
uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
|
|
66
|
+
# but the action server has not yet confirmed that the goal is canceled
|
|
67
|
+
uint8 RECALLED = 8 # The goal received a cancel request before it started executing
|
|
68
|
+
# and was successfully cancelled (Terminal State)
|
|
69
|
+
uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
|
|
70
|
+
# sent over the wire by an action server
|
|
71
|
+
|
|
72
|
+
#Allow for the user to associate a string with GoalStatus for debugging
|
|
73
|
+
string text
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
================================================================================
|
|
77
|
+
MSG: actionlib_msgs/GoalID
|
|
78
|
+
# The stamp should store the time at which this goal was requested.
|
|
79
|
+
# It is used by an action server when it tries to preempt all
|
|
80
|
+
# goals that were requested before a certain time
|
|
81
|
+
time stamp
|
|
82
|
+
|
|
83
|
+
# The id provides a way to associate feedback and
|
|
84
|
+
# result message with specific goal requests. The id
|
|
85
|
+
# specified must be unique.
|
|
86
|
+
string id
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
================================================================================
|
|
90
|
+
MSG: pr2_controllers_msgs/PointHeadResult
|
|
91
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
92
|
+
|
|
93
|
+
"
|
|
94
|
+
end
|
|
95
|
+
attr_accessor :header, :status, :result
|
|
96
|
+
|
|
97
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
98
|
+
@@struct_C = ::ROS::Struct.new("C")
|
|
99
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
|
100
|
+
|
|
101
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
102
|
+
@@slot_types = ['Header','actionlib_msgs/GoalStatus','pr2_controllers_msgs/PointHeadResult']
|
|
103
|
+
|
|
104
|
+
# Constructor. You can set the default values using keyword operators.
|
|
105
|
+
#
|
|
106
|
+
# @param [Hash] args keyword for initializing values
|
|
107
|
+
# @option args [Header] :header initialize value
|
|
108
|
+
# @option args [actionlib_msgs/GoalStatus] :status initialize value
|
|
109
|
+
# @option args [pr2_controllers_msgs/PointHeadResult] :result initialize value
|
|
110
|
+
def initialize(args={})
|
|
111
|
+
# message fields cannot be None, assign default values for those that are
|
|
112
|
+
if args[:header]
|
|
113
|
+
@header = args[:header]
|
|
114
|
+
else
|
|
115
|
+
@header = Std_msgs::Header.new
|
|
116
|
+
end
|
|
117
|
+
if args[:status]
|
|
118
|
+
@status = args[:status]
|
|
119
|
+
else
|
|
120
|
+
@status = Actionlib_msgs::GoalStatus.new
|
|
121
|
+
end
|
|
122
|
+
if args[:result]
|
|
123
|
+
@result = args[:result]
|
|
124
|
+
else
|
|
125
|
+
@result = Pr2_controllers_msgs::PointHeadResult.new
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# internal API method
|
|
130
|
+
# @return [String] Message type string.
|
|
131
|
+
def _get_types
|
|
132
|
+
@slot_types
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# serialize message into buffer
|
|
136
|
+
# @param [IO] buff buffer
|
|
137
|
+
def serialize(buff)
|
|
138
|
+
begin
|
|
139
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
140
|
+
_x = @header.frame_id
|
|
141
|
+
length = _x.length
|
|
142
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
143
|
+
buff.write(@@struct_L2.pack(@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs))
|
|
144
|
+
_x = @status.goal_id.id
|
|
145
|
+
length = _x.length
|
|
146
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
147
|
+
buff.write(@@struct_C.pack(@status.status))
|
|
148
|
+
_x = @status.text
|
|
149
|
+
length = _x.length
|
|
150
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
151
|
+
rescue => exception
|
|
152
|
+
raise "some erro in serialize: #{exception}"
|
|
153
|
+
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# unpack serialized message in str into this message instance
|
|
158
|
+
# @param [String] str: byte array of serialized message
|
|
159
|
+
def deserialize(str)
|
|
160
|
+
|
|
161
|
+
begin
|
|
162
|
+
if @header == nil
|
|
163
|
+
@header = Std_msgs::Header.new
|
|
164
|
+
end
|
|
165
|
+
if @status == nil
|
|
166
|
+
@status = Actionlib_msgs::GoalStatus.new
|
|
167
|
+
end
|
|
168
|
+
if @result == nil
|
|
169
|
+
@result = Pr2_controllers_msgs::PointHeadResult.new
|
|
170
|
+
end
|
|
171
|
+
end_point = 0
|
|
172
|
+
start = end_point
|
|
173
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
174
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
175
|
+
start = end_point
|
|
176
|
+
end_point += 4
|
|
177
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
178
|
+
start = end_point
|
|
179
|
+
end_point += length
|
|
180
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
181
|
+
start = end_point
|
|
182
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
183
|
+
(@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
184
|
+
start = end_point
|
|
185
|
+
end_point += 4
|
|
186
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
187
|
+
start = end_point
|
|
188
|
+
end_point += length
|
|
189
|
+
@status.goal_id.id = str[start..(end_point-1)]
|
|
190
|
+
start = end_point
|
|
191
|
+
end_point += ROS::Struct::calc_size('C')
|
|
192
|
+
(@status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
|
|
193
|
+
start = end_point
|
|
194
|
+
end_point += 4
|
|
195
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
196
|
+
start = end_point
|
|
197
|
+
end_point += length
|
|
198
|
+
@status.text = str[start..(end_point-1)]
|
|
199
|
+
return self
|
|
200
|
+
rescue => exception
|
|
201
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
end # end of class
|
|
205
|
+
end # end of module
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from PointHeadGoal.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "std_msgs/Header"
|
|
5
|
+
require "geometry_msgs/Point"
|
|
6
|
+
require "geometry_msgs/PointStamped"
|
|
7
|
+
require "ros/duration"
|
|
8
|
+
require "geometry_msgs/Vector3"
|
|
9
|
+
|
|
10
|
+
module Pr2_controllers_msgs
|
|
11
|
+
|
|
12
|
+
class PointHeadGoal <::ROS::Message
|
|
13
|
+
def self.md5sum
|
|
14
|
+
"8b92b1cd5e06c8a94c917dc3209a4c1d"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def self.type
|
|
18
|
+
"pr2_controllers_msgs/PointHeadGoal"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def has_header?
|
|
22
|
+
false
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def message_definition
|
|
26
|
+
"# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
27
|
+
geometry_msgs/PointStamped target
|
|
28
|
+
geometry_msgs/Vector3 pointing_axis
|
|
29
|
+
string pointing_frame
|
|
30
|
+
duration min_duration
|
|
31
|
+
float64 max_velocity
|
|
32
|
+
|
|
33
|
+
================================================================================
|
|
34
|
+
MSG: geometry_msgs/PointStamped
|
|
35
|
+
# This represents a Point with reference coordinate frame and timestamp
|
|
36
|
+
Header header
|
|
37
|
+
Point point
|
|
38
|
+
|
|
39
|
+
================================================================================
|
|
40
|
+
MSG: std_msgs/Header
|
|
41
|
+
# Standard metadata for higher-level stamped data types.
|
|
42
|
+
# This is generally used to communicate timestamped data
|
|
43
|
+
# in a particular coordinate frame.
|
|
44
|
+
#
|
|
45
|
+
# sequence ID: consecutively increasing ID
|
|
46
|
+
uint32 seq
|
|
47
|
+
#Two-integer timestamp that is expressed as:
|
|
48
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
49
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
50
|
+
# time-handling sugar is provided by the client library
|
|
51
|
+
time stamp
|
|
52
|
+
#Frame this data is associated with
|
|
53
|
+
# 0: no frame
|
|
54
|
+
# 1: global frame
|
|
55
|
+
string frame_id
|
|
56
|
+
|
|
57
|
+
================================================================================
|
|
58
|
+
MSG: geometry_msgs/Point
|
|
59
|
+
# This contains the position of a point in free space
|
|
60
|
+
float64 x
|
|
61
|
+
float64 y
|
|
62
|
+
float64 z
|
|
63
|
+
|
|
64
|
+
================================================================================
|
|
65
|
+
MSG: geometry_msgs/Vector3
|
|
66
|
+
# This represents a vector in free space.
|
|
67
|
+
|
|
68
|
+
float64 x
|
|
69
|
+
float64 y
|
|
70
|
+
float64 z
|
|
71
|
+
"
|
|
72
|
+
end
|
|
73
|
+
attr_accessor :target, :pointing_axis, :pointing_frame, :min_duration, :max_velocity
|
|
74
|
+
|
|
75
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
76
|
+
@@struct_d6 = ::ROS::Struct.new("d6")
|
|
77
|
+
@@struct_l2d = ::ROS::Struct.new("l2d")
|
|
78
|
+
|
|
79
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
80
|
+
@@slot_types = ['geometry_msgs/PointStamped','geometry_msgs/Vector3','string','duration','float64']
|
|
81
|
+
|
|
82
|
+
# Constructor. You can set the default values using keyword operators.
|
|
83
|
+
#
|
|
84
|
+
# @param [Hash] args keyword for initializing values
|
|
85
|
+
# @option args [geometry_msgs/PointStamped] :target initialize value
|
|
86
|
+
# @option args [geometry_msgs/Vector3] :pointing_axis initialize value
|
|
87
|
+
# @option args [string] :pointing_frame initialize value
|
|
88
|
+
# @option args [duration] :min_duration initialize value
|
|
89
|
+
# @option args [float64] :max_velocity initialize value
|
|
90
|
+
def initialize(args={})
|
|
91
|
+
# message fields cannot be None, assign default values for those that are
|
|
92
|
+
if args[:target]
|
|
93
|
+
@target = args[:target]
|
|
94
|
+
else
|
|
95
|
+
@target = Geometry_msgs::PointStamped.new
|
|
96
|
+
end
|
|
97
|
+
if args[:pointing_axis]
|
|
98
|
+
@pointing_axis = args[:pointing_axis]
|
|
99
|
+
else
|
|
100
|
+
@pointing_axis = Geometry_msgs::Vector3.new
|
|
101
|
+
end
|
|
102
|
+
if args[:pointing_frame]
|
|
103
|
+
@pointing_frame = args[:pointing_frame]
|
|
104
|
+
else
|
|
105
|
+
@pointing_frame = ''
|
|
106
|
+
end
|
|
107
|
+
if args[:min_duration]
|
|
108
|
+
@min_duration = args[:min_duration]
|
|
109
|
+
else
|
|
110
|
+
@min_duration = ROS::Duration.new
|
|
111
|
+
end
|
|
112
|
+
if args[:max_velocity]
|
|
113
|
+
@max_velocity = args[:max_velocity]
|
|
114
|
+
else
|
|
115
|
+
@max_velocity = 0.0
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# internal API method
|
|
120
|
+
# @return [String] Message type string.
|
|
121
|
+
def _get_types
|
|
122
|
+
@slot_types
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# serialize message into buffer
|
|
126
|
+
# @param [IO] buff buffer
|
|
127
|
+
def serialize(buff)
|
|
128
|
+
begin
|
|
129
|
+
buff.write(@@struct_L3.pack(@target.header.seq, @target.header.stamp.secs, @target.header.stamp.nsecs))
|
|
130
|
+
_x = @target.header.frame_id
|
|
131
|
+
length = _x.length
|
|
132
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
133
|
+
buff.write(@@struct_d6.pack(@target.point.x, @target.point.y, @target.point.z, @pointing_axis.x, @pointing_axis.y, @pointing_axis.z))
|
|
134
|
+
_x = @pointing_frame
|
|
135
|
+
length = _x.length
|
|
136
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
137
|
+
buff.write(@@struct_l2d.pack(@min_duration.secs, @min_duration.nsecs, @max_velocity))
|
|
138
|
+
rescue => exception
|
|
139
|
+
raise "some erro in serialize: #{exception}"
|
|
140
|
+
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# unpack serialized message in str into this message instance
|
|
145
|
+
# @param [String] str: byte array of serialized message
|
|
146
|
+
def deserialize(str)
|
|
147
|
+
|
|
148
|
+
begin
|
|
149
|
+
if @target == nil
|
|
150
|
+
@target = Geometry_msgs::PointStamped.new
|
|
151
|
+
end
|
|
152
|
+
if @pointing_axis == nil
|
|
153
|
+
@pointing_axis = Geometry_msgs::Vector3.new
|
|
154
|
+
end
|
|
155
|
+
if @min_duration == nil
|
|
156
|
+
@min_duration = ROS::Duration.new
|
|
157
|
+
end
|
|
158
|
+
end_point = 0
|
|
159
|
+
start = end_point
|
|
160
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
161
|
+
(@target.header.seq, @target.header.stamp.secs, @target.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
162
|
+
start = end_point
|
|
163
|
+
end_point += 4
|
|
164
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
165
|
+
start = end_point
|
|
166
|
+
end_point += length
|
|
167
|
+
@target.header.frame_id = str[start..(end_point-1)]
|
|
168
|
+
start = end_point
|
|
169
|
+
end_point += ROS::Struct::calc_size('d6')
|
|
170
|
+
(@target.point.x, @target.point.y, @target.point.z, @pointing_axis.x, @pointing_axis.y, @pointing_axis.z,) = @@struct_d6.unpack(str[start..(end_point-1)])
|
|
171
|
+
start = end_point
|
|
172
|
+
end_point += 4
|
|
173
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
174
|
+
start = end_point
|
|
175
|
+
end_point += length
|
|
176
|
+
@pointing_frame = str[start..(end_point-1)]
|
|
177
|
+
start = end_point
|
|
178
|
+
end_point += ROS::Struct::calc_size('l2d')
|
|
179
|
+
(@min_duration.secs, @min_duration.nsecs, @max_velocity,) = @@struct_l2d.unpack(str[start..(end_point-1)])
|
|
180
|
+
return self
|
|
181
|
+
rescue => exception
|
|
182
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end # end of class
|
|
186
|
+
end # end of module
|