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,206 @@
1
+ # autogenerated by genmsg_ruby from JointTrajectoryActionFeedback.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/JointTrajectoryFeedback"
8
+ require "ros/time"
9
+
10
+ module Pr2_controllers_msgs
11
+
12
+ class JointTrajectoryActionFeedback <::ROS::Message
13
+ def self.md5sum
14
+ "aae20e09065c3809e8a8e87c4c8953fd"
15
+ end
16
+
17
+ def self.type
18
+ "pr2_controllers_msgs/JointTrajectoryActionFeedback"
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
+ JointTrajectoryFeedback 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/JointTrajectoryFeedback
91
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
92
+
93
+
94
+ "
95
+ end
96
+ attr_accessor :header, :status, :feedback
97
+
98
+ @@struct_L3 = ::ROS::Struct.new("L3")
99
+ @@struct_C = ::ROS::Struct.new("C")
100
+ @@struct_L2 = ::ROS::Struct.new("L2")
101
+
102
+ @@struct_L = ::ROS::Struct.new("L")
103
+ @@slot_types = ['Header','actionlib_msgs/GoalStatus','pr2_controllers_msgs/JointTrajectoryFeedback']
104
+
105
+ # Constructor. You can set the default values using keyword operators.
106
+ #
107
+ # @param [Hash] args keyword for initializing values
108
+ # @option args [Header] :header initialize value
109
+ # @option args [actionlib_msgs/GoalStatus] :status initialize value
110
+ # @option args [pr2_controllers_msgs/JointTrajectoryFeedback] :feedback initialize value
111
+ def initialize(args={})
112
+ # message fields cannot be None, assign default values for those that are
113
+ if args[:header]
114
+ @header = args[:header]
115
+ else
116
+ @header = Std_msgs::Header.new
117
+ end
118
+ if args[:status]
119
+ @status = args[:status]
120
+ else
121
+ @status = Actionlib_msgs::GoalStatus.new
122
+ end
123
+ if args[:feedback]
124
+ @feedback = args[:feedback]
125
+ else
126
+ @feedback = Pr2_controllers_msgs::JointTrajectoryFeedback.new
127
+ end
128
+ end
129
+
130
+ # internal API method
131
+ # @return [String] Message type string.
132
+ def _get_types
133
+ @slot_types
134
+ end
135
+
136
+ # serialize message into buffer
137
+ # @param [IO] buff buffer
138
+ def serialize(buff)
139
+ begin
140
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
141
+ _x = @header.frame_id
142
+ length = _x.length
143
+ buff.write([length, _x].pack("La#{length}"))
144
+ buff.write(@@struct_L2.pack(@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs))
145
+ _x = @status.goal_id.id
146
+ length = _x.length
147
+ buff.write([length, _x].pack("La#{length}"))
148
+ buff.write(@@struct_C.pack(@status.status))
149
+ _x = @status.text
150
+ length = _x.length
151
+ buff.write([length, _x].pack("La#{length}"))
152
+ rescue => exception
153
+ raise "some erro in serialize: #{exception}"
154
+
155
+ end
156
+ end
157
+
158
+ # unpack serialized message in str into this message instance
159
+ # @param [String] str: byte array of serialized message
160
+ def deserialize(str)
161
+
162
+ begin
163
+ if @header == nil
164
+ @header = Std_msgs::Header.new
165
+ end
166
+ if @status == nil
167
+ @status = Actionlib_msgs::GoalStatus.new
168
+ end
169
+ if @feedback == nil
170
+ @feedback = Pr2_controllers_msgs::JointTrajectoryFeedback.new
171
+ end
172
+ end_point = 0
173
+ start = end_point
174
+ end_point += ROS::Struct::calc_size('L3')
175
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
176
+ start = end_point
177
+ end_point += 4
178
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
179
+ start = end_point
180
+ end_point += length
181
+ @header.frame_id = str[start..(end_point-1)]
182
+ start = end_point
183
+ end_point += ROS::Struct::calc_size('L2')
184
+ (@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
185
+ start = end_point
186
+ end_point += 4
187
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
188
+ start = end_point
189
+ end_point += length
190
+ @status.goal_id.id = str[start..(end_point-1)]
191
+ start = end_point
192
+ end_point += ROS::Struct::calc_size('C')
193
+ (@status.status,) = @@struct_C.unpack(str[start..(end_point-1)])
194
+ start = end_point
195
+ end_point += 4
196
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
197
+ start = end_point
198
+ end_point += length
199
+ @status.text = str[start..(end_point-1)]
200
+ return self
201
+ rescue => exception
202
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
203
+ end
204
+ end
205
+ end # end of class
206
+ end # end of module
@@ -0,0 +1,265 @@
1
+ # autogenerated by genmsg_ruby from JointTrajectoryActionGoal.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "ros/time"
5
+ require "trajectory_msgs/JointTrajectory"
6
+ require "trajectory_msgs/JointTrajectoryPoint"
7
+ require "ros/duration"
8
+ require "std_msgs/Header"
9
+ require "actionlib_msgs/GoalID"
10
+ require "pr2_controllers_msgs/JointTrajectoryGoal"
11
+
12
+ module Pr2_controllers_msgs
13
+
14
+ class JointTrajectoryActionGoal <::ROS::Message
15
+ def self.md5sum
16
+ "aee77e81e3afb8d91af4939d603609d8"
17
+ end
18
+
19
+ def self.type
20
+ "pr2_controllers_msgs/JointTrajectoryActionGoal"
21
+ end
22
+
23
+ def has_header?
24
+ true
25
+ end
26
+
27
+ def message_definition
28
+ "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
29
+
30
+ Header header
31
+ actionlib_msgs/GoalID goal_id
32
+ JointTrajectoryGoal goal
33
+
34
+ ================================================================================
35
+ MSG: std_msgs/Header
36
+ # Standard metadata for higher-level stamped data types.
37
+ # This is generally used to communicate timestamped data
38
+ # in a particular coordinate frame.
39
+ #
40
+ # sequence ID: consecutively increasing ID
41
+ uint32 seq
42
+ #Two-integer timestamp that is expressed as:
43
+ # * stamp.secs: seconds (stamp_secs) since epoch
44
+ # * stamp.nsecs: nanoseconds since stamp_secs
45
+ # time-handling sugar is provided by the client library
46
+ time stamp
47
+ #Frame this data is associated with
48
+ # 0: no frame
49
+ # 1: global frame
50
+ string frame_id
51
+
52
+ ================================================================================
53
+ MSG: actionlib_msgs/GoalID
54
+ # The stamp should store the time at which this goal was requested.
55
+ # It is used by an action server when it tries to preempt all
56
+ # goals that were requested before a certain time
57
+ time stamp
58
+
59
+ # The id provides a way to associate feedback and
60
+ # result message with specific goal requests. The id
61
+ # specified must be unique.
62
+ string id
63
+
64
+
65
+ ================================================================================
66
+ MSG: pr2_controllers_msgs/JointTrajectoryGoal
67
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
68
+ trajectory_msgs/JointTrajectory trajectory
69
+
70
+ ================================================================================
71
+ MSG: trajectory_msgs/JointTrajectory
72
+ Header header
73
+ string[] joint_names
74
+ JointTrajectoryPoint[] points
75
+ ================================================================================
76
+ MSG: trajectory_msgs/JointTrajectoryPoint
77
+ float64[] positions
78
+ float64[] velocities
79
+ float64[] accelerations
80
+ duration time_from_start
81
+ "
82
+ end
83
+ attr_accessor :header, :goal_id, :goal
84
+
85
+ @@struct_L3 = ::ROS::Struct.new("L3")
86
+ @@struct_L2 = ::ROS::Struct.new("L2")
87
+ @@struct_l2 = ::ROS::Struct.new("l2")
88
+
89
+ @@struct_L = ::ROS::Struct.new("L")
90
+ @@slot_types = ['Header','actionlib_msgs/GoalID','pr2_controllers_msgs/JointTrajectoryGoal']
91
+
92
+ # Constructor. You can set the default values using keyword operators.
93
+ #
94
+ # @param [Hash] args keyword for initializing values
95
+ # @option args [Header] :header initialize value
96
+ # @option args [actionlib_msgs/GoalID] :goal_id initialize value
97
+ # @option args [pr2_controllers_msgs/JointTrajectoryGoal] :goal initialize value
98
+ def initialize(args={})
99
+ # message fields cannot be None, assign default values for those that are
100
+ if args[:header]
101
+ @header = args[:header]
102
+ else
103
+ @header = Std_msgs::Header.new
104
+ end
105
+ if args[:goal_id]
106
+ @goal_id = args[:goal_id]
107
+ else
108
+ @goal_id = Actionlib_msgs::GoalID.new
109
+ end
110
+ if args[:goal]
111
+ @goal = args[:goal]
112
+ else
113
+ @goal = Pr2_controllers_msgs::JointTrajectoryGoal.new
114
+ end
115
+ end
116
+
117
+ # internal API method
118
+ # @return [String] Message type string.
119
+ def _get_types
120
+ @slot_types
121
+ end
122
+
123
+ # serialize message into buffer
124
+ # @param [IO] buff buffer
125
+ def serialize(buff)
126
+ begin
127
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
128
+ _x = @header.frame_id
129
+ length = _x.length
130
+ buff.write([length, _x].pack("La#{length}"))
131
+ buff.write(@@struct_L2.pack(@goal_id.stamp.secs, @goal_id.stamp.nsecs))
132
+ _x = @goal_id.id
133
+ length = _x.length
134
+ buff.write([length, _x].pack("La#{length}"))
135
+ buff.write(@@struct_L3.pack(@goal.trajectory.header.seq, @goal.trajectory.header.stamp.secs, @goal.trajectory.header.stamp.nsecs))
136
+ _x = @goal.trajectory.header.frame_id
137
+ length = _x.length
138
+ buff.write([length, _x].pack("La#{length}"))
139
+ length = @goal.trajectory.joint_names.length
140
+ buff.write(@@struct_L.pack(length))
141
+ for val1 in @goal.trajectory.joint_names
142
+ length = val1.length
143
+ buff.write([length, val1].pack("La#{length}"))
144
+ end
145
+ length = @goal.trajectory.points.length
146
+ buff.write(@@struct_L.pack(length))
147
+ for val1 in @goal.trajectory.points
148
+ length = val1.positions.length
149
+ buff.write(@@struct_L.pack(length))
150
+ pattern = "d#{length}"
151
+ buff.write(*val1.positions.pack(pattern))
152
+ length = val1.velocities.length
153
+ buff.write(@@struct_L.pack(length))
154
+ pattern = "d#{length}"
155
+ buff.write(*val1.velocities.pack(pattern))
156
+ length = val1.accelerations.length
157
+ buff.write(@@struct_L.pack(length))
158
+ pattern = "d#{length}"
159
+ buff.write(*val1.accelerations.pack(pattern))
160
+ _v157 = val1.time_from_start
161
+ _x = _v157
162
+ buff.write(@@struct_l2.pack(_x.secs, _x.nsecs))
163
+ end
164
+ rescue => exception
165
+ raise "some erro in serialize: #{exception}"
166
+
167
+ end
168
+ end
169
+
170
+ # unpack serialized message in str into this message instance
171
+ # @param [String] str: byte array of serialized message
172
+ def deserialize(str)
173
+
174
+ begin
175
+ if @header == nil
176
+ @header = Std_msgs::Header.new
177
+ end
178
+ if @goal_id == nil
179
+ @goal_id = Actionlib_msgs::GoalID.new
180
+ end
181
+ if @goal == nil
182
+ @goal = Pr2_controllers_msgs::JointTrajectoryGoal.new
183
+ end
184
+ end_point = 0
185
+ start = end_point
186
+ end_point += ROS::Struct::calc_size('L3')
187
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
188
+ start = end_point
189
+ end_point += 4
190
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
191
+ start = end_point
192
+ end_point += length
193
+ @header.frame_id = str[start..(end_point-1)]
194
+ start = end_point
195
+ end_point += ROS::Struct::calc_size('L2')
196
+ (@goal_id.stamp.secs, @goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
197
+ start = end_point
198
+ end_point += 4
199
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
200
+ start = end_point
201
+ end_point += length
202
+ @goal_id.id = str[start..(end_point-1)]
203
+ start = end_point
204
+ end_point += ROS::Struct::calc_size('L3')
205
+ (@goal.trajectory.header.seq, @goal.trajectory.header.stamp.secs, @goal.trajectory.header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
206
+ start = end_point
207
+ end_point += 4
208
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
209
+ start = end_point
210
+ end_point += length
211
+ @goal.trajectory.header.frame_id = str[start..(end_point-1)]
212
+ start = end_point
213
+ end_point += 4
214
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
215
+ @goal.trajectory.joint_names = []
216
+ length.times do
217
+ start = end_point
218
+ end_point += 4
219
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
220
+ start = end_point
221
+ end_point += length
222
+ val1 = str[start..(end_point-1)]
223
+ @goal.trajectory.joint_names.push(val1)
224
+ end
225
+ start = end_point
226
+ end_point += 4
227
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
228
+ @goal.trajectory.points = []
229
+ length.times do
230
+ val1 = Trajectory_msgs::JointTrajectoryPoint.new
231
+ start = end_point
232
+ end_point += 4
233
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
234
+ pattern = "d#{length}"
235
+ start = end_point
236
+ end_point += ROS::Struct::calc_size("#{pattern}")
237
+ val1.positions = str[start..(end_point-1)].unpack(pattern)
238
+ start = end_point
239
+ end_point += 4
240
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
241
+ pattern = "d#{length}"
242
+ start = end_point
243
+ end_point += ROS::Struct::calc_size("#{pattern}")
244
+ val1.velocities = str[start..(end_point-1)].unpack(pattern)
245
+ start = end_point
246
+ end_point += 4
247
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
248
+ pattern = "d#{length}"
249
+ start = end_point
250
+ end_point += ROS::Struct::calc_size("#{pattern}")
251
+ val1.accelerations = str[start..(end_point-1)].unpack(pattern)
252
+ _v158 = val1.time_from_start
253
+ _x = _v158
254
+ start = end_point
255
+ end_point += ROS::Struct::calc_size('l2')
256
+ (_x.secs, _x.nsecs,) = @@struct_l2.unpack(str[start..(end_point-1)])
257
+ @goal.trajectory.points.push(val1)
258
+ end
259
+ return self
260
+ rescue => exception
261
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
262
+ end
263
+ end
264
+ end # end of class
265
+ end # end of module