rosruby_msgs 0.0.2 → 0.0.3

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