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.
Files changed (147) hide show
  1. data/{lib/actionlib_msgs → actionlib_msgs}/GoalID.rb +23 -24
  2. data/{lib/actionlib_msgs → actionlib_msgs}/GoalStatus.rb +29 -25
  3. data/{lib/actionlib_msgs → actionlib_msgs}/GoalStatusArray.rb +31 -32
  4. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingAction.rb +29 -25
  5. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionFeedback.rb +29 -25
  6. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionGoal.rb +29 -25
  7. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingActionResult.rb +29 -25
  8. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingFeedback.rb +35 -26
  9. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingGoal.rb +17 -23
  10. data/{lib/actionlib_tutorials → actionlib_tutorials}/AveragingResult.rb +23 -24
  11. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciAction.rb +29 -25
  12. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionFeedback.rb +29 -25
  13. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionGoal.rb +29 -25
  14. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciActionResult.rb +29 -25
  15. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciFeedback.rb +17 -23
  16. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciGoal.rb +17 -23
  17. data/{lib/actionlib_tutorials → actionlib_tutorials}/FibonacciResult.rb +17 -23
  18. data/{lib/geometry_msgs → geometry_msgs}/Point.rb +29 -25
  19. data/{lib/geometry_msgs → geometry_msgs}/Point32.rb +29 -25
  20. data/{lib/geometry_msgs → geometry_msgs}/PointStamped.rb +23 -24
  21. data/{lib/geometry_msgs → geometry_msgs}/Polygon.rb +17 -23
  22. data/{lib/geometry_msgs → geometry_msgs}/PolygonStamped.rb +23 -24
  23. data/{lib/geometry_msgs → geometry_msgs}/Pose.rb +23 -24
  24. data/{lib/geometry_msgs → geometry_msgs}/Pose2D.rb +29 -25
  25. data/{lib/geometry_msgs → geometry_msgs}/PoseArray.rb +31 -32
  26. data/{lib/geometry_msgs → geometry_msgs}/PoseStamped.rb +23 -24
  27. data/{lib/geometry_msgs → geometry_msgs}/PoseWithCovariance.rb +23 -24
  28. data/{lib/geometry_msgs → geometry_msgs}/PoseWithCovarianceStamped.rb +23 -24
  29. data/{lib/geometry_msgs → geometry_msgs}/Quaternion.rb +35 -26
  30. data/{lib/geometry_msgs → geometry_msgs}/QuaternionStamped.rb +23 -24
  31. data/{lib/geometry_msgs → geometry_msgs}/Transform.rb +23 -24
  32. data/{lib/geometry_msgs → geometry_msgs}/TransformStamped.rb +29 -25
  33. data/{lib/geometry_msgs → geometry_msgs}/Twist.rb +23 -24
  34. data/{lib/geometry_msgs → geometry_msgs}/TwistStamped.rb +23 -24
  35. data/{lib/geometry_msgs → geometry_msgs}/TwistWithCovariance.rb +23 -24
  36. data/{lib/geometry_msgs → geometry_msgs}/TwistWithCovarianceStamped.rb +23 -24
  37. data/{lib/geometry_msgs → geometry_msgs}/Vector3.rb +29 -25
  38. data/{lib/geometry_msgs → geometry_msgs}/Vector3Stamped.rb +23 -24
  39. data/{lib/geometry_msgs → geometry_msgs}/Wrench.rb +23 -24
  40. data/{lib/geometry_msgs → geometry_msgs}/WrenchStamped.rb +23 -24
  41. data/{lib/nav_msgs → nav_msgs}/GetMap.rb +29 -45
  42. data/{lib/nav_msgs → nav_msgs}/GetPlan.rb +66 -68
  43. data/{lib/nav_msgs → nav_msgs}/GridCells.rb +35 -26
  44. data/{lib/nav_msgs → nav_msgs}/MapMetaData.rb +41 -27
  45. data/{lib/nav_msgs → nav_msgs}/OccupancyGrid.rb +29 -25
  46. data/{lib/nav_msgs → nav_msgs}/Odometry.rb +35 -26
  47. data/{lib/nav_msgs → nav_msgs}/Path.rb +43 -44
  48. data/pr2_controllers_msgs/JointTrajectoryAction.rb +409 -0
  49. data/pr2_controllers_msgs/JointTrajectoryActionFeedback.rb +206 -0
  50. data/pr2_controllers_msgs/JointTrajectoryActionGoal.rb +265 -0
  51. data/pr2_controllers_msgs/JointTrajectoryActionResult.rb +205 -0
  52. data/pr2_controllers_msgs/JointTrajectoryControllerState.rb +284 -0
  53. data/pr2_controllers_msgs/JointTrajectoryFeedback.rb +67 -0
  54. data/pr2_controllers_msgs/JointTrajectoryGoal.rb +196 -0
  55. data/pr2_controllers_msgs/JointTrajectoryResult.rb +66 -0
  56. data/pr2_controllers_msgs/PointHeadActionFeedback.rb +211 -0
  57. data/pr2_controllers_msgs/PointHeadActionGoal.rb +225 -0
  58. data/pr2_controllers_msgs/PointHeadActionResult.rb +205 -0
  59. data/pr2_controllers_msgs/PointHeadGoal.rb +186 -0
  60. data/pr2_controllers_msgs/Pr2GripperCommandAction.rb +334 -0
  61. data/pr2_controllers_msgs/Pr2GripperCommandActionGoal.rb +0 -0
  62. data/pr2_controllers_msgs/Pr2GripperCommandActionResult.rb +216 -0
  63. data/pr2_controllers_msgs/Pr2GripperCommandFeedback.rb +102 -0
  64. data/pr2_controllers_msgs/Pr2GripperCommandGoal.rb +87 -0
  65. data/pr2_controllers_msgs/Pr2GripperCommandResult.rb +101 -0
  66. data/pr2_controllers_msgs/SingleJointPositionAction.rb +335 -0
  67. data/pr2_controllers_msgs/SingleJointPositionActionFeedback.rb +228 -0
  68. data/pr2_controllers_msgs/SingleJointPositionActionGoal.rb +173 -0
  69. data/pr2_controllers_msgs/SingleJointPositionActionResult.rb +205 -0
  70. data/pr2_controllers_msgs/SingleJointPositionGoal.rb +96 -0
  71. data/pr2_controllers_msgs/SingleJointPositionResult.rb +66 -0
  72. data/{lib/roscpp → roscpp}/Empty.rb +24 -44
  73. data/{lib/roscpp → roscpp}/GetLoggers.rb +29 -45
  74. data/{lib/roscpp → roscpp}/Logger.rb +23 -24
  75. data/{lib/roscpp → roscpp}/SetLoggerLevel.rb +35 -46
  76. data/{lib/roscpp_tutorials → roscpp_tutorials}/TwoInts.rb +40 -47
  77. data/{lib/rosgraph_msgs → rosgraph_msgs}/Clock.rb +17 -23
  78. data/{lib/rosgraph_msgs → rosgraph_msgs}/Log.rb +59 -30
  79. data/{lib/sensor_msgs → sensor_msgs}/CameraInfo.rb +77 -33
  80. data/{lib/sensor_msgs → sensor_msgs}/ChannelFloat32.rb +23 -24
  81. data/{lib/sensor_msgs → sensor_msgs}/CompressedImage.rb +30 -31
  82. data/{lib/sensor_msgs → sensor_msgs}/Image.rb +54 -35
  83. data/{lib/sensor_msgs → sensor_msgs}/Imu.rb +53 -29
  84. data/{lib/sensor_msgs → sensor_msgs}/JointState.rb +41 -27
  85. data/{lib/sensor_msgs → sensor_msgs}/Joy.rb +29 -25
  86. data/{lib/sensor_msgs → sensor_msgs}/JoyFeedback.rb +29 -25
  87. data/{lib/sensor_msgs → sensor_msgs}/JoyFeedbackArray.rb +17 -23
  88. data/{lib/sensor_msgs → sensor_msgs}/LaserScan.rb +71 -32
  89. data/{lib/sensor_msgs → sensor_msgs}/NavSatFix.rb +53 -29
  90. data/{lib/sensor_msgs → sensor_msgs}/NavSatStatus.rb +23 -24
  91. data/{lib/sensor_msgs → sensor_msgs}/PointCloud.rb +29 -25
  92. data/{lib/sensor_msgs → sensor_msgs}/PointCloud2.rb +66 -37
  93. data/{lib/sensor_msgs → sensor_msgs}/PointField.rb +35 -26
  94. data/{lib/sensor_msgs → sensor_msgs}/Range.rb +47 -28
  95. data/{lib/sensor_msgs → sensor_msgs}/RegionOfInterest.rb +41 -27
  96. data/{lib/sensor_msgs → sensor_msgs}/SetCameraInfo.rb +40 -47
  97. data/{lib/sensor_msgs → sensor_msgs}/TimeReference.rb +29 -25
  98. data/{lib/std_msgs → std_msgs}/Bool.rb +17 -23
  99. data/{lib/std_msgs → std_msgs}/Byte.rb +17 -23
  100. data/{lib/std_msgs → std_msgs}/ByteMultiArray.rb +23 -24
  101. data/{lib/std_msgs → std_msgs}/Char.rb +17 -23
  102. data/{lib/std_msgs → std_msgs}/ColorRGBA.rb +35 -26
  103. data/{lib/std_msgs → std_msgs}/Duration.rb +17 -23
  104. data/std_msgs/Empty.rb +65 -0
  105. data/{lib/std_msgs → std_msgs}/Float32.rb +17 -23
  106. data/{lib/std_msgs → std_msgs}/Float32MultiArray.rb +23 -24
  107. data/{lib/std_msgs → std_msgs}/Float64.rb +17 -23
  108. data/{lib/std_msgs → std_msgs}/Float64MultiArray.rb +23 -24
  109. data/{lib/std_msgs → std_msgs}/Header.rb +29 -25
  110. data/{lib/std_msgs → std_msgs}/Int16.rb +17 -23
  111. data/{lib/std_msgs → std_msgs}/Int16MultiArray.rb +23 -24
  112. data/{lib/std_msgs → std_msgs}/Int32.rb +17 -23
  113. data/{lib/std_msgs → std_msgs}/Int32MultiArray.rb +23 -24
  114. data/{lib/std_msgs → std_msgs}/Int64.rb +17 -23
  115. data/{lib/std_msgs → std_msgs}/Int64MultiArray.rb +23 -24
  116. data/{lib/std_msgs → std_msgs}/Int8.rb +17 -23
  117. data/{lib/std_msgs → std_msgs}/Int8MultiArray.rb +23 -24
  118. data/{lib/std_msgs → std_msgs}/MultiArrayDimension.rb +29 -25
  119. data/{lib/std_msgs → std_msgs}/MultiArrayLayout.rb +23 -24
  120. data/{lib/std_msgs → std_msgs}/String.rb +17 -23
  121. data/{lib/std_msgs → std_msgs}/Time.rb +17 -23
  122. data/{lib/std_msgs → std_msgs}/UInt16.rb +17 -23
  123. data/{lib/std_msgs → std_msgs}/UInt16MultiArray.rb +23 -24
  124. data/{lib/std_msgs → std_msgs}/UInt32.rb +17 -23
  125. data/{lib/std_msgs → std_msgs}/UInt32MultiArray.rb +23 -24
  126. data/{lib/std_msgs → std_msgs}/UInt64.rb +17 -23
  127. data/{lib/std_msgs → std_msgs}/UInt64MultiArray.rb +23 -24
  128. data/{lib/std_msgs → std_msgs}/UInt8.rb +17 -23
  129. data/{lib/std_msgs → std_msgs}/UInt8MultiArray.rb +24 -30
  130. data/{lib/std_srvs → std_srvs}/Empty.rb +24 -44
  131. data/{lib/stereo_msgs → stereo_msgs}/DisparityImage.rb +60 -36
  132. data/{lib/tf → tf}/FrameGraph.rb +29 -45
  133. data/{lib/tf → tf}/tfMessage.rb +37 -43
  134. data/{lib/trajectory_msgs → trajectory_msgs}/JointTrajectory.rb +33 -29
  135. data/{lib/trajectory_msgs → trajectory_msgs}/JointTrajectoryPoint.rb +35 -26
  136. data/{lib/visualization_msgs → visualization_msgs}/ImageMarker.rb +89 -35
  137. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarker.rb +89 -65
  138. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerControl.rb +91 -62
  139. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerFeedback.rb +65 -31
  140. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerInit.rb +85 -81
  141. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerPose.rb +29 -25
  142. data/{lib/visualization_msgs → visualization_msgs}/InteractiveMarkerUpdate.rb +123 -104
  143. data/{lib/visualization_msgs → visualization_msgs}/Marker.rb +101 -37
  144. data/{lib/visualization_msgs → visualization_msgs}/MarkerArray.rb +49 -55
  145. data/{lib/visualization_msgs → visualization_msgs}/MenuEntry.rb +41 -27
  146. metadata +149 -129
  147. data/lib/std_msgs/Empty.rb +0 -75
@@ -0,0 +1,228 @@
1
+ # autogenerated by genmsg_ruby from SingleJointPositionActionFeedback.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/SingleJointPositionFeedback"
8
+ require "ros/time"
9
+
10
+ module Pr2_controllers_msgs
11
+
12
+ class SingleJointPositionActionFeedback <::ROS::Message
13
+ def self.md5sum
14
+ "3503b7cf8972f90d245850a5d8796cfa"
15
+ end
16
+
17
+ def self.type
18
+ "pr2_controllers_msgs/SingleJointPositionActionFeedback"
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
+ SingleJointPositionFeedback feedback
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/SingleJointPositionFeedback
91
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
92
+ Header header
93
+ float64 position
94
+ float64 velocity
95
+ float64 error
96
+
97
+
98
+ "
99
+ end
100
+ attr_accessor :header, :status, :feedback
101
+
102
+ @@struct_L3 = ::ROS::Struct.new("L3")
103
+ @@struct_C = ::ROS::Struct.new("C")
104
+ @@struct_L2 = ::ROS::Struct.new("L2")
105
+ @@struct_d3 = ::ROS::Struct.new("d3")
106
+
107
+ @@struct_L = ::ROS::Struct.new("L")
108
+ @@slot_types = ['Header','actionlib_msgs/GoalStatus','pr2_controllers_msgs/SingleJointPositionFeedback']
109
+
110
+ # Constructor. You can set the default values using keyword operators.
111
+ #
112
+ # @param [Hash] args keyword for initializing values
113
+ # @option args [Header] :header initialize value
114
+ # @option args [actionlib_msgs/GoalStatus] :status initialize value
115
+ # @option args [pr2_controllers_msgs/SingleJointPositionFeedback] :feedback initialize value
116
+ def initialize(args={})
117
+ # message fields cannot be None, assign default values for those that are
118
+ if args[:header]
119
+ @header = args[:header]
120
+ else
121
+ @header = Std_msgs::Header.new
122
+ end
123
+ if args[:status]
124
+ @status = args[:status]
125
+ else
126
+ @status = Actionlib_msgs::GoalStatus.new
127
+ end
128
+ if args[:feedback]
129
+ @feedback = args[:feedback]
130
+ else
131
+ @feedback = Pr2_controllers_msgs::SingleJointPositionFeedback.new
132
+ end
133
+ end
134
+
135
+ # internal API method
136
+ # @return [String] Message type string.
137
+ def _get_types
138
+ @slot_types
139
+ end
140
+
141
+ # serialize message into buffer
142
+ # @param [IO] buff buffer
143
+ def serialize(buff)
144
+ begin
145
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
146
+ _x = @header.frame_id
147
+ length = _x.length
148
+ buff.write([length, _x].pack("La#{length}"))
149
+ buff.write(@@struct_L2.pack(@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs))
150
+ _x = @status.goal_id.id
151
+ length = _x.length
152
+ buff.write([length, _x].pack("La#{length}"))
153
+ buff.write(@@struct_C.pack(@status.status))
154
+ _x = @status.text
155
+ length = _x.length
156
+ buff.write([length, _x].pack("La#{length}"))
157
+ buff.write(@@struct_L3.pack(@feedback.header.seq, @feedback.header.stamp.secs, @feedback.header.stamp.nsecs))
158
+ _x = @feedback.header.frame_id
159
+ length = _x.length
160
+ buff.write([length, _x].pack("La#{length}"))
161
+ buff.write(@@struct_d3.pack(@feedback.position, @feedback.velocity, @feedback.error))
162
+ rescue => exception
163
+ raise "some erro in serialize: #{exception}"
164
+
165
+ end
166
+ end
167
+
168
+ # unpack serialized message in str into this message instance
169
+ # @param [String] str: byte array of serialized message
170
+ def deserialize(str)
171
+
172
+ begin
173
+ if @header == nil
174
+ @header = Std_msgs::Header.new
175
+ end
176
+ if @status == nil
177
+ @status = Actionlib_msgs::GoalStatus.new
178
+ end
179
+ if @feedback == nil
180
+ @feedback = Pr2_controllers_msgs::SingleJointPositionFeedback.new
181
+ end
182
+ end_point = 0
183
+ start = end_point
184
+ end_point += ROS::Struct::calc_size('L3')
185
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
186
+ start = end_point
187
+ end_point += 4
188
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
189
+ start = end_point
190
+ end_point += length
191
+ @header.frame_id = str[start..(end_point-1)]
192
+ start = end_point
193
+ end_point += ROS::Struct::calc_size('L2')
194
+ (@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
195
+ start = end_point
196
+ end_point += 4
197
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
198
+ start = end_point
199
+ end_point += length
200
+ @status.goal_id.id = str[start..(end_point-1)]
201
+ start = end_point
202
+ end_point += ROS::Struct::calc_size('C')
203
+ (@status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
204
+ start = end_point
205
+ end_point += 4
206
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
207
+ start = end_point
208
+ end_point += length
209
+ @status.text = str[start..(end_point-1)]
210
+ start = end_point
211
+ end_point += ROS::Struct::calc_size('L3')
212
+ (@feedback.header.seq, @feedback.header.stamp.secs, @feedback.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
213
+ start = end_point
214
+ end_point += 4
215
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
216
+ start = end_point
217
+ end_point += length
218
+ @feedback.header.frame_id = str[start..(end_point-1)]
219
+ start = end_point
220
+ end_point += ROS::Struct::calc_size('d3')
221
+ (@feedback.position, @feedback.velocity, @feedback.error,) = @@struct_d3.unpack(str[start..(end_point-1)])
222
+ return self
223
+ rescue => exception
224
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
225
+ end
226
+ end
227
+ end # end of class
228
+ end # end of module
@@ -0,0 +1,173 @@
1
+ # autogenerated by genmsg_ruby from SingleJointPositionActionGoal.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "std_msgs/Header"
5
+ require "actionlib_msgs/GoalID"
6
+ require "pr2_controllers_msgs/SingleJointPositionGoal"
7
+ require "ros/duration"
8
+ require "ros/time"
9
+
10
+ module Pr2_controllers_msgs
11
+
12
+ class SingleJointPositionActionGoal <::ROS::Message
13
+ def self.md5sum
14
+ "4b0d3d091471663e17749c1d0db90f61"
15
+ end
16
+
17
+ def self.type
18
+ "pr2_controllers_msgs/SingleJointPositionActionGoal"
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/GoalID goal_id
30
+ SingleJointPositionGoal goal
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/GoalID
52
+ # The stamp should store the time at which this goal was requested.
53
+ # It is used by an action server when it tries to preempt all
54
+ # goals that were requested before a certain time
55
+ time stamp
56
+
57
+ # The id provides a way to associate feedback and
58
+ # result message with specific goal requests. The id
59
+ # specified must be unique.
60
+ string id
61
+
62
+
63
+ ================================================================================
64
+ MSG: pr2_controllers_msgs/SingleJointPositionGoal
65
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
66
+ float64 position
67
+ duration min_duration
68
+ float64 max_velocity
69
+
70
+ "
71
+ end
72
+ attr_accessor :header, :goal_id, :goal
73
+
74
+ @@struct_dl2d = ::ROS::Struct.new("dl2d")
75
+ @@struct_L3 = ::ROS::Struct.new("L3")
76
+ @@struct_L2 = ::ROS::Struct.new("L2")
77
+
78
+ @@struct_L = ::ROS::Struct.new("L")
79
+ @@slot_types = ['Header','actionlib_msgs/GoalID','pr2_controllers_msgs/SingleJointPositionGoal']
80
+
81
+ # Constructor. You can set the default values using keyword operators.
82
+ #
83
+ # @param [Hash] args keyword for initializing values
84
+ # @option args [Header] :header initialize value
85
+ # @option args [actionlib_msgs/GoalID] :goal_id initialize value
86
+ # @option args [pr2_controllers_msgs/SingleJointPositionGoal] :goal initialize value
87
+ def initialize(args={})
88
+ # message fields cannot be None, assign default values for those that are
89
+ if args[:header]
90
+ @header = args[:header]
91
+ else
92
+ @header = Std_msgs::Header.new
93
+ end
94
+ if args[:goal_id]
95
+ @goal_id = args[:goal_id]
96
+ else
97
+ @goal_id = Actionlib_msgs::GoalID.new
98
+ end
99
+ if args[:goal]
100
+ @goal = args[:goal]
101
+ else
102
+ @goal = Pr2_controllers_msgs::SingleJointPositionGoal.new
103
+ end
104
+ end
105
+
106
+ # internal API method
107
+ # @return [String] Message type string.
108
+ def _get_types
109
+ @slot_types
110
+ end
111
+
112
+ # serialize message into buffer
113
+ # @param [IO] buff buffer
114
+ def serialize(buff)
115
+ begin
116
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
117
+ _x = @header.frame_id
118
+ length = _x.length
119
+ buff.write([length, _x].pack("La#{length}"))
120
+ buff.write(@@struct_L2.pack(@goal_id.stamp.secs, @goal_id.stamp.nsecs))
121
+ _x = @goal_id.id
122
+ length = _x.length
123
+ buff.write([length, _x].pack("La#{length}"))
124
+ buff.write(@@struct_dl2d.pack(@goal.position, @goal.min_duration.secs, @goal.min_duration.nsecs, @goal.max_velocity))
125
+ rescue => exception
126
+ raise "some erro in serialize: #{exception}"
127
+
128
+ end
129
+ end
130
+
131
+ # unpack serialized message in str into this message instance
132
+ # @param [String] str: byte array of serialized message
133
+ def deserialize(str)
134
+
135
+ begin
136
+ if @header == nil
137
+ @header = Std_msgs::Header.new
138
+ end
139
+ if @goal_id == nil
140
+ @goal_id = Actionlib_msgs::GoalID.new
141
+ end
142
+ if @goal == nil
143
+ @goal = Pr2_controllers_msgs::SingleJointPositionGoal.new
144
+ end
145
+ end_point = 0
146
+ start = end_point
147
+ end_point += ROS::Struct::calc_size('L3')
148
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
149
+ start = end_point
150
+ end_point += 4
151
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
152
+ start = end_point
153
+ end_point += length
154
+ @header.frame_id = str[start..(end_point-1)]
155
+ start = end_point
156
+ end_point += ROS::Struct::calc_size('L2')
157
+ (@goal_id.stamp.secs, @goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
158
+ start = end_point
159
+ end_point += 4
160
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
161
+ start = end_point
162
+ end_point += length
163
+ @goal_id.id = str[start..(end_point-1)]
164
+ start = end_point
165
+ end_point += ROS::Struct::calc_size('dl2d')
166
+ (@goal.position, @goal.min_duration.secs, @goal.min_duration.nsecs, @goal.max_velocity,) = @@struct_dl2d.unpack(str[start..(end_point-1)])
167
+ return self
168
+ rescue => exception
169
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
170
+ end
171
+ end
172
+ end # end of class
173
+ end # end of module
@@ -0,0 +1,205 @@
1
+ # autogenerated by genmsg_ruby from SingleJointPositionActionResult.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/SingleJointPositionResult"
8
+ require "ros/time"
9
+
10
+ module Pr2_controllers_msgs
11
+
12
+ class SingleJointPositionActionResult <::ROS::Message
13
+ def self.md5sum
14
+ "1eb06eeff08fa7ea874431638cb52332"
15
+ end
16
+
17
+ def self.type
18
+ "pr2_controllers_msgs/SingleJointPositionActionResult"
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
+ SingleJointPositionResult 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/SingleJointPositionResult
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/SingleJointPositionResult']
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/SingleJointPositionResult] :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::SingleJointPositionResult.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::SingleJointPositionResult.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