rosruby_msgs 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/lib/actionlib_msgs/GoalID.rb +106 -0
  2. data/lib/actionlib_msgs/GoalStatus.rb +160 -0
  3. data/lib/actionlib_msgs/GoalStatusArray.rb +207 -0
  4. data/lib/actionlib_tutorials/AveragingAction.rb +322 -0
  5. data/lib/actionlib_tutorials/AveragingActionFeedback.rb +213 -0
  6. data/lib/actionlib_tutorials/AveragingActionGoal.rb +167 -0
  7. data/lib/actionlib_tutorials/AveragingActionResult.rb +209 -0
  8. data/lib/actionlib_tutorials/AveragingFeedback.rb +93 -0
  9. data/lib/actionlib_tutorials/AveragingGoal.rb +85 -0
  10. data/lib/actionlib_tutorials/AveragingResult.rb +87 -0
  11. data/lib/actionlib_tutorials/FibonacciAction.rb +334 -0
  12. data/lib/actionlib_tutorials/FibonacciActionFeedback.rb +216 -0
  13. data/lib/actionlib_tutorials/FibonacciActionGoal.rb +167 -0
  14. data/lib/actionlib_tutorials/FibonacciActionResult.rb +214 -0
  15. data/lib/actionlib_tutorials/FibonacciFeedback.rb +93 -0
  16. data/lib/actionlib_tutorials/FibonacciGoal.rb +85 -0
  17. data/lib/actionlib_tutorials/FibonacciResult.rb +91 -0
  18. data/lib/geometry_msgs/Point.rb +88 -0
  19. data/lib/geometry_msgs/Point32.rb +94 -0
  20. data/lib/geometry_msgs/PointStamped.rb +133 -0
  21. data/lib/geometry_msgs/Polygon.rb +112 -0
  22. data/lib/geometry_msgs/PolygonStamped.rb +159 -0
  23. data/lib/geometry_msgs/Pose.rb +110 -0
  24. data/lib/geometry_msgs/Pose2D.rb +88 -0
  25. data/lib/geometry_msgs/PoseArray.rb +174 -0
  26. data/lib/geometry_msgs/PoseStamped.rb +150 -0
  27. data/lib/geometry_msgs/PoseWithCovariance.rb +125 -0
  28. data/lib/geometry_msgs/PoseWithCovarianceStamped.rb +169 -0
  29. data/lib/geometry_msgs/Quaternion.rb +91 -0
  30. data/lib/geometry_msgs/QuaternionStamped.rb +136 -0
  31. data/lib/geometry_msgs/Transform.rb +111 -0
  32. data/lib/geometry_msgs/TransformStamped.rb +168 -0
  33. data/lib/geometry_msgs/Twist.rb +100 -0
  34. data/lib/geometry_msgs/TwistStamped.rb +140 -0
  35. data/lib/geometry_msgs/TwistWithCovariance.rb +115 -0
  36. data/lib/geometry_msgs/TwistWithCovarianceStamped.rb +158 -0
  37. data/lib/geometry_msgs/Vector3.rb +88 -0
  38. data/lib/geometry_msgs/Vector3Stamped.rb +133 -0
  39. data/lib/geometry_msgs/Wrench.rb +101 -0
  40. data/lib/geometry_msgs/WrenchStamped.rb +141 -0
  41. data/lib/nav_msgs/GetMap.rb +280 -0
  42. data/lib/nav_msgs/GetPlan.rb +406 -0
  43. data/lib/nav_msgs/GridCells.rb +153 -0
  44. data/lib/nav_msgs/MapMetaData.rb +130 -0
  45. data/lib/nav_msgs/OccupancyGrid.rb +187 -0
  46. data/lib/nav_msgs/Odometry.rb +223 -0
  47. data/lib/nav_msgs/Path.rb +205 -0
  48. data/lib/roscpp/Empty.rb +166 -0
  49. data/lib/roscpp/GetLoggers.rb +205 -0
  50. data/lib/roscpp/Logger.rb +98 -0
  51. data/lib/roscpp/SetLoggerLevel.rb +189 -0
  52. data/lib/roscpp_tutorials/TwoInts.rb +185 -0
  53. data/lib/rosgraph_msgs/Clock.rb +90 -0
  54. data/lib/rosgraph_msgs/Log.rb +210 -0
  55. data/lib/sensor_msgs/CameraInfo.rb +325 -0
  56. data/lib/sensor_msgs/ChannelFloat32.rb +122 -0
  57. data/lib/sensor_msgs/CompressedImage.rb +151 -0
  58. data/lib/sensor_msgs/Image.rb +179 -0
  59. data/lib/sensor_msgs/Imu.rb +193 -0
  60. data/lib/sensor_msgs/JointState.rb +195 -0
  61. data/lib/sensor_msgs/Joy.rb +141 -0
  62. data/lib/sensor_msgs/JoyFeedback.rb +104 -0
  63. data/lib/sensor_msgs/JoyFeedbackArray.rb +116 -0
  64. data/lib/sensor_msgs/LaserScan.rb +178 -0
  65. data/lib/sensor_msgs/NavSatFix.rb +215 -0
  66. data/lib/sensor_msgs/NavSatStatus.rb +115 -0
  67. data/lib/sensor_msgs/PointCloud.rb +222 -0
  68. data/lib/sensor_msgs/PointCloud2.rb +226 -0
  69. data/lib/sensor_msgs/PointField.rb +119 -0
  70. data/lib/sensor_msgs/Range.rb +157 -0
  71. data/lib/sensor_msgs/RegionOfInterest.rb +106 -0
  72. data/lib/sensor_msgs/SetCameraInfo.rb +437 -0
  73. data/lib/sensor_msgs/TimeReference.rb +140 -0
  74. data/lib/std_msgs/Bool.rb +83 -0
  75. data/lib/std_msgs/Byte.rb +83 -0
  76. data/lib/std_msgs/ByteMultiArray.rb +165 -0
  77. data/lib/std_msgs/Char.rb +82 -0
  78. data/lib/std_msgs/ColorRGBA.rb +89 -0
  79. data/lib/std_msgs/Duration.rb +87 -0
  80. data/lib/std_msgs/Empty.rb +75 -0
  81. data/lib/std_msgs/Float32.rb +82 -0
  82. data/lib/std_msgs/Float32MultiArray.rb +165 -0
  83. data/lib/std_msgs/Float64.rb +82 -0
  84. data/lib/std_msgs/Float64MultiArray.rb +165 -0
  85. data/lib/std_msgs/Header.rb +112 -0
  86. data/lib/std_msgs/Int16.rb +83 -0
  87. data/lib/std_msgs/Int16MultiArray.rb +165 -0
  88. data/lib/std_msgs/Int32.rb +82 -0
  89. data/lib/std_msgs/Int32MultiArray.rb +165 -0
  90. data/lib/std_msgs/Int64.rb +82 -0
  91. data/lib/std_msgs/Int64MultiArray.rb +165 -0
  92. data/lib/std_msgs/Int8.rb +83 -0
  93. data/lib/std_msgs/Int8MultiArray.rb +165 -0
  94. data/lib/std_msgs/MultiArrayDimension.rb +95 -0
  95. data/lib/std_msgs/MultiArrayLayout.rb +141 -0
  96. data/lib/std_msgs/String.rb +87 -0
  97. data/lib/std_msgs/Time.rb +87 -0
  98. data/lib/std_msgs/UInt16.rb +83 -0
  99. data/lib/std_msgs/UInt16MultiArray.rb +165 -0
  100. data/lib/std_msgs/UInt32.rb +81 -0
  101. data/lib/std_msgs/UInt32MultiArray.rb +165 -0
  102. data/lib/std_msgs/UInt64.rb +82 -0
  103. data/lib/std_msgs/UInt64MultiArray.rb +165 -0
  104. data/lib/std_msgs/UInt8.rb +83 -0
  105. data/lib/std_msgs/UInt8MultiArray.rb +168 -0
  106. data/lib/std_srvs/Empty.rb +166 -0
  107. data/lib/stereo_msgs/DisparityImage.rb +261 -0
  108. data/lib/tf/FrameGraph.rb +179 -0
  109. data/lib/tf/tfMessage.rb +202 -0
  110. data/lib/trajectory_msgs/JointTrajectory.rb +198 -0
  111. data/lib/trajectory_msgs/JointTrajectoryPoint.rb +125 -0
  112. data/lib/visualization_msgs/ImageMarker.rb +238 -0
  113. data/lib/visualization_msgs/InteractiveMarker.rb +651 -0
  114. data/lib/visualization_msgs/InteractiveMarkerControl.rb +469 -0
  115. data/lib/visualization_msgs/InteractiveMarkerFeedback.rb +235 -0
  116. data/lib/visualization_msgs/InteractiveMarkerInit.rb +707 -0
  117. data/lib/visualization_msgs/InteractiveMarkerPose.rb +166 -0
  118. data/lib/visualization_msgs/InteractiveMarkerUpdate.rb +825 -0
  119. data/lib/visualization_msgs/Marker.rb +318 -0
  120. data/lib/visualization_msgs/MarkerArray.rb +349 -0
  121. data/lib/visualization_msgs/MenuEntry.rb +168 -0
  122. metadata +123 -2
@@ -0,0 +1,167 @@
1
+ # autogenerated by genmsg_ruby from FibonacciActionGoal.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+ require "std_msgs/Header"
5
+ require "actionlib_msgs/GoalID"
6
+ require "actionlib_tutorials/FibonacciGoal"
7
+ require "ros/time"
8
+
9
+ module Actionlib_tutorials
10
+
11
+ class FibonacciActionGoal <::ROS::Message
12
+ def self.md5sum
13
+ "006871c7fa1d0e3d5fe2226bf17b2a94"
14
+ end
15
+
16
+ def self.type
17
+ "actionlib_tutorials/FibonacciActionGoal"
18
+ end
19
+
20
+ def has_header?
21
+ true
22
+ end
23
+
24
+ def message_definition
25
+ "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
26
+
27
+ Header header
28
+ actionlib_msgs/GoalID goal_id
29
+ FibonacciGoal goal
30
+
31
+ ================================================================================
32
+ MSG: std_msgs/Header
33
+ # Standard metadata for higher-level stamped data types.
34
+ # This is generally used to communicate timestamped data
35
+ # in a particular coordinate frame.
36
+ #
37
+ # sequence ID: consecutively increasing ID
38
+ uint32 seq
39
+ #Two-integer timestamp that is expressed as:
40
+ # * stamp.secs: seconds (stamp_secs) since epoch
41
+ # * stamp.nsecs: nanoseconds since stamp_secs
42
+ # time-handling sugar is provided by the client library
43
+ time stamp
44
+ #Frame this data is associated with
45
+ # 0: no frame
46
+ # 1: global frame
47
+ string frame_id
48
+
49
+ ================================================================================
50
+ MSG: actionlib_msgs/GoalID
51
+ # The stamp should store the time at which this goal was requested.
52
+ # It is used by an action server when it tries to preempt all
53
+ # goals that were requested before a certain time
54
+ time stamp
55
+
56
+ # The id provides a way to associate feedback and
57
+ # result message with specific goal requests. The id
58
+ # specified must be unique.
59
+ string id
60
+
61
+
62
+ ================================================================================
63
+ MSG: actionlib_tutorials/FibonacciGoal
64
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
65
+ #goal definition
66
+ int32 order
67
+
68
+ "
69
+ end
70
+ attr_accessor :header, :goal_id, :goal
71
+
72
+ @@struct_l = ::ROS::Struct.new("l")
73
+ @@struct_L3 = ::ROS::Struct.new("L3")
74
+ @@struct_L2 = ::ROS::Struct.new("L2")
75
+
76
+ @@struct_L = ::ROS::Struct.new("L")
77
+ @@slot_types = ['Header','actionlib_msgs/GoalID','actionlib_tutorials/FibonacciGoal']
78
+
79
+ def initialize
80
+ # Constructor. Any message fields that are implicitly/explicitly
81
+ # set to None will be assigned a default value. The recommend
82
+ # use is keyword arguments as this is more robust to future message
83
+ # changes. You cannot mix in-order arguments and keyword arguments.
84
+ #
85
+ # The available fields are:
86
+ # header,goal_id,goal
87
+ #
88
+ # @param args: complete set of field values, in .msg order
89
+ # @param kwds: use keyword arguments corresponding to message field names
90
+ # to set specific fields.
91
+ #
92
+
93
+ # message fields cannot be None, assign default values for those that are
94
+ @header = Std_msgs::Header.new
95
+ @goal_id = Actionlib_msgs::GoalID.new
96
+ @goal = Actionlib_tutorials::FibonacciGoal.new
97
+ end
98
+
99
+ def _get_types
100
+ # internal API method
101
+ return @slot_types
102
+ end
103
+
104
+ def serialize(buff)
105
+ # serialize message into buffer
106
+ # @param buff: buffer
107
+ # @type buff: StringIO
108
+ begin
109
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
110
+ _x = @header.frame_id
111
+ length = _x.length
112
+ buff.write([length, _x].pack("La#{length}"))
113
+ buff.write(@@struct_L2.pack(@goal_id.stamp.secs, @goal_id.stamp.nsecs))
114
+ _x = @goal_id.id
115
+ length = _x.length
116
+ buff.write([length, _x].pack("La#{length}"))
117
+ buff.write(@@struct_l.pack(@goal.order))
118
+ rescue => exception
119
+ raise "some erro in serialize: #{exception}"
120
+
121
+ end
122
+ end
123
+
124
+ def deserialize(str)
125
+ # unpack serialized message in str into this message instance
126
+ # @param str: byte array of serialized message
127
+ # @type str: str
128
+
129
+ begin
130
+ if @header == nil
131
+ @header = Std_msgs::Header.new
132
+ end
133
+ if @goal_id == nil
134
+ @goal_id = Actionlib_msgs::GoalID.new
135
+ end
136
+ if @goal == nil
137
+ @goal = Actionlib_tutorials::FibonacciGoal.new
138
+ end
139
+ end_point = 0
140
+ start = end_point
141
+ end_point += ROS::Struct::calc_size('L3')
142
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
143
+ start = end_point
144
+ end_point += 4
145
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
146
+ start = end_point
147
+ end_point += length
148
+ @header.frame_id = str[start..(end_point-1)]
149
+ start = end_point
150
+ end_point += ROS::Struct::calc_size('L2')
151
+ (@goal_id.stamp.secs, @goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
152
+ start = end_point
153
+ end_point += 4
154
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
155
+ start = end_point
156
+ end_point += length
157
+ @goal_id.id = str[start..(end_point-1)]
158
+ start = end_point
159
+ end_point += ROS::Struct::calc_size('l')
160
+ (@goal.order,) = @@struct_l.unpack(str[start..(end_point-1)])
161
+ return self
162
+ rescue => exception
163
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
164
+ end
165
+ end
166
+ end # end of class
167
+ end # end of module
@@ -0,0 +1,214 @@
1
+ # autogenerated by genmsg_ruby from FibonacciActionResult.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 "actionlib_tutorials/FibonacciResult"
8
+ require "ros/time"
9
+
10
+ module Actionlib_tutorials
11
+
12
+ class FibonacciActionResult <::ROS::Message
13
+ def self.md5sum
14
+ "bee73a9fe29ae25e966e105f5553dd03"
15
+ end
16
+
17
+ def self.type
18
+ "actionlib_tutorials/FibonacciActionResult"
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
+ FibonacciResult 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: actionlib_tutorials/FibonacciResult
91
+ # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
92
+ #result definition
93
+ int32[] sequence
94
+
95
+ "
96
+ end
97
+ attr_accessor :header, :status, :result
98
+
99
+ @@struct_L3 = ::ROS::Struct.new("L3")
100
+ @@struct_C = ::ROS::Struct.new("C")
101
+ @@struct_L2 = ::ROS::Struct.new("L2")
102
+
103
+ @@struct_L = ::ROS::Struct.new("L")
104
+ @@slot_types = ['Header','actionlib_msgs/GoalStatus','actionlib_tutorials/FibonacciResult']
105
+
106
+ def initialize
107
+ # Constructor. Any message fields that are implicitly/explicitly
108
+ # set to None will be assigned a default value. The recommend
109
+ # use is keyword arguments as this is more robust to future message
110
+ # changes. You cannot mix in-order arguments and keyword arguments.
111
+ #
112
+ # The available fields are:
113
+ # header,status,result
114
+ #
115
+ # @param args: complete set of field values, in .msg order
116
+ # @param kwds: use keyword arguments corresponding to message field names
117
+ # to set specific fields.
118
+ #
119
+
120
+ # message fields cannot be None, assign default values for those that are
121
+ @header = Std_msgs::Header.new
122
+ @status = Actionlib_msgs::GoalStatus.new
123
+ @result = Actionlib_tutorials::FibonacciResult.new
124
+ end
125
+
126
+ def _get_types
127
+ # internal API method
128
+ return @slot_types
129
+ end
130
+
131
+ def serialize(buff)
132
+ # serialize message into buffer
133
+ # @param buff: buffer
134
+ # @type buff: StringIO
135
+ begin
136
+ buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
137
+ _x = @header.frame_id
138
+ length = _x.length
139
+ buff.write([length, _x].pack("La#{length}"))
140
+ buff.write(@@struct_L2.pack(@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs))
141
+ _x = @status.goal_id.id
142
+ length = _x.length
143
+ buff.write([length, _x].pack("La#{length}"))
144
+ buff.write(@@struct_C.pack(@status.status))
145
+ _x = @status.text
146
+ length = _x.length
147
+ buff.write([length, _x].pack("La#{length}"))
148
+ length = @result.sequence.length
149
+ buff.write(@@struct_L.pack(length))
150
+ pattern = "l#{length}"
151
+ buff.write(*@result.sequence.pack(pattern))
152
+ rescue => exception
153
+ raise "some erro in serialize: #{exception}"
154
+
155
+ end
156
+ end
157
+
158
+ def deserialize(str)
159
+ # unpack serialized message in str into this message instance
160
+ # @param str: byte array of serialized message
161
+ # @type str: str
162
+
163
+ begin
164
+ if @header == nil
165
+ @header = Std_msgs::Header.new
166
+ end
167
+ if @status == nil
168
+ @status = Actionlib_msgs::GoalStatus.new
169
+ end
170
+ if @result == nil
171
+ @result = Actionlib_tutorials::FibonacciResult.new
172
+ end
173
+ end_point = 0
174
+ start = end_point
175
+ end_point += ROS::Struct::calc_size('L3')
176
+ (@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
177
+ start = end_point
178
+ end_point += 4
179
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
180
+ start = end_point
181
+ end_point += length
182
+ @header.frame_id = str[start..(end_point-1)]
183
+ start = end_point
184
+ end_point += ROS::Struct::calc_size('L2')
185
+ (@status.goal_id.stamp.secs, @status.goal_id.stamp.nsecs,) = @@struct_L2.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
+ @status.goal_id.id = str[start..(end_point-1)]
192
+ start = end_point
193
+ end_point += ROS::Struct::calc_size('C')
194
+ (@status.status,) = @@struct_C.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.text = str[start..(end_point-1)]
201
+ start = end_point
202
+ end_point += 4
203
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
204
+ pattern = "l#{length}"
205
+ start = end_point
206
+ end_point += ROS::Struct::calc_size("#{pattern}")
207
+ @result.sequence = str[start..(end_point-1)].unpack(pattern)
208
+ return self
209
+ rescue => exception
210
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
211
+ end
212
+ end
213
+ end # end of class
214
+ end # end of module
@@ -0,0 +1,93 @@
1
+ # autogenerated by genmsg_ruby from FibonacciFeedback.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+
5
+ module Actionlib_tutorials
6
+
7
+ class FibonacciFeedback <::ROS::Message
8
+ def self.md5sum
9
+ "b81e37d2a31925a0e8ae261a8699cb79"
10
+ end
11
+
12
+ def self.type
13
+ "actionlib_tutorials/FibonacciFeedback"
14
+ end
15
+
16
+ def has_header?
17
+ false
18
+ end
19
+
20
+ def message_definition
21
+ "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
22
+ #feedback
23
+ int32[] sequence
24
+
25
+
26
+
27
+ "
28
+ end
29
+ attr_accessor :sequence
30
+
31
+
32
+ @@struct_L = ::ROS::Struct.new("L")
33
+ @@slot_types = ['int32[]']
34
+
35
+ def initialize
36
+ # Constructor. Any message fields that are implicitly/explicitly
37
+ # set to None will be assigned a default value. The recommend
38
+ # use is keyword arguments as this is more robust to future message
39
+ # changes. You cannot mix in-order arguments and keyword arguments.
40
+ #
41
+ # The available fields are:
42
+ # sequence
43
+ #
44
+ # @param args: complete set of field values, in .msg order
45
+ # @param kwds: use keyword arguments corresponding to message field names
46
+ # to set specific fields.
47
+ #
48
+
49
+ # message fields cannot be None, assign default values for those that are
50
+ @sequence = []
51
+ end
52
+
53
+ def _get_types
54
+ # internal API method
55
+ return @slot_types
56
+ end
57
+
58
+ def serialize(buff)
59
+ # serialize message into buffer
60
+ # @param buff: buffer
61
+ # @type buff: StringIO
62
+ begin
63
+ length = @sequence.length
64
+ buff.write(@@struct_L.pack(length))
65
+ pattern = "l#{length}"
66
+ buff.write(*@sequence.pack(pattern))
67
+ rescue => exception
68
+ raise "some erro in serialize: #{exception}"
69
+
70
+ end
71
+ end
72
+
73
+ def deserialize(str)
74
+ # unpack serialized message in str into this message instance
75
+ # @param str: byte array of serialized message
76
+ # @type str: str
77
+
78
+ begin
79
+ end_point = 0
80
+ start = end_point
81
+ end_point += 4
82
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
83
+ pattern = "l#{length}"
84
+ start = end_point
85
+ end_point += ROS::Struct::calc_size("#{pattern}")
86
+ @sequence = str[start..(end_point-1)].unpack(pattern)
87
+ return self
88
+ rescue => exception
89
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
90
+ end
91
+ end
92
+ end # end of class
93
+ end # end of module
@@ -0,0 +1,85 @@
1
+ # autogenerated by genmsg_ruby from FibonacciGoal.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+
5
+ module Actionlib_tutorials
6
+
7
+ class FibonacciGoal <::ROS::Message
8
+ def self.md5sum
9
+ "6889063349a00b249bd1661df429d822"
10
+ end
11
+
12
+ def self.type
13
+ "actionlib_tutorials/FibonacciGoal"
14
+ end
15
+
16
+ def has_header?
17
+ false
18
+ end
19
+
20
+ def message_definition
21
+ "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
22
+ #goal definition
23
+ int32 order
24
+
25
+ "
26
+ end
27
+ attr_accessor :order
28
+
29
+ @@struct_l = ::ROS::Struct.new("l")
30
+
31
+ @@struct_L = ::ROS::Struct.new("L")
32
+ @@slot_types = ['int32']
33
+
34
+ def initialize
35
+ # Constructor. Any message fields that are implicitly/explicitly
36
+ # set to None will be assigned a default value. The recommend
37
+ # use is keyword arguments as this is more robust to future message
38
+ # changes. You cannot mix in-order arguments and keyword arguments.
39
+ #
40
+ # The available fields are:
41
+ # order
42
+ #
43
+ # @param args: complete set of field values, in .msg order
44
+ # @param kwds: use keyword arguments corresponding to message field names
45
+ # to set specific fields.
46
+ #
47
+
48
+ # message fields cannot be None, assign default values for those that are
49
+ @order = 0
50
+ end
51
+
52
+ def _get_types
53
+ # internal API method
54
+ return @slot_types
55
+ end
56
+
57
+ def serialize(buff)
58
+ # serialize message into buffer
59
+ # @param buff: buffer
60
+ # @type buff: StringIO
61
+ begin
62
+ buff.write(@@struct_l.pack(@order))
63
+ rescue => exception
64
+ raise "some erro in serialize: #{exception}"
65
+
66
+ end
67
+ end
68
+
69
+ def deserialize(str)
70
+ # unpack serialized message in str into this message instance
71
+ # @param str: byte array of serialized message
72
+ # @type str: str
73
+
74
+ begin
75
+ end_point = 0
76
+ start = end_point
77
+ end_point += ROS::Struct::calc_size('l')
78
+ (@order,) = @@struct_l.unpack(str[start..(end_point-1)])
79
+ return self
80
+ rescue => exception
81
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
82
+ end
83
+ end
84
+ end # end of class
85
+ end # end of module
@@ -0,0 +1,91 @@
1
+ # autogenerated by genmsg_ruby from FibonacciResult.msg. Do not edit.
2
+ require 'ros/message'
3
+
4
+
5
+ module Actionlib_tutorials
6
+
7
+ class FibonacciResult <::ROS::Message
8
+ def self.md5sum
9
+ "b81e37d2a31925a0e8ae261a8699cb79"
10
+ end
11
+
12
+ def self.type
13
+ "actionlib_tutorials/FibonacciResult"
14
+ end
15
+
16
+ def has_header?
17
+ false
18
+ end
19
+
20
+ def message_definition
21
+ "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
22
+ #result definition
23
+ int32[] sequence
24
+
25
+ "
26
+ end
27
+ attr_accessor :sequence
28
+
29
+
30
+ @@struct_L = ::ROS::Struct.new("L")
31
+ @@slot_types = ['int32[]']
32
+
33
+ def initialize
34
+ # Constructor. Any message fields that are implicitly/explicitly
35
+ # set to None will be assigned a default value. The recommend
36
+ # use is keyword arguments as this is more robust to future message
37
+ # changes. You cannot mix in-order arguments and keyword arguments.
38
+ #
39
+ # The available fields are:
40
+ # sequence
41
+ #
42
+ # @param args: complete set of field values, in .msg order
43
+ # @param kwds: use keyword arguments corresponding to message field names
44
+ # to set specific fields.
45
+ #
46
+
47
+ # message fields cannot be None, assign default values for those that are
48
+ @sequence = []
49
+ end
50
+
51
+ def _get_types
52
+ # internal API method
53
+ return @slot_types
54
+ end
55
+
56
+ def serialize(buff)
57
+ # serialize message into buffer
58
+ # @param buff: buffer
59
+ # @type buff: StringIO
60
+ begin
61
+ length = @sequence.length
62
+ buff.write(@@struct_L.pack(length))
63
+ pattern = "l#{length}"
64
+ buff.write(*@sequence.pack(pattern))
65
+ rescue => exception
66
+ raise "some erro in serialize: #{exception}"
67
+
68
+ end
69
+ end
70
+
71
+ def deserialize(str)
72
+ # unpack serialized message in str into this message instance
73
+ # @param str: byte array of serialized message
74
+ # @type str: str
75
+
76
+ begin
77
+ end_point = 0
78
+ start = end_point
79
+ end_point += 4
80
+ (length,) = @@struct_L.unpack(str[start..(end_point-1)])
81
+ pattern = "l#{length}"
82
+ start = end_point
83
+ end_point += ROS::Struct::calc_size("#{pattern}")
84
+ @sequence = str[start..(end_point-1)].unpack(pattern)
85
+ return self
86
+ rescue => exception
87
+ raise "message DeserializationError: #{exception}" #most likely buffer underfill
88
+ end
89
+ end
90
+ end # end of class
91
+ end # end of module