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,334 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from Pr2GripperCommandAction.msg. Do not edit.
|
|
2
|
+
require 'ros/message'
|
|
3
|
+
|
|
4
|
+
require "ros/time"
|
|
5
|
+
require "pr2_controllers_msgs/Pr2GripperCommandResult"
|
|
6
|
+
require "pr2_controllers_msgs/Pr2GripperCommandActionGoal"
|
|
7
|
+
require "pr2_controllers_msgs/Pr2GripperCommandFeedback"
|
|
8
|
+
require "std_msgs/Header"
|
|
9
|
+
require "actionlib_msgs/GoalID"
|
|
10
|
+
require "pr2_controllers_msgs/Pr2GripperCommandGoal"
|
|
11
|
+
require "pr2_controllers_msgs/Pr2GripperCommandActionResult"
|
|
12
|
+
require "pr2_controllers_msgs/Pr2GripperCommand"
|
|
13
|
+
require "actionlib_msgs/GoalStatus"
|
|
14
|
+
require "pr2_controllers_msgs/Pr2GripperCommandActionFeedback"
|
|
15
|
+
|
|
16
|
+
module Pr2_controllers_msgs
|
|
17
|
+
|
|
18
|
+
class Pr2GripperCommandAction <::ROS::Message
|
|
19
|
+
def self.md5sum
|
|
20
|
+
"950b2a6ebe831f5d4f4ceaba3d8be01e"
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.type
|
|
24
|
+
"pr2_controllers_msgs/Pr2GripperCommandAction"
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def has_header?
|
|
28
|
+
false
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def message_definition
|
|
32
|
+
"# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
33
|
+
|
|
34
|
+
Pr2GripperCommandActionGoal action_goal
|
|
35
|
+
Pr2GripperCommandActionResult action_result
|
|
36
|
+
Pr2GripperCommandActionFeedback action_feedback
|
|
37
|
+
|
|
38
|
+
================================================================================
|
|
39
|
+
MSG: pr2_controllers_msgs/Pr2GripperCommandActionGoal
|
|
40
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
41
|
+
|
|
42
|
+
Header header
|
|
43
|
+
actionlib_msgs/GoalID goal_id
|
|
44
|
+
Pr2GripperCommandGoal goal
|
|
45
|
+
|
|
46
|
+
================================================================================
|
|
47
|
+
MSG: std_msgs/Header
|
|
48
|
+
# Standard metadata for higher-level stamped data types.
|
|
49
|
+
# This is generally used to communicate timestamped data
|
|
50
|
+
# in a particular coordinate frame.
|
|
51
|
+
#
|
|
52
|
+
# sequence ID: consecutively increasing ID
|
|
53
|
+
uint32 seq
|
|
54
|
+
#Two-integer timestamp that is expressed as:
|
|
55
|
+
# * stamp.secs: seconds (stamp_secs) since epoch
|
|
56
|
+
# * stamp.nsecs: nanoseconds since stamp_secs
|
|
57
|
+
# time-handling sugar is provided by the client library
|
|
58
|
+
time stamp
|
|
59
|
+
#Frame this data is associated with
|
|
60
|
+
# 0: no frame
|
|
61
|
+
# 1: global frame
|
|
62
|
+
string frame_id
|
|
63
|
+
|
|
64
|
+
================================================================================
|
|
65
|
+
MSG: actionlib_msgs/GoalID
|
|
66
|
+
# The stamp should store the time at which this goal was requested.
|
|
67
|
+
# It is used by an action server when it tries to preempt all
|
|
68
|
+
# goals that were requested before a certain time
|
|
69
|
+
time stamp
|
|
70
|
+
|
|
71
|
+
# The id provides a way to associate feedback and
|
|
72
|
+
# result message with specific goal requests. The id
|
|
73
|
+
# specified must be unique.
|
|
74
|
+
string id
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
================================================================================
|
|
78
|
+
MSG: pr2_controllers_msgs/Pr2GripperCommandGoal
|
|
79
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
80
|
+
pr2_controllers_msgs/Pr2GripperCommand command
|
|
81
|
+
|
|
82
|
+
================================================================================
|
|
83
|
+
MSG: pr2_controllers_msgs/Pr2GripperCommand
|
|
84
|
+
float64 position
|
|
85
|
+
float64 max_effort
|
|
86
|
+
|
|
87
|
+
================================================================================
|
|
88
|
+
MSG: pr2_controllers_msgs/Pr2GripperCommandActionResult
|
|
89
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
90
|
+
|
|
91
|
+
Header header
|
|
92
|
+
actionlib_msgs/GoalStatus status
|
|
93
|
+
Pr2GripperCommandResult result
|
|
94
|
+
|
|
95
|
+
================================================================================
|
|
96
|
+
MSG: actionlib_msgs/GoalStatus
|
|
97
|
+
GoalID goal_id
|
|
98
|
+
uint8 status
|
|
99
|
+
uint8 PENDING = 0 # The goal has yet to be processed by the action server
|
|
100
|
+
uint8 ACTIVE = 1 # The goal is currently being processed by the action server
|
|
101
|
+
uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
|
|
102
|
+
# and has since completed its execution (Terminal State)
|
|
103
|
+
uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
|
|
104
|
+
uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
|
|
105
|
+
# to some failure (Terminal State)
|
|
106
|
+
uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
|
|
107
|
+
# because the goal was unattainable or invalid (Terminal State)
|
|
108
|
+
uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
|
|
109
|
+
# and has not yet completed execution
|
|
110
|
+
uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
|
|
111
|
+
# but the action server has not yet confirmed that the goal is canceled
|
|
112
|
+
uint8 RECALLED = 8 # The goal received a cancel request before it started executing
|
|
113
|
+
# and was successfully cancelled (Terminal State)
|
|
114
|
+
uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
|
|
115
|
+
# sent over the wire by an action server
|
|
116
|
+
|
|
117
|
+
#Allow for the user to associate a string with GoalStatus for debugging
|
|
118
|
+
string text
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
================================================================================
|
|
122
|
+
MSG: pr2_controllers_msgs/Pr2GripperCommandResult
|
|
123
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
124
|
+
float64 position # The current gripper gap size (in meters)
|
|
125
|
+
float64 effort # The current effort exerted (in Newtons)
|
|
126
|
+
bool stalled # True iff the gripper is exerting max effort and not moving
|
|
127
|
+
bool reached_goal # True iff the gripper position has reached the commanded setpoint
|
|
128
|
+
|
|
129
|
+
================================================================================
|
|
130
|
+
MSG: pr2_controllers_msgs/Pr2GripperCommandActionFeedback
|
|
131
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
132
|
+
|
|
133
|
+
Header header
|
|
134
|
+
actionlib_msgs/GoalStatus status
|
|
135
|
+
Pr2GripperCommandFeedback feedback
|
|
136
|
+
|
|
137
|
+
================================================================================
|
|
138
|
+
MSG: pr2_controllers_msgs/Pr2GripperCommandFeedback
|
|
139
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
140
|
+
float64 position # The current gripper gap size (in meters)
|
|
141
|
+
float64 effort # The current effort exerted (in Newtons)
|
|
142
|
+
bool stalled # True iff the gripper is exerting max effort and not moving
|
|
143
|
+
bool reached_goal # True iff the gripper position has reached the commanded setpoint
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
"
|
|
147
|
+
end
|
|
148
|
+
attr_accessor :action_goal, :action_result, :action_feedback
|
|
149
|
+
|
|
150
|
+
@@struct_d2L3 = ::ROS::Struct.new("d2L3")
|
|
151
|
+
@@struct_C = ::ROS::Struct.new("C")
|
|
152
|
+
@@struct_d2C2L3 = ::ROS::Struct.new("d2C2L3")
|
|
153
|
+
@@struct_d2C2 = ::ROS::Struct.new("d2C2")
|
|
154
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
155
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
|
156
|
+
|
|
157
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
158
|
+
@@slot_types = ['pr2_controllers_msgs/Pr2GripperCommandActionGoal','pr2_controllers_msgs/Pr2GripperCommandActionResult','pr2_controllers_msgs/Pr2GripperCommandActionFeedback']
|
|
159
|
+
|
|
160
|
+
# Constructor. You can set the default values using keyword operators.
|
|
161
|
+
#
|
|
162
|
+
# @param [Hash] args keyword for initializing values
|
|
163
|
+
# @option args [pr2_controllers_msgs/Pr2GripperCommandActionGoal] :action_goal initialize value
|
|
164
|
+
# @option args [pr2_controllers_msgs/Pr2GripperCommandActionResult] :action_result initialize value
|
|
165
|
+
# @option args [pr2_controllers_msgs/Pr2GripperCommandActionFeedback] :action_feedback initialize value
|
|
166
|
+
def initialize(args={})
|
|
167
|
+
# message fields cannot be None, assign default values for those that are
|
|
168
|
+
if args[:action_goal]
|
|
169
|
+
@action_goal = args[:action_goal]
|
|
170
|
+
else
|
|
171
|
+
@action_goal = Pr2_controllers_msgs::Pr2GripperCommandActionGoal.new
|
|
172
|
+
end
|
|
173
|
+
if args[:action_result]
|
|
174
|
+
@action_result = args[:action_result]
|
|
175
|
+
else
|
|
176
|
+
@action_result = Pr2_controllers_msgs::Pr2GripperCommandActionResult.new
|
|
177
|
+
end
|
|
178
|
+
if args[:action_feedback]
|
|
179
|
+
@action_feedback = args[:action_feedback]
|
|
180
|
+
else
|
|
181
|
+
@action_feedback = Pr2_controllers_msgs::Pr2GripperCommandActionFeedback.new
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# internal API method
|
|
186
|
+
# @return [String] Message type string.
|
|
187
|
+
def _get_types
|
|
188
|
+
@slot_types
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# serialize message into buffer
|
|
192
|
+
# @param [IO] buff buffer
|
|
193
|
+
def serialize(buff)
|
|
194
|
+
begin
|
|
195
|
+
buff.write(@@struct_L3.pack(@action_goal.header.seq, @action_goal.header.stamp.secs, @action_goal.header.stamp.nsecs))
|
|
196
|
+
_x = @action_goal.header.frame_id
|
|
197
|
+
length = _x.length
|
|
198
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
199
|
+
buff.write(@@struct_L2.pack(@action_goal.goal_id.stamp.secs, @action_goal.goal_id.stamp.nsecs))
|
|
200
|
+
_x = @action_goal.goal_id.id
|
|
201
|
+
length = _x.length
|
|
202
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
203
|
+
buff.write(@@struct_d2L3.pack(@action_goal.goal.command.position, @action_goal.goal.command.max_effort, @action_result.header.seq, @action_result.header.stamp.secs, @action_result.header.stamp.nsecs))
|
|
204
|
+
_x = @action_result.header.frame_id
|
|
205
|
+
length = _x.length
|
|
206
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
207
|
+
buff.write(@@struct_L2.pack(@action_result.status.goal_id.stamp.secs, @action_result.status.goal_id.stamp.nsecs))
|
|
208
|
+
_x = @action_result.status.goal_id.id
|
|
209
|
+
length = _x.length
|
|
210
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
211
|
+
buff.write(@@struct_C.pack(@action_result.status.status))
|
|
212
|
+
_x = @action_result.status.text
|
|
213
|
+
length = _x.length
|
|
214
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
215
|
+
buff.write(@@struct_d2C2L3.pack(@action_result.result.position, @action_result.result.effort, @action_result.result.stalled, @action_result.result.reached_goal, @action_feedback.header.seq, @action_feedback.header.stamp.secs, @action_feedback.header.stamp.nsecs))
|
|
216
|
+
_x = @action_feedback.header.frame_id
|
|
217
|
+
length = _x.length
|
|
218
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
219
|
+
buff.write(@@struct_L2.pack(@action_feedback.status.goal_id.stamp.secs, @action_feedback.status.goal_id.stamp.nsecs))
|
|
220
|
+
_x = @action_feedback.status.goal_id.id
|
|
221
|
+
length = _x.length
|
|
222
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
223
|
+
buff.write(@@struct_C.pack(@action_feedback.status.status))
|
|
224
|
+
_x = @action_feedback.status.text
|
|
225
|
+
length = _x.length
|
|
226
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
227
|
+
buff.write(@@struct_d2C2.pack(@action_feedback.feedback.position, @action_feedback.feedback.effort, @action_feedback.feedback.stalled, @action_feedback.feedback.reached_goal))
|
|
228
|
+
rescue => exception
|
|
229
|
+
raise "some erro in serialize: #{exception}"
|
|
230
|
+
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# unpack serialized message in str into this message instance
|
|
235
|
+
# @param [String] str: byte array of serialized message
|
|
236
|
+
def deserialize(str)
|
|
237
|
+
|
|
238
|
+
begin
|
|
239
|
+
if @action_goal == nil
|
|
240
|
+
@action_goal = Pr2_controllers_msgs::Pr2GripperCommandActionGoal.new
|
|
241
|
+
end
|
|
242
|
+
if @action_result == nil
|
|
243
|
+
@action_result = Pr2_controllers_msgs::Pr2GripperCommandActionResult.new
|
|
244
|
+
end
|
|
245
|
+
if @action_feedback == nil
|
|
246
|
+
@action_feedback = Pr2_controllers_msgs::Pr2GripperCommandActionFeedback.new
|
|
247
|
+
end
|
|
248
|
+
end_point = 0
|
|
249
|
+
start = end_point
|
|
250
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
251
|
+
(@action_goal.header.seq, @action_goal.header.stamp.secs, @action_goal.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
252
|
+
start = end_point
|
|
253
|
+
end_point += 4
|
|
254
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
255
|
+
start = end_point
|
|
256
|
+
end_point += length
|
|
257
|
+
@action_goal.header.frame_id = str[start..(end_point-1)]
|
|
258
|
+
start = end_point
|
|
259
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
260
|
+
(@action_goal.goal_id.stamp.secs, @action_goal.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
261
|
+
start = end_point
|
|
262
|
+
end_point += 4
|
|
263
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
264
|
+
start = end_point
|
|
265
|
+
end_point += length
|
|
266
|
+
@action_goal.goal_id.id = str[start..(end_point-1)]
|
|
267
|
+
start = end_point
|
|
268
|
+
end_point += ROS::Struct::calc_size('d2L3')
|
|
269
|
+
(@action_goal.goal.command.position, @action_goal.goal.command.max_effort, @action_result.header.seq, @action_result.header.stamp.secs, @action_result.header.stamp.nsecs,) = @@struct_d2L3.unpack(str[start..(end_point-1)])
|
|
270
|
+
start = end_point
|
|
271
|
+
end_point += 4
|
|
272
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
273
|
+
start = end_point
|
|
274
|
+
end_point += length
|
|
275
|
+
@action_result.header.frame_id = str[start..(end_point-1)]
|
|
276
|
+
start = end_point
|
|
277
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
278
|
+
(@action_result.status.goal_id.stamp.secs, @action_result.status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
279
|
+
start = end_point
|
|
280
|
+
end_point += 4
|
|
281
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
282
|
+
start = end_point
|
|
283
|
+
end_point += length
|
|
284
|
+
@action_result.status.goal_id.id = str[start..(end_point-1)]
|
|
285
|
+
start = end_point
|
|
286
|
+
end_point += ROS::Struct::calc_size('C')
|
|
287
|
+
(@action_result.status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
|
|
288
|
+
start = end_point
|
|
289
|
+
end_point += 4
|
|
290
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
291
|
+
start = end_point
|
|
292
|
+
end_point += length
|
|
293
|
+
@action_result.status.text = str[start..(end_point-1)]
|
|
294
|
+
start = end_point
|
|
295
|
+
end_point += ROS::Struct::calc_size('d2C2L3')
|
|
296
|
+
(@action_result.result.position, @action_result.result.effort, @action_result.result.stalled, @action_result.result.reached_goal, @action_feedback.header.seq, @action_feedback.header.stamp.secs, @action_feedback.header.stamp.nsecs,) = @@struct_d2C2L3.unpack(str[start..(end_point-1)])
|
|
297
|
+
@action_result.result.stalled = bool(@action_result.result.stalled)
|
|
298
|
+
@action_result.result.reached_goal = bool(@action_result.result.reached_goal)
|
|
299
|
+
start = end_point
|
|
300
|
+
end_point += 4
|
|
301
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
302
|
+
start = end_point
|
|
303
|
+
end_point += length
|
|
304
|
+
@action_feedback.header.frame_id = str[start..(end_point-1)]
|
|
305
|
+
start = end_point
|
|
306
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
307
|
+
(@action_feedback.status.goal_id.stamp.secs, @action_feedback.status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
308
|
+
start = end_point
|
|
309
|
+
end_point += 4
|
|
310
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
311
|
+
start = end_point
|
|
312
|
+
end_point += length
|
|
313
|
+
@action_feedback.status.goal_id.id = str[start..(end_point-1)]
|
|
314
|
+
start = end_point
|
|
315
|
+
end_point += ROS::Struct::calc_size('C')
|
|
316
|
+
(@action_feedback.status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
|
|
317
|
+
start = end_point
|
|
318
|
+
end_point += 4
|
|
319
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
320
|
+
start = end_point
|
|
321
|
+
end_point += length
|
|
322
|
+
@action_feedback.status.text = str[start..(end_point-1)]
|
|
323
|
+
start = end_point
|
|
324
|
+
end_point += ROS::Struct::calc_size('d2C2')
|
|
325
|
+
(@action_feedback.feedback.position, @action_feedback.feedback.effort, @action_feedback.feedback.stalled, @action_feedback.feedback.reached_goal,) = @@struct_d2C2.unpack(str[start..(end_point-1)])
|
|
326
|
+
@action_feedback.feedback.stalled = bool(@action_feedback.feedback.stalled)
|
|
327
|
+
@action_feedback.feedback.reached_goal = bool(@action_feedback.feedback.reached_goal)
|
|
328
|
+
return self
|
|
329
|
+
rescue => exception
|
|
330
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
end # end of class
|
|
334
|
+
end # end of module
|
|
File without changes
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# autogenerated by genmsg_ruby from Pr2GripperCommandActionResult.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/Pr2GripperCommandResult"
|
|
8
|
+
require "ros/time"
|
|
9
|
+
|
|
10
|
+
module Pr2_controllers_msgs
|
|
11
|
+
|
|
12
|
+
class Pr2GripperCommandActionResult <::ROS::Message
|
|
13
|
+
def self.md5sum
|
|
14
|
+
"143702cb2df0f163c5283cedc5efc6b6"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def self.type
|
|
18
|
+
"pr2_controllers_msgs/Pr2GripperCommandActionResult"
|
|
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
|
+
Pr2GripperCommandResult 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/Pr2GripperCommandResult
|
|
91
|
+
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
|
|
92
|
+
float64 position # The current gripper gap size (in meters)
|
|
93
|
+
float64 effort # The current effort exerted (in Newtons)
|
|
94
|
+
bool stalled # True iff the gripper is exerting max effort and not moving
|
|
95
|
+
bool reached_goal # True iff the gripper position has reached the commanded setpoint
|
|
96
|
+
|
|
97
|
+
"
|
|
98
|
+
end
|
|
99
|
+
attr_accessor :header, :status, :result
|
|
100
|
+
|
|
101
|
+
@@struct_d2C2 = ::ROS::Struct.new("d2C2")
|
|
102
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
|
103
|
+
@@struct_C = ::ROS::Struct.new("C")
|
|
104
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
|
105
|
+
|
|
106
|
+
@@struct_L = ::ROS::Struct.new("L")
|
|
107
|
+
@@slot_types = ['Header','actionlib_msgs/GoalStatus','pr2_controllers_msgs/Pr2GripperCommandResult']
|
|
108
|
+
|
|
109
|
+
# Constructor. You can set the default values using keyword operators.
|
|
110
|
+
#
|
|
111
|
+
# @param [Hash] args keyword for initializing values
|
|
112
|
+
# @option args [Header] :header initialize value
|
|
113
|
+
# @option args [actionlib_msgs/GoalStatus] :status initialize value
|
|
114
|
+
# @option args [pr2_controllers_msgs/Pr2GripperCommandResult] :result initialize value
|
|
115
|
+
def initialize(args={})
|
|
116
|
+
# message fields cannot be None, assign default values for those that are
|
|
117
|
+
if args[:header]
|
|
118
|
+
@header = args[:header]
|
|
119
|
+
else
|
|
120
|
+
@header = Std_msgs::Header.new
|
|
121
|
+
end
|
|
122
|
+
if args[:status]
|
|
123
|
+
@status = args[:status]
|
|
124
|
+
else
|
|
125
|
+
@status = Actionlib_msgs::GoalStatus.new
|
|
126
|
+
end
|
|
127
|
+
if args[:result]
|
|
128
|
+
@result = args[:result]
|
|
129
|
+
else
|
|
130
|
+
@result = Pr2_controllers_msgs::Pr2GripperCommandResult.new
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# internal API method
|
|
135
|
+
# @return [String] Message type string.
|
|
136
|
+
def _get_types
|
|
137
|
+
@slot_types
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# serialize message into buffer
|
|
141
|
+
# @param [IO] buff buffer
|
|
142
|
+
def serialize(buff)
|
|
143
|
+
begin
|
|
144
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
|
145
|
+
_x = @header.frame_id
|
|
146
|
+
length = _x.length
|
|
147
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
148
|
+
buff.write(@@struct_L2.pack(@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs))
|
|
149
|
+
_x = @status.goal_id.id
|
|
150
|
+
length = _x.length
|
|
151
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
152
|
+
buff.write(@@struct_C.pack(@status.status))
|
|
153
|
+
_x = @status.text
|
|
154
|
+
length = _x.length
|
|
155
|
+
buff.write([length, _x].pack("La#{length}"))
|
|
156
|
+
buff.write(@@struct_d2C2.pack(@result.position, @result.effort, @result.stalled, @result.reached_goal))
|
|
157
|
+
rescue => exception
|
|
158
|
+
raise "some erro in serialize: #{exception}"
|
|
159
|
+
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# unpack serialized message in str into this message instance
|
|
164
|
+
# @param [String] str: byte array of serialized message
|
|
165
|
+
def deserialize(str)
|
|
166
|
+
|
|
167
|
+
begin
|
|
168
|
+
if @header == nil
|
|
169
|
+
@header = Std_msgs::Header.new
|
|
170
|
+
end
|
|
171
|
+
if @status == nil
|
|
172
|
+
@status = Actionlib_msgs::GoalStatus.new
|
|
173
|
+
end
|
|
174
|
+
if @result == nil
|
|
175
|
+
@result = Pr2_controllers_msgs::Pr2GripperCommandResult.new
|
|
176
|
+
end
|
|
177
|
+
end_point = 0
|
|
178
|
+
start = end_point
|
|
179
|
+
end_point += ROS::Struct::calc_size('L3')
|
|
180
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
|
181
|
+
start = end_point
|
|
182
|
+
end_point += 4
|
|
183
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
184
|
+
start = end_point
|
|
185
|
+
end_point += length
|
|
186
|
+
@header.frame_id = str[start..(end_point-1)]
|
|
187
|
+
start = end_point
|
|
188
|
+
end_point += ROS::Struct::calc_size('L2')
|
|
189
|
+
(@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
|
190
|
+
start = end_point
|
|
191
|
+
end_point += 4
|
|
192
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
193
|
+
start = end_point
|
|
194
|
+
end_point += length
|
|
195
|
+
@status.goal_id.id = str[start..(end_point-1)]
|
|
196
|
+
start = end_point
|
|
197
|
+
end_point += ROS::Struct::calc_size('C')
|
|
198
|
+
(@status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
|
|
199
|
+
start = end_point
|
|
200
|
+
end_point += 4
|
|
201
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
|
202
|
+
start = end_point
|
|
203
|
+
end_point += length
|
|
204
|
+
@status.text = str[start..(end_point-1)]
|
|
205
|
+
start = end_point
|
|
206
|
+
end_point += ROS::Struct::calc_size('d2C2')
|
|
207
|
+
(@result.position, @result.effort, @result.stalled, @result.reached_goal,) = @@struct_d2C2.unpack(str[start..(end_point-1)])
|
|
208
|
+
@result.stalled = bool(@result.stalled)
|
|
209
|
+
@result.reached_goal = bool(@result.reached_goal)
|
|
210
|
+
return self
|
|
211
|
+
rescue => exception
|
|
212
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
end # end of class
|
|
216
|
+
end # end of module
|