rosruby_msgs 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. data/{actionlib_msgs → lib/actionlib_msgs}/GoalID.rb +0 -0
  2. data/{actionlib_msgs → lib/actionlib_msgs}/GoalStatus.rb +0 -0
  3. data/{actionlib_msgs → lib/actionlib_msgs}/GoalStatusArray.rb +0 -0
  4. data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingAction.rb +0 -0
  5. data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingActionFeedback.rb +0 -0
  6. data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingActionGoal.rb +0 -0
  7. data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingActionResult.rb +0 -0
  8. data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingFeedback.rb +0 -0
  9. data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingGoal.rb +0 -0
  10. data/{actionlib_tutorials → lib/actionlib_tutorials}/AveragingResult.rb +0 -0
  11. data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciAction.rb +0 -0
  12. data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciActionFeedback.rb +0 -0
  13. data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciActionGoal.rb +0 -0
  14. data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciActionResult.rb +0 -0
  15. data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciFeedback.rb +0 -0
  16. data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciGoal.rb +0 -0
  17. data/{actionlib_tutorials → lib/actionlib_tutorials}/FibonacciResult.rb +0 -0
  18. data/{geometry_msgs → lib/geometry_msgs}/Point.rb +0 -0
  19. data/{geometry_msgs → lib/geometry_msgs}/Point32.rb +0 -0
  20. data/{geometry_msgs → lib/geometry_msgs}/PointStamped.rb +0 -0
  21. data/{geometry_msgs → lib/geometry_msgs}/Polygon.rb +0 -0
  22. data/{geometry_msgs → lib/geometry_msgs}/PolygonStamped.rb +0 -0
  23. data/{geometry_msgs → lib/geometry_msgs}/Pose.rb +0 -0
  24. data/{geometry_msgs → lib/geometry_msgs}/Pose2D.rb +0 -0
  25. data/{geometry_msgs → lib/geometry_msgs}/PoseArray.rb +8 -8
  26. data/{geometry_msgs → lib/geometry_msgs}/PoseStamped.rb +0 -0
  27. data/{geometry_msgs → lib/geometry_msgs}/PoseWithCovariance.rb +0 -0
  28. data/{geometry_msgs → lib/geometry_msgs}/PoseWithCovarianceStamped.rb +0 -0
  29. data/{geometry_msgs → lib/geometry_msgs}/Quaternion.rb +0 -0
  30. data/{geometry_msgs → lib/geometry_msgs}/QuaternionStamped.rb +0 -0
  31. data/{geometry_msgs → lib/geometry_msgs}/Transform.rb +0 -0
  32. data/{geometry_msgs → lib/geometry_msgs}/TransformStamped.rb +0 -0
  33. data/{geometry_msgs → lib/geometry_msgs}/Twist.rb +0 -0
  34. data/{geometry_msgs → lib/geometry_msgs}/TwistStamped.rb +0 -0
  35. data/{geometry_msgs → lib/geometry_msgs}/TwistWithCovariance.rb +0 -0
  36. data/{geometry_msgs → lib/geometry_msgs}/TwistWithCovarianceStamped.rb +0 -0
  37. data/{geometry_msgs → lib/geometry_msgs}/Vector3.rb +0 -0
  38. data/{geometry_msgs → lib/geometry_msgs}/Vector3Stamped.rb +0 -0
  39. data/{geometry_msgs → lib/geometry_msgs}/Wrench.rb +0 -0
  40. data/{geometry_msgs → lib/geometry_msgs}/WrenchStamped.rb +0 -0
  41. data/{nav_msgs → lib/nav_msgs}/GetMap.rb +0 -0
  42. data/{nav_msgs → lib/nav_msgs}/GetPlan.rb +0 -0
  43. data/{nav_msgs → lib/nav_msgs}/GridCells.rb +0 -0
  44. data/{nav_msgs → lib/nav_msgs}/MapMetaData.rb +0 -0
  45. data/{nav_msgs → lib/nav_msgs}/OccupancyGrid.rb +0 -0
  46. data/{nav_msgs → lib/nav_msgs}/Odometry.rb +0 -0
  47. data/{nav_msgs → lib/nav_msgs}/Path.rb +0 -0
  48. data/lib/pr2_controllers_msgs/JointControllerState.rb +184 -0
  49. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryAction.rb +0 -0
  50. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryActionFeedback.rb +0 -0
  51. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryActionGoal.rb +0 -0
  52. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryActionResult.rb +0 -0
  53. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryControllerState.rb +0 -0
  54. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryFeedback.rb +0 -0
  55. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryGoal.rb +0 -0
  56. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/JointTrajectoryResult.rb +0 -0
  57. data/lib/pr2_controllers_msgs/PointHeadAction.rb +370 -0
  58. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/PointHeadActionFeedback.rb +0 -0
  59. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/PointHeadActionGoal.rb +0 -0
  60. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/PointHeadActionResult.rb +0 -0
  61. data/lib/pr2_controllers_msgs/PointHeadFeedback.rb +78 -0
  62. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/PointHeadGoal.rb +0 -0
  63. data/lib/pr2_controllers_msgs/PointHeadResult.rb +66 -0
  64. data/lib/pr2_controllers_msgs/Pr2GripperCommand.rb +84 -0
  65. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/Pr2GripperCommandAction.rb +0 -0
  66. data/lib/pr2_controllers_msgs/Pr2GripperCommandActionFeedback.rb +217 -0
  67. data/lib/pr2_controllers_msgs/Pr2GripperCommandActionGoal.rb +176 -0
  68. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/Pr2GripperCommandActionResult.rb +0 -0
  69. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/Pr2GripperCommandFeedback.rb +0 -0
  70. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/Pr2GripperCommandGoal.rb +0 -0
  71. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/Pr2GripperCommandResult.rb +0 -0
  72. data/lib/pr2_controllers_msgs/QueryCalibrationState.rb +159 -0
  73. data/lib/pr2_controllers_msgs/QueryTrajectoryState.rb +243 -0
  74. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionAction.rb +0 -0
  75. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionActionFeedback.rb +0 -0
  76. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionActionGoal.rb +0 -0
  77. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionActionResult.rb +0 -0
  78. data/lib/pr2_controllers_msgs/SingleJointPositionFeedback.rb +136 -0
  79. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionGoal.rb +0 -0
  80. data/{pr2_controllers_msgs → lib/pr2_controllers_msgs}/SingleJointPositionResult.rb +0 -0
  81. data/{roscpp → lib/roscpp}/Empty.rb +0 -0
  82. data/{roscpp → lib/roscpp}/GetLoggers.rb +0 -0
  83. data/{roscpp → lib/roscpp}/Logger.rb +0 -0
  84. data/{roscpp → lib/roscpp}/SetLoggerLevel.rb +0 -0
  85. data/{roscpp_tutorials → lib/roscpp_tutorials}/TwoInts.rb +0 -0
  86. data/{rosgraph_msgs → lib/rosgraph_msgs}/Clock.rb +0 -0
  87. data/{rosgraph_msgs → lib/rosgraph_msgs}/Log.rb +0 -0
  88. data/{sensor_msgs → lib/sensor_msgs}/CameraInfo.rb +0 -0
  89. data/{sensor_msgs → lib/sensor_msgs}/ChannelFloat32.rb +0 -0
  90. data/{sensor_msgs → lib/sensor_msgs}/CompressedImage.rb +0 -0
  91. data/{sensor_msgs → lib/sensor_msgs}/Image.rb +0 -0
  92. data/{sensor_msgs → lib/sensor_msgs}/Imu.rb +0 -0
  93. data/{sensor_msgs → lib/sensor_msgs}/JointState.rb +0 -0
  94. data/{sensor_msgs → lib/sensor_msgs}/Joy.rb +0 -0
  95. data/{sensor_msgs → lib/sensor_msgs}/JoyFeedback.rb +0 -0
  96. data/{sensor_msgs → lib/sensor_msgs}/JoyFeedbackArray.rb +0 -0
  97. data/{sensor_msgs → lib/sensor_msgs}/LaserScan.rb +0 -0
  98. data/{sensor_msgs → lib/sensor_msgs}/NavSatFix.rb +0 -0
  99. data/{sensor_msgs → lib/sensor_msgs}/NavSatStatus.rb +0 -0
  100. data/{sensor_msgs → lib/sensor_msgs}/PointCloud.rb +0 -0
  101. data/{sensor_msgs → lib/sensor_msgs}/PointCloud2.rb +0 -0
  102. data/{sensor_msgs → lib/sensor_msgs}/PointField.rb +0 -0
  103. data/{sensor_msgs → lib/sensor_msgs}/Range.rb +0 -0
  104. data/{sensor_msgs → lib/sensor_msgs}/RegionOfInterest.rb +0 -0
  105. data/{sensor_msgs → lib/sensor_msgs}/SetCameraInfo.rb +0 -0
  106. data/{sensor_msgs → lib/sensor_msgs}/TimeReference.rb +0 -0
  107. data/{std_msgs → lib/std_msgs}/Bool.rb +0 -0
  108. data/{std_msgs → lib/std_msgs}/Byte.rb +0 -0
  109. data/{std_msgs → lib/std_msgs}/ByteMultiArray.rb +0 -0
  110. data/{std_msgs → lib/std_msgs}/Char.rb +0 -0
  111. data/{std_msgs → lib/std_msgs}/ColorRGBA.rb +0 -0
  112. data/{std_msgs → lib/std_msgs}/Duration.rb +0 -0
  113. data/{std_msgs → lib/std_msgs}/Empty.rb +0 -0
  114. data/{std_msgs → lib/std_msgs}/Float32.rb +0 -0
  115. data/{std_msgs → lib/std_msgs}/Float32MultiArray.rb +0 -0
  116. data/{std_msgs → lib/std_msgs}/Float64.rb +0 -0
  117. data/{std_msgs → lib/std_msgs}/Float64MultiArray.rb +0 -0
  118. data/{std_msgs → lib/std_msgs}/Header.rb +0 -0
  119. data/{std_msgs → lib/std_msgs}/Int16.rb +0 -0
  120. data/{std_msgs → lib/std_msgs}/Int16MultiArray.rb +0 -0
  121. data/{std_msgs → lib/std_msgs}/Int32.rb +0 -0
  122. data/{std_msgs → lib/std_msgs}/Int32MultiArray.rb +0 -0
  123. data/{std_msgs → lib/std_msgs}/Int64.rb +0 -0
  124. data/{std_msgs → lib/std_msgs}/Int64MultiArray.rb +0 -0
  125. data/{std_msgs → lib/std_msgs}/Int8.rb +0 -0
  126. data/{std_msgs → lib/std_msgs}/Int8MultiArray.rb +0 -0
  127. data/{std_msgs → lib/std_msgs}/MultiArrayDimension.rb +0 -0
  128. data/{std_msgs → lib/std_msgs}/MultiArrayLayout.rb +0 -0
  129. data/{std_msgs → lib/std_msgs}/String.rb +0 -0
  130. data/{std_msgs → lib/std_msgs}/Time.rb +0 -0
  131. data/{std_msgs → lib/std_msgs}/UInt16.rb +0 -0
  132. data/{std_msgs → lib/std_msgs}/UInt16MultiArray.rb +0 -0
  133. data/{std_msgs → lib/std_msgs}/UInt32.rb +0 -0
  134. data/{std_msgs → lib/std_msgs}/UInt32MultiArray.rb +0 -0
  135. data/{std_msgs → lib/std_msgs}/UInt64.rb +0 -0
  136. data/{std_msgs → lib/std_msgs}/UInt64MultiArray.rb +0 -0
  137. data/{std_msgs → lib/std_msgs}/UInt8.rb +0 -0
  138. data/{std_msgs → lib/std_msgs}/UInt8MultiArray.rb +0 -0
  139. data/{std_srvs → lib/std_srvs}/Empty.rb +0 -0
  140. data/{stereo_msgs → lib/stereo_msgs}/DisparityImage.rb +0 -0
  141. data/{tf → lib/tf}/FrameGraph.rb +0 -0
  142. data/{tf → lib/tf}/tfMessage.rb +0 -0
  143. data/{trajectory_msgs → lib/trajectory_msgs}/JointTrajectory.rb +0 -0
  144. data/{trajectory_msgs → lib/trajectory_msgs}/JointTrajectoryPoint.rb +0 -0
  145. data/{visualization_msgs → lib/visualization_msgs}/ImageMarker.rb +0 -0
  146. data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarker.rb +0 -0
  147. data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarkerControl.rb +0 -0
  148. data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarkerFeedback.rb +0 -0
  149. data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarkerInit.rb +0 -0
  150. data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarkerPose.rb +0 -0
  151. data/{visualization_msgs → lib/visualization_msgs}/InteractiveMarkerUpdate.rb +0 -0
  152. data/{visualization_msgs → lib/visualization_msgs}/Marker.rb +0 -0
  153. data/{visualization_msgs → lib/visualization_msgs}/MarkerArray.rb +0 -0
  154. data/{visualization_msgs → lib/visualization_msgs}/MenuEntry.rb +0 -0
  155. metadata +155 -146
  156. data/pr2_controllers_msgs/Pr2GripperCommandActionGoal.rb +0 -0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -115,11 +115,11 @@ float64 w
115
115
  length = @poses.length
116
116
  buff.write(@@struct_L.pack(length))
117
117
  for val1 in @poses
118
- _v35 = val1.position
119
- _x = _v35
118
+ _v159 = val1.position
119
+ _x = _v159
120
120
  buff.write(@@struct_d3.pack(_x.x, _x.y, _x.z))
121
- _v36 = val1.orientation
122
- _x = _v36
121
+ _v160 = val1.orientation
122
+ _x = _v160
123
123
  buff.write(@@struct_d4.pack(_x.x, _x.y, _x.z, _x.w))
124
124
  end
125
125
  rescue => exception
@@ -152,13 +152,13 @@ float64 w
152
152
  @poses = []
153
153
  length.times do
154
154
  val1 = Geometry_msgs::Pose.new
155
- _v37 = val1.position
156
- _x = _v37
155
+ _v161 = val1.position
156
+ _x = _v161
157
157
  start = end_point
158
158
  end_point += ROS::Struct::calc_size('d3')
159
159
  (_x.x, _x.y, _x.z,) = @@struct_d3.unpack(str[start..(end_point-1)])
160
- _v38 = val1.orientation
161
- _x = _v38
160
+ _v162 = val1.orientation
161
+ _x = _v162
162
162
  start = end_point
163
163
  end_point += ROS::Struct::calc_size('d4')
164
164
  (_x.x, _x.y, _x.z, _x.w,) = @@struct_d4.unpack(str[start..(end_point-1)])
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,184 @@
1
+ # autogenerated by genmsg_ruby from JointControllerState.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "std_msgs/Header"
5
+
6
+ module Pr2_controllers_msgs
7
+
8
+ class JointControllerState <::ROS::Message
9
+ def self.md5sum
10
+ "c0d034a7bf20aeb1c37f3eccb7992b69"
11
+ end
12
+
13
+ def self.type
14
+ "pr2_controllers_msgs/JointControllerState"
15
+ end
16
+
17
+ def has_header?
18
+ true
19
+ end
20
+
21
+ def message_definition
22
+ "Header header
23
+ float64 set_point
24
+ float64 process_value
25
+ float64 process_value_dot
26
+ float64 error
27
+ float64 time_step
28
+ float64 command
29
+ float64 p
30
+ float64 i
31
+ float64 d
32
+ float64 i_clamp
33
+
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
+ end
55
+ attr_accessor :header, :set_point, :process_value, :process_value_dot, :error, :time_step, :command, :p, :i, :d, :i_clamp
56
+
57
+ @@struct_L3 = ::ROS::Struct.new("L3")
58
+ @@struct_d10 = ::ROS::Struct.new("d10")
59
+
60
+ @@struct_L = ::ROS::Struct.new("L")
61
+ @@slot_types = ['Header','float64','float64','float64','float64','float64','float64','float64','float64','float64','float64']
62
+
63
+ # Constructor. You can set the default values using keyword operators.
64
+ #
65
+ # @param [Hash] args keyword for initializing values
66
+ # @option args [Header] :header initialize value
67
+ # @option args [float64] :set_point initialize value
68
+ # @option args [float64] :process_value initialize value
69
+ # @option args [float64] :process_value_dot initialize value
70
+ # @option args [float64] :error initialize value
71
+ # @option args [float64] :time_step initialize value
72
+ # @option args [float64] :command initialize value
73
+ # @option args [float64] :p initialize value
74
+ # @option args [float64] :i initialize value
75
+ # @option args [float64] :d initialize value
76
+ # @option args [float64] :i_clamp initialize value
77
+ def initialize(args={})
78
+ # message fields cannot be None, assign default values for those that are
79
+ if args[:header]
80
+ @header = args[:header]
81
+ else
82
+ @header = Std_msgs::Header.new
83
+ end
84
+ if args[:set_point]
85
+ @set_point = args[:set_point]
86
+ else
87
+ @set_point = 0.0
88
+ end
89
+ if args[:process_value]
90
+ @process_value = args[:process_value]
91
+ else
92
+ @process_value = 0.0
93
+ end
94
+ if args[:process_value_dot]
95
+ @process_value_dot = args[:process_value_dot]
96
+ else
97
+ @process_value_dot = 0.0
98
+ end
99
+ if args[:error]
100
+ @error = args[:error]
101
+ else
102
+ @error = 0.0
103
+ end
104
+ if args[:time_step]
105
+ @time_step = args[:time_step]
106
+ else
107
+ @time_step = 0.0
108
+ end
109
+ if args[:command]
110
+ @command = args[:command]
111
+ else
112
+ @command = 0.0
113
+ end
114
+ if args[:p]
115
+ @p = args[:p]
116
+ else
117
+ @p = 0.0
118
+ end
119
+ if args[:i]
120
+ @i = args[:i]
121
+ else
122
+ @i = 0.0
123
+ end
124
+ if args[:d]
125
+ @d = args[:d]
126
+ else
127
+ @d = 0.0
128
+ end
129
+ if args[:i_clamp]
130
+ @i_clamp = args[:i_clamp]
131
+ else
132
+ @i_clamp = 0.0
133
+ end
134
+ end
135
+
136
+ # internal API method
137
+ # @return [String] Message type string.
138
+ def _get_types
139
+ @slot_types
140
+ end
141
+
142
+ # serialize message into buffer
143
+ # @param [IO] buff buffer
144
+ def serialize(buff)
145
+ begin
146
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
147
+ _x = @header.frame_id
148
+ length = _x.length
149
+ buff.write([length, _x].pack("La#{length}"))
150
+ buff.write(@@struct_d10.pack(@set_point, @process_value, @process_value_dot, @error, @time_step, @command, @p, @i, @d, @i_clamp))
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
+ end_point = 0
166
+ start = end_point
167
+ end_point += ROS::Struct::calc_size('L3')
168
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
169
+ start = end_point
170
+ end_point += 4
171
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
172
+ start = end_point
173
+ end_point += length
174
+ @header.frame_id = str[start..(end_point-1)]
175
+ start = end_point
176
+ end_point += ROS::Struct::calc_size('d10')
177
+ (@set_point, @process_value, @process_value_dot, @error, @time_step, @command, @p, @i, @d, @i_clamp,) = @@struct_d10.unpack(str[start..(end_point-1)])
178
+ return self
179
+ rescue => exception
180
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
181
+ end
182
+ end
183
+ end # end of class
184
+ end # end of module
@@ -0,0 +1,370 @@
1
+ # autogenerated by genmsg_ruby from PointHeadAction.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "ros/time"
5
+ require "geometry_msgs/PointStamped"
6
+ require "ros/duration"
7
+ require "geometry_msgs/Point"
8
+ require "pr2_controllers_msgs/PointHeadActionResult"
9
+ require "std_msgs/Header"
10
+ require "actionlib_msgs/GoalID"
11
+ require "pr2_controllers_msgs/PointHeadActionGoal"
12
+ require "pr2_controllers_msgs/PointHeadActionFeedback"
13
+ require "pr2_controllers_msgs/PointHeadGoal"
14
+ require "pr2_controllers_msgs/PointHeadFeedback"
15
+ require "geometry_msgs/Vector3"
16
+ require "pr2_controllers_msgs/PointHeadResult"
17
+ require "actionlib_msgs/GoalStatus"
18
+
19
+ module Pr2_controllers_msgs
20
+
21
+ class PointHeadAction <::ROS::Message
22
+ def self.md5sum
23
+ "7252920f1243de1b741f14f214125371"
24
+ end
25
+
26
+ def self.type
27
+ "pr2_controllers_msgs/PointHeadAction"
28
+ end
29
+
30
+ def has_header?
31
+ false
32
+ end
33
+
34
+ def message_definition
35
+ "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
36
+
37
+ PointHeadActionGoal action_goal
38
+ PointHeadActionResult action_result
39
+ PointHeadActionFeedback action_feedback
40
+
41
+ ================================================================================
42
+ MSG: pr2_controllers_msgs/PointHeadActionGoal
43
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
44
+
45
+ Header header
46
+ actionlib_msgs/GoalID goal_id
47
+ PointHeadGoal goal
48
+
49
+ ================================================================================
50
+ MSG: std_msgs/Header
51
+ # Standard metadata for higher-level stamped data types.
52
+ # This is generally used to communicate timestamped data
53
+ # in a particular coordinate frame.
54
+ #
55
+ # sequence ID: consecutively increasing ID
56
+ uint32 seq
57
+ #Two-integer timestamp that is expressed as:
58
+ # * stamp.secs: seconds (stamp_secs) since epoch
59
+ # * stamp.nsecs: nanoseconds since stamp_secs
60
+ # time-handling sugar is provided by the client library
61
+ time stamp
62
+ #Frame this data is associated with
63
+ # 0: no frame
64
+ # 1: global frame
65
+ string frame_id
66
+
67
+ ================================================================================
68
+ MSG: actionlib_msgs/GoalID
69
+ # The stamp should store the time at which this goal was requested.
70
+ # It is used by an action server when it tries to preempt all
71
+ # goals that were requested before a certain time
72
+ time stamp
73
+
74
+ # The id provides a way to associate feedback and
75
+ # result message with specific goal requests. The id
76
+ # specified must be unique.
77
+ string id
78
+
79
+
80
+ ================================================================================
81
+ MSG: pr2_controllers_msgs/PointHeadGoal
82
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
83
+ geometry_msgs/PointStamped target
84
+ geometry_msgs/Vector3 pointing_axis
85
+ string pointing_frame
86
+ duration min_duration
87
+ float64 max_velocity
88
+
89
+ ================================================================================
90
+ MSG: geometry_msgs/PointStamped
91
+ # This represents a Point with reference coordinate frame and timestamp
92
+ Header header
93
+ Point point
94
+
95
+ ================================================================================
96
+ MSG: geometry_msgs/Point
97
+ # This contains the position of a point in free space
98
+ float64 x
99
+ float64 y
100
+ float64 z
101
+
102
+ ================================================================================
103
+ MSG: geometry_msgs/Vector3
104
+ # This represents a vector in free space.
105
+
106
+ float64 x
107
+ float64 y
108
+ float64 z
109
+ ================================================================================
110
+ MSG: pr2_controllers_msgs/PointHeadActionResult
111
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
112
+
113
+ Header header
114
+ actionlib_msgs/GoalStatus status
115
+ PointHeadResult result
116
+
117
+ ================================================================================
118
+ MSG: actionlib_msgs/GoalStatus
119
+ GoalID goal_id
120
+ uint8 status
121
+ uint8 PENDING = 0 # The goal has yet to be processed by the action server
122
+ uint8 ACTIVE = 1 # The goal is currently being processed by the action server
123
+ uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
124
+ # and has since completed its execution (Terminal State)
125
+ uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
126
+ uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
127
+ # to some failure (Terminal State)
128
+ uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
129
+ # because the goal was unattainable or invalid (Terminal State)
130
+ uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
131
+ # and has not yet completed execution
132
+ uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
133
+ # but the action server has not yet confirmed that the goal is canceled
134
+ uint8 RECALLED = 8 # The goal received a cancel request before it started executing
135
+ # and was successfully cancelled (Terminal State)
136
+ uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
137
+ # sent over the wire by an action server
138
+
139
+ #Allow for the user to associate a string with GoalStatus for debugging
140
+ string text
141
+
142
+
143
+ ================================================================================
144
+ MSG: pr2_controllers_msgs/PointHeadResult
145
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
146
+
147
+ ================================================================================
148
+ MSG: pr2_controllers_msgs/PointHeadActionFeedback
149
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
150
+
151
+ Header header
152
+ actionlib_msgs/GoalStatus status
153
+ PointHeadFeedback feedback
154
+
155
+ ================================================================================
156
+ MSG: pr2_controllers_msgs/PointHeadFeedback
157
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
158
+ float64 pointing_angle_error
159
+
160
+ "
161
+ end
162
+ attr_accessor :action_goal, :action_result, :action_feedback
163
+
164
+ @@struct_C = ::ROS::Struct.new("C")
165
+ @@struct_l2dL3 = ::ROS::Struct.new("l2dL3")
166
+ @@struct_d = ::ROS::Struct.new("d")
167
+ @@struct_L3 = ::ROS::Struct.new("L3")
168
+ @@struct_d6 = ::ROS::Struct.new("d6")
169
+ @@struct_L2 = ::ROS::Struct.new("L2")
170
+
171
+ @@struct_L = ::ROS::Struct.new("L")
172
+ @@slot_types = ['pr2_controllers_msgs/PointHeadActionGoal','pr2_controllers_msgs/PointHeadActionResult','pr2_controllers_msgs/PointHeadActionFeedback']
173
+
174
+ # Constructor. You can set the default values using keyword operators.
175
+ #
176
+ # @param [Hash] args keyword for initializing values
177
+ # @option args [pr2_controllers_msgs/PointHeadActionGoal] :action_goal initialize value
178
+ # @option args [pr2_controllers_msgs/PointHeadActionResult] :action_result initialize value
179
+ # @option args [pr2_controllers_msgs/PointHeadActionFeedback] :action_feedback initialize value
180
+ def initialize(args={})
181
+ # message fields cannot be None, assign default values for those that are
182
+ if args[:action_goal]
183
+ @action_goal = args[:action_goal]
184
+ else
185
+ @action_goal = Pr2_controllers_msgs::PointHeadActionGoal.new
186
+ end
187
+ if args[:action_result]
188
+ @action_result = args[:action_result]
189
+ else
190
+ @action_result = Pr2_controllers_msgs::PointHeadActionResult.new
191
+ end
192
+ if args[:action_feedback]
193
+ @action_feedback = args[:action_feedback]
194
+ else
195
+ @action_feedback = Pr2_controllers_msgs::PointHeadActionFeedback.new
196
+ end
197
+ end
198
+
199
+ # internal API method
200
+ # @return [String] Message type string.
201
+ def _get_types
202
+ @slot_types
203
+ end
204
+
205
+ # serialize message into buffer
206
+ # @param [IO] buff buffer
207
+ def serialize(buff)
208
+ begin
209
+ buff.write(@@struct_L3.pack(@action_goal.header.seq, @action_goal.header.stamp.secs, @action_goal.header.stamp.nsecs))
210
+ _x = @action_goal.header.frame_id
211
+ length = _x.length
212
+ buff.write([length, _x].pack("La#{length}"))
213
+ buff.write(@@struct_L2.pack(@action_goal.goal_id.stamp.secs, @action_goal.goal_id.stamp.nsecs))
214
+ _x = @action_goal.goal_id.id
215
+ length = _x.length
216
+ buff.write([length, _x].pack("La#{length}"))
217
+ buff.write(@@struct_L3.pack(@action_goal.goal.target.header.seq, @action_goal.goal.target.header.stamp.secs, @action_goal.goal.target.header.stamp.nsecs))
218
+ _x = @action_goal.goal.target.header.frame_id
219
+ length = _x.length
220
+ buff.write([length, _x].pack("La#{length}"))
221
+ buff.write(@@struct_d6.pack(@action_goal.goal.target.point.x, @action_goal.goal.target.point.y, @action_goal.goal.target.point.z, @action_goal.goal.pointing_axis.x, @action_goal.goal.pointing_axis.y, @action_goal.goal.pointing_axis.z))
222
+ _x = @action_goal.goal.pointing_frame
223
+ length = _x.length
224
+ buff.write([length, _x].pack("La#{length}"))
225
+ buff.write(@@struct_l2dL3.pack(@action_goal.goal.min_duration.secs, @action_goal.goal.min_duration.nsecs, @action_goal.goal.max_velocity, @action_result.header.seq, @action_result.header.stamp.secs, @action_result.header.stamp.nsecs))
226
+ _x = @action_result.header.frame_id
227
+ length = _x.length
228
+ buff.write([length, _x].pack("La#{length}"))
229
+ buff.write(@@struct_L2.pack(@action_result.status.goal_id.stamp.secs, @action_result.status.goal_id.stamp.nsecs))
230
+ _x = @action_result.status.goal_id.id
231
+ length = _x.length
232
+ buff.write([length, _x].pack("La#{length}"))
233
+ buff.write(@@struct_C.pack(@action_result.status.status))
234
+ _x = @action_result.status.text
235
+ length = _x.length
236
+ buff.write([length, _x].pack("La#{length}"))
237
+ buff.write(@@struct_L3.pack(@action_feedback.header.seq, @action_feedback.header.stamp.secs, @action_feedback.header.stamp.nsecs))
238
+ _x = @action_feedback.header.frame_id
239
+ length = _x.length
240
+ buff.write([length, _x].pack("La#{length}"))
241
+ buff.write(@@struct_L2.pack(@action_feedback.status.goal_id.stamp.secs, @action_feedback.status.goal_id.stamp.nsecs))
242
+ _x = @action_feedback.status.goal_id.id
243
+ length = _x.length
244
+ buff.write([length, _x].pack("La#{length}"))
245
+ buff.write(@@struct_C.pack(@action_feedback.status.status))
246
+ _x = @action_feedback.status.text
247
+ length = _x.length
248
+ buff.write([length, _x].pack("La#{length}"))
249
+ buff.write(@@struct_d.pack(@action_feedback.feedback.pointing_angle_error))
250
+ rescue => exception
251
+ raise "some erro in serialize: #{exception}"
252
+
253
+ end
254
+ end
255
+
256
+ # unpack serialized message in str into this message instance
257
+ # @param [String] str: byte array of serialized message
258
+ def deserialize(str)
259
+
260
+ begin
261
+ if @action_goal == nil
262
+ @action_goal = Pr2_controllers_msgs::PointHeadActionGoal.new
263
+ end
264
+ if @action_result == nil
265
+ @action_result = Pr2_controllers_msgs::PointHeadActionResult.new
266
+ end
267
+ if @action_feedback == nil
268
+ @action_feedback = Pr2_controllers_msgs::PointHeadActionFeedback.new
269
+ end
270
+ end_point = 0
271
+ start = end_point
272
+ end_point += ROS::Struct::calc_size('L3')
273
+ (@action_goal.header.seq, @action_goal.header.stamp.secs, @action_goal.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
274
+ start = end_point
275
+ end_point += 4
276
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
277
+ start = end_point
278
+ end_point += length
279
+ @action_goal.header.frame_id = str[start..(end_point-1)]
280
+ start = end_point
281
+ end_point += ROS::Struct::calc_size('L2')
282
+ (@action_goal.goal_id.stamp.secs, @action_goal.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
283
+ start = end_point
284
+ end_point += 4
285
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
286
+ start = end_point
287
+ end_point += length
288
+ @action_goal.goal_id.id = str[start..(end_point-1)]
289
+ start = end_point
290
+ end_point += ROS::Struct::calc_size('L3')
291
+ (@action_goal.goal.target.header.seq, @action_goal.goal.target.header.stamp.secs, @action_goal.goal.target.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
292
+ start = end_point
293
+ end_point += 4
294
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
295
+ start = end_point
296
+ end_point += length
297
+ @action_goal.goal.target.header.frame_id = str[start..(end_point-1)]
298
+ start = end_point
299
+ end_point += ROS::Struct::calc_size('d6')
300
+ (@action_goal.goal.target.point.x, @action_goal.goal.target.point.y, @action_goal.goal.target.point.z, @action_goal.goal.pointing_axis.x, @action_goal.goal.pointing_axis.y, @action_goal.goal.pointing_axis.z,) = @@struct_d6.unpack(str[start..(end_point-1)])
301
+ start = end_point
302
+ end_point += 4
303
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
304
+ start = end_point
305
+ end_point += length
306
+ @action_goal.goal.pointing_frame = str[start..(end_point-1)]
307
+ start = end_point
308
+ end_point += ROS::Struct::calc_size('l2dL3')
309
+ (@action_goal.goal.min_duration.secs, @action_goal.goal.min_duration.nsecs, @action_goal.goal.max_velocity, @action_result.header.seq, @action_result.header.stamp.secs, @action_result.header.stamp.nsecs,) = @@struct_l2dL3.unpack(str[start..(end_point-1)])
310
+ start = end_point
311
+ end_point += 4
312
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
313
+ start = end_point
314
+ end_point += length
315
+ @action_result.header.frame_id = str[start..(end_point-1)]
316
+ start = end_point
317
+ end_point += ROS::Struct::calc_size('L2')
318
+ (@action_result.status.goal_id.stamp.secs, @action_result.status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
319
+ start = end_point
320
+ end_point += 4
321
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
322
+ start = end_point
323
+ end_point += length
324
+ @action_result.status.goal_id.id = str[start..(end_point-1)]
325
+ start = end_point
326
+ end_point += ROS::Struct::calc_size('C')
327
+ (@action_result.status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
328
+ start = end_point
329
+ end_point += 4
330
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
331
+ start = end_point
332
+ end_point += length
333
+ @action_result.status.text = str[start..(end_point-1)]
334
+ start = end_point
335
+ end_point += ROS::Struct::calc_size('L3')
336
+ (@action_feedback.header.seq, @action_feedback.header.stamp.secs, @action_feedback.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
337
+ start = end_point
338
+ end_point += 4
339
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
340
+ start = end_point
341
+ end_point += length
342
+ @action_feedback.header.frame_id = str[start..(end_point-1)]
343
+ start = end_point
344
+ end_point += ROS::Struct::calc_size('L2')
345
+ (@action_feedback.status.goal_id.stamp.secs, @action_feedback.status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
346
+ start = end_point
347
+ end_point += 4
348
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
349
+ start = end_point
350
+ end_point += length
351
+ @action_feedback.status.goal_id.id = str[start..(end_point-1)]
352
+ start = end_point
353
+ end_point += ROS::Struct::calc_size('C')
354
+ (@action_feedback.status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
355
+ start = end_point
356
+ end_point += 4
357
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
358
+ start = end_point
359
+ end_point += length
360
+ @action_feedback.status.text = str[start..(end_point-1)]
361
+ start = end_point
362
+ end_point += ROS::Struct::calc_size('d')
363
+ (@action_feedback.feedback.pointing_angle_error,) = @@struct_d.unpack(str[start..(end_point-1)])
364
+ return self
365
+ rescue => exception
366
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
367
+ end
368
+ end
369
+ end # end of class
370
+ end # end of module