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.
- data/lib/actionlib_msgs/GoalID.rb +106 -0
- data/lib/actionlib_msgs/GoalStatus.rb +160 -0
- data/lib/actionlib_msgs/GoalStatusArray.rb +207 -0
- data/lib/actionlib_tutorials/AveragingAction.rb +322 -0
- data/lib/actionlib_tutorials/AveragingActionFeedback.rb +213 -0
- data/lib/actionlib_tutorials/AveragingActionGoal.rb +167 -0
- data/lib/actionlib_tutorials/AveragingActionResult.rb +209 -0
- data/lib/actionlib_tutorials/AveragingFeedback.rb +93 -0
- data/lib/actionlib_tutorials/AveragingGoal.rb +85 -0
- data/lib/actionlib_tutorials/AveragingResult.rb +87 -0
- data/lib/actionlib_tutorials/FibonacciAction.rb +334 -0
- data/lib/actionlib_tutorials/FibonacciActionFeedback.rb +216 -0
- data/lib/actionlib_tutorials/FibonacciActionGoal.rb +167 -0
- data/lib/actionlib_tutorials/FibonacciActionResult.rb +214 -0
- data/lib/actionlib_tutorials/FibonacciFeedback.rb +93 -0
- data/lib/actionlib_tutorials/FibonacciGoal.rb +85 -0
- data/lib/actionlib_tutorials/FibonacciResult.rb +91 -0
- data/lib/geometry_msgs/Point.rb +88 -0
- data/lib/geometry_msgs/Point32.rb +94 -0
- data/lib/geometry_msgs/PointStamped.rb +133 -0
- data/lib/geometry_msgs/Polygon.rb +112 -0
- data/lib/geometry_msgs/PolygonStamped.rb +159 -0
- data/lib/geometry_msgs/Pose.rb +110 -0
- data/lib/geometry_msgs/Pose2D.rb +88 -0
- data/lib/geometry_msgs/PoseArray.rb +174 -0
- data/lib/geometry_msgs/PoseStamped.rb +150 -0
- data/lib/geometry_msgs/PoseWithCovariance.rb +125 -0
- data/lib/geometry_msgs/PoseWithCovarianceStamped.rb +169 -0
- data/lib/geometry_msgs/Quaternion.rb +91 -0
- data/lib/geometry_msgs/QuaternionStamped.rb +136 -0
- data/lib/geometry_msgs/Transform.rb +111 -0
- data/lib/geometry_msgs/TransformStamped.rb +168 -0
- data/lib/geometry_msgs/Twist.rb +100 -0
- data/lib/geometry_msgs/TwistStamped.rb +140 -0
- data/lib/geometry_msgs/TwistWithCovariance.rb +115 -0
- data/lib/geometry_msgs/TwistWithCovarianceStamped.rb +158 -0
- data/lib/geometry_msgs/Vector3.rb +88 -0
- data/lib/geometry_msgs/Vector3Stamped.rb +133 -0
- data/lib/geometry_msgs/Wrench.rb +101 -0
- data/lib/geometry_msgs/WrenchStamped.rb +141 -0
- data/lib/nav_msgs/GetMap.rb +280 -0
- data/lib/nav_msgs/GetPlan.rb +406 -0
- data/lib/nav_msgs/GridCells.rb +153 -0
- data/lib/nav_msgs/MapMetaData.rb +130 -0
- data/lib/nav_msgs/OccupancyGrid.rb +187 -0
- data/lib/nav_msgs/Odometry.rb +223 -0
- data/lib/nav_msgs/Path.rb +205 -0
- data/lib/roscpp/Empty.rb +166 -0
- data/lib/roscpp/GetLoggers.rb +205 -0
- data/lib/roscpp/Logger.rb +98 -0
- data/lib/roscpp/SetLoggerLevel.rb +189 -0
- data/lib/roscpp_tutorials/TwoInts.rb +185 -0
- data/lib/rosgraph_msgs/Clock.rb +90 -0
- data/lib/rosgraph_msgs/Log.rb +210 -0
- data/lib/sensor_msgs/CameraInfo.rb +325 -0
- data/lib/sensor_msgs/ChannelFloat32.rb +122 -0
- data/lib/sensor_msgs/CompressedImage.rb +151 -0
- data/lib/sensor_msgs/Image.rb +179 -0
- data/lib/sensor_msgs/Imu.rb +193 -0
- data/lib/sensor_msgs/JointState.rb +195 -0
- data/lib/sensor_msgs/Joy.rb +141 -0
- data/lib/sensor_msgs/JoyFeedback.rb +104 -0
- data/lib/sensor_msgs/JoyFeedbackArray.rb +116 -0
- data/lib/sensor_msgs/LaserScan.rb +178 -0
- data/lib/sensor_msgs/NavSatFix.rb +215 -0
- data/lib/sensor_msgs/NavSatStatus.rb +115 -0
- data/lib/sensor_msgs/PointCloud.rb +222 -0
- data/lib/sensor_msgs/PointCloud2.rb +226 -0
- data/lib/sensor_msgs/PointField.rb +119 -0
- data/lib/sensor_msgs/Range.rb +157 -0
- data/lib/sensor_msgs/RegionOfInterest.rb +106 -0
- data/lib/sensor_msgs/SetCameraInfo.rb +437 -0
- data/lib/sensor_msgs/TimeReference.rb +140 -0
- data/lib/std_msgs/Bool.rb +83 -0
- data/lib/std_msgs/Byte.rb +83 -0
- data/lib/std_msgs/ByteMultiArray.rb +165 -0
- data/lib/std_msgs/Char.rb +82 -0
- data/lib/std_msgs/ColorRGBA.rb +89 -0
- data/lib/std_msgs/Duration.rb +87 -0
- data/lib/std_msgs/Empty.rb +75 -0
- data/lib/std_msgs/Float32.rb +82 -0
- data/lib/std_msgs/Float32MultiArray.rb +165 -0
- data/lib/std_msgs/Float64.rb +82 -0
- data/lib/std_msgs/Float64MultiArray.rb +165 -0
- data/lib/std_msgs/Header.rb +112 -0
- data/lib/std_msgs/Int16.rb +83 -0
- data/lib/std_msgs/Int16MultiArray.rb +165 -0
- data/lib/std_msgs/Int32.rb +82 -0
- data/lib/std_msgs/Int32MultiArray.rb +165 -0
- data/lib/std_msgs/Int64.rb +82 -0
- data/lib/std_msgs/Int64MultiArray.rb +165 -0
- data/lib/std_msgs/Int8.rb +83 -0
- data/lib/std_msgs/Int8MultiArray.rb +165 -0
- data/lib/std_msgs/MultiArrayDimension.rb +95 -0
- data/lib/std_msgs/MultiArrayLayout.rb +141 -0
- data/lib/std_msgs/String.rb +87 -0
- data/lib/std_msgs/Time.rb +87 -0
- data/lib/std_msgs/UInt16.rb +83 -0
- data/lib/std_msgs/UInt16MultiArray.rb +165 -0
- data/lib/std_msgs/UInt32.rb +81 -0
- data/lib/std_msgs/UInt32MultiArray.rb +165 -0
- data/lib/std_msgs/UInt64.rb +82 -0
- data/lib/std_msgs/UInt64MultiArray.rb +165 -0
- data/lib/std_msgs/UInt8.rb +83 -0
- data/lib/std_msgs/UInt8MultiArray.rb +168 -0
- data/lib/std_srvs/Empty.rb +166 -0
- data/lib/stereo_msgs/DisparityImage.rb +261 -0
- data/lib/tf/FrameGraph.rb +179 -0
- data/lib/tf/tfMessage.rb +202 -0
- data/lib/trajectory_msgs/JointTrajectory.rb +198 -0
- data/lib/trajectory_msgs/JointTrajectoryPoint.rb +125 -0
- data/lib/visualization_msgs/ImageMarker.rb +238 -0
- data/lib/visualization_msgs/InteractiveMarker.rb +651 -0
- data/lib/visualization_msgs/InteractiveMarkerControl.rb +469 -0
- data/lib/visualization_msgs/InteractiveMarkerFeedback.rb +235 -0
- data/lib/visualization_msgs/InteractiveMarkerInit.rb +707 -0
- data/lib/visualization_msgs/InteractiveMarkerPose.rb +166 -0
- data/lib/visualization_msgs/InteractiveMarkerUpdate.rb +825 -0
- data/lib/visualization_msgs/Marker.rb +318 -0
- data/lib/visualization_msgs/MarkerArray.rb +349 -0
- data/lib/visualization_msgs/MenuEntry.rb +168 -0
- metadata +123 -2
@@ -0,0 +1,106 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from GoalID.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
require "ros/time"
|
5
|
+
|
6
|
+
module Actionlib_msgs
|
7
|
+
|
8
|
+
class GoalID <::ROS::Message
|
9
|
+
def self.md5sum
|
10
|
+
"302881f31927c1df708a2dbab0e80ee8"
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.type
|
14
|
+
"actionlib_msgs/GoalID"
|
15
|
+
end
|
16
|
+
|
17
|
+
def has_header?
|
18
|
+
false
|
19
|
+
end
|
20
|
+
|
21
|
+
def message_definition
|
22
|
+
"# The stamp should store the time at which this goal was requested.
|
23
|
+
# It is used by an action server when it tries to preempt all
|
24
|
+
# goals that were requested before a certain time
|
25
|
+
time stamp
|
26
|
+
|
27
|
+
# The id provides a way to associate feedback and
|
28
|
+
# result message with specific goal requests. The id
|
29
|
+
# specified must be unique.
|
30
|
+
string id
|
31
|
+
|
32
|
+
|
33
|
+
"
|
34
|
+
end
|
35
|
+
attr_accessor :stamp, :id
|
36
|
+
|
37
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
38
|
+
|
39
|
+
@@struct_L = ::ROS::Struct.new("L")
|
40
|
+
@@slot_types = ['time','string']
|
41
|
+
|
42
|
+
def initialize
|
43
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
44
|
+
# set to None will be assigned a default value. The recommend
|
45
|
+
# use is keyword arguments as this is more robust to future message
|
46
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
47
|
+
#
|
48
|
+
# The available fields are:
|
49
|
+
# stamp,id
|
50
|
+
#
|
51
|
+
# @param args: complete set of field values, in .msg order
|
52
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
53
|
+
# to set specific fields.
|
54
|
+
#
|
55
|
+
|
56
|
+
# message fields cannot be None, assign default values for those that are
|
57
|
+
@stamp = ROS::Time.new
|
58
|
+
@id = ''
|
59
|
+
end
|
60
|
+
|
61
|
+
def _get_types
|
62
|
+
# internal API method
|
63
|
+
return @slot_types
|
64
|
+
end
|
65
|
+
|
66
|
+
def serialize(buff)
|
67
|
+
# serialize message into buffer
|
68
|
+
# @param buff: buffer
|
69
|
+
# @type buff: StringIO
|
70
|
+
begin
|
71
|
+
buff.write(@@struct_L2.pack(@stamp.secs, @stamp.nsecs))
|
72
|
+
_x = @id
|
73
|
+
length = _x.length
|
74
|
+
buff.write([length, _x].pack("La#{length}"))
|
75
|
+
rescue => exception
|
76
|
+
raise "some erro in serialize: #{exception}"
|
77
|
+
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def deserialize(str)
|
82
|
+
# unpack serialized message in str into this message instance
|
83
|
+
# @param str: byte array of serialized message
|
84
|
+
# @type str: str
|
85
|
+
|
86
|
+
begin
|
87
|
+
if @stamp == nil
|
88
|
+
@stamp = ROS::Time.new
|
89
|
+
end
|
90
|
+
end_point = 0
|
91
|
+
start = end_point
|
92
|
+
end_point += ROS::Struct::calc_size('L2')
|
93
|
+
(@stamp.secs, @stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
94
|
+
start = end_point
|
95
|
+
end_point += 4
|
96
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
97
|
+
start = end_point
|
98
|
+
end_point += length
|
99
|
+
@id = str[start..(end_point-1)]
|
100
|
+
return self
|
101
|
+
rescue => exception
|
102
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end # end of class
|
106
|
+
end # end of module
|
@@ -0,0 +1,160 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from GoalStatus.msg. Do not edit.
|
2
|
+
require 'ros/message'
|
3
|
+
|
4
|
+
require "actionlib_msgs/GoalID"
|
5
|
+
require "ros/time"
|
6
|
+
|
7
|
+
module Actionlib_msgs
|
8
|
+
|
9
|
+
class GoalStatus <::ROS::Message
|
10
|
+
def self.md5sum
|
11
|
+
"d388f9b87b3c471f784434d671988d4a"
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.type
|
15
|
+
"actionlib_msgs/GoalStatus"
|
16
|
+
end
|
17
|
+
|
18
|
+
def has_header?
|
19
|
+
false
|
20
|
+
end
|
21
|
+
|
22
|
+
def message_definition
|
23
|
+
"GoalID goal_id
|
24
|
+
uint8 status
|
25
|
+
uint8 PENDING = 0 # The goal has yet to be processed by the action server
|
26
|
+
uint8 ACTIVE = 1 # The goal is currently being processed by the action server
|
27
|
+
uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
|
28
|
+
# and has since completed its execution (Terminal State)
|
29
|
+
uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
|
30
|
+
uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
|
31
|
+
# to some failure (Terminal State)
|
32
|
+
uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
|
33
|
+
# because the goal was unattainable or invalid (Terminal State)
|
34
|
+
uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
|
35
|
+
# and has not yet completed execution
|
36
|
+
uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
|
37
|
+
# but the action server has not yet confirmed that the goal is canceled
|
38
|
+
uint8 RECALLED = 8 # The goal received a cancel request before it started executing
|
39
|
+
# and was successfully cancelled (Terminal State)
|
40
|
+
uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
|
41
|
+
# sent over the wire by an action server
|
42
|
+
|
43
|
+
#Allow for the user to associate a string with GoalStatus for debugging
|
44
|
+
string text
|
45
|
+
|
46
|
+
|
47
|
+
================================================================================
|
48
|
+
MSG: actionlib_msgs/GoalID
|
49
|
+
# The stamp should store the time at which this goal was requested.
|
50
|
+
# It is used by an action server when it tries to preempt all
|
51
|
+
# goals that were requested before a certain time
|
52
|
+
time stamp
|
53
|
+
|
54
|
+
# The id provides a way to associate feedback and
|
55
|
+
# result message with specific goal requests. The id
|
56
|
+
# specified must be unique.
|
57
|
+
string id
|
58
|
+
|
59
|
+
|
60
|
+
"
|
61
|
+
end
|
62
|
+
# Pseudo-constants
|
63
|
+
PENDING = 0
|
64
|
+
ACTIVE = 1
|
65
|
+
PREEMPTED = 2
|
66
|
+
SUCCEEDED = 3
|
67
|
+
ABORTED = 4
|
68
|
+
REJECTED = 5
|
69
|
+
PREEMPTING = 6
|
70
|
+
RECALLING = 7
|
71
|
+
RECALLED = 8
|
72
|
+
LOST = 9
|
73
|
+
|
74
|
+
attr_accessor :goal_id, :status, :text
|
75
|
+
|
76
|
+
@@struct_C = ::ROS::Struct.new("C")
|
77
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
78
|
+
|
79
|
+
@@struct_L = ::ROS::Struct.new("L")
|
80
|
+
@@slot_types = ['actionlib_msgs/GoalID','uint8','string']
|
81
|
+
|
82
|
+
def initialize
|
83
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
84
|
+
# set to None will be assigned a default value. The recommend
|
85
|
+
# use is keyword arguments as this is more robust to future message
|
86
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
87
|
+
#
|
88
|
+
# The available fields are:
|
89
|
+
# goal_id,status,text
|
90
|
+
#
|
91
|
+
# @param args: complete set of field values, in .msg order
|
92
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
93
|
+
# to set specific fields.
|
94
|
+
#
|
95
|
+
|
96
|
+
# message fields cannot be None, assign default values for those that are
|
97
|
+
@goal_id = Actionlib_msgs::GoalID.new
|
98
|
+
@status = 0
|
99
|
+
@text = ''
|
100
|
+
end
|
101
|
+
|
102
|
+
def _get_types
|
103
|
+
# internal API method
|
104
|
+
return @slot_types
|
105
|
+
end
|
106
|
+
|
107
|
+
def serialize(buff)
|
108
|
+
# serialize message into buffer
|
109
|
+
# @param buff: buffer
|
110
|
+
# @type buff: StringIO
|
111
|
+
begin
|
112
|
+
buff.write(@@struct_L2.pack(@goal_id.stamp.secs, @goal_id.stamp.nsecs))
|
113
|
+
_x = @goal_id.id
|
114
|
+
length = _x.length
|
115
|
+
buff.write([length, _x].pack("La#{length}"))
|
116
|
+
buff.write(@@struct_C.pack(@status))
|
117
|
+
_x = @text
|
118
|
+
length = _x.length
|
119
|
+
buff.write([length, _x].pack("La#{length}"))
|
120
|
+
rescue => exception
|
121
|
+
raise "some erro in serialize: #{exception}"
|
122
|
+
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
def deserialize(str)
|
127
|
+
# unpack serialized message in str into this message instance
|
128
|
+
# @param str: byte array of serialized message
|
129
|
+
# @type str: str
|
130
|
+
|
131
|
+
begin
|
132
|
+
if @goal_id == nil
|
133
|
+
@goal_id = Actionlib_msgs::GoalID.new
|
134
|
+
end
|
135
|
+
end_point = 0
|
136
|
+
start = end_point
|
137
|
+
end_point += ROS::Struct::calc_size('L2')
|
138
|
+
(@goal_id.stamp.secs, @goal_id.stamp.nsecs,) = @@struct_L2.unpack(str[start..(end_point-1)])
|
139
|
+
start = end_point
|
140
|
+
end_point += 4
|
141
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
142
|
+
start = end_point
|
143
|
+
end_point += length
|
144
|
+
@goal_id.id = str[start..(end_point-1)]
|
145
|
+
start = end_point
|
146
|
+
end_point += ROS::Struct::calc_size('C')
|
147
|
+
(@status,) = @@struct_C.unpack(str[start..(end_point-1)])
|
148
|
+
start = end_point
|
149
|
+
end_point += 4
|
150
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
151
|
+
start = end_point
|
152
|
+
end_point += length
|
153
|
+
@text = str[start..(end_point-1)]
|
154
|
+
return self
|
155
|
+
rescue => exception
|
156
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end # end of class
|
160
|
+
end # end of module
|
@@ -0,0 +1,207 @@
|
|
1
|
+
# autogenerated by genmsg_ruby from GoalStatusArray.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 "ros/time"
|
8
|
+
|
9
|
+
module Actionlib_msgs
|
10
|
+
|
11
|
+
class GoalStatusArray <::ROS::Message
|
12
|
+
def self.md5sum
|
13
|
+
"8b2b82f13216d0a8ea88bd3af735e619"
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.type
|
17
|
+
"actionlib_msgs/GoalStatusArray"
|
18
|
+
end
|
19
|
+
|
20
|
+
def has_header?
|
21
|
+
true
|
22
|
+
end
|
23
|
+
|
24
|
+
def message_definition
|
25
|
+
"# Stores the statuses for goals that are currently being tracked
|
26
|
+
# by an action server
|
27
|
+
Header header
|
28
|
+
GoalStatus[] status_list
|
29
|
+
|
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/GoalStatus
|
51
|
+
GoalID goal_id
|
52
|
+
uint8 status
|
53
|
+
uint8 PENDING = 0 # The goal has yet to be processed by the action server
|
54
|
+
uint8 ACTIVE = 1 # The goal is currently being processed by the action server
|
55
|
+
uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
|
56
|
+
# and has since completed its execution (Terminal State)
|
57
|
+
uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
|
58
|
+
uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
|
59
|
+
# to some failure (Terminal State)
|
60
|
+
uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
|
61
|
+
# because the goal was unattainable or invalid (Terminal State)
|
62
|
+
uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
|
63
|
+
# and has not yet completed execution
|
64
|
+
uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
|
65
|
+
# but the action server has not yet confirmed that the goal is canceled
|
66
|
+
uint8 RECALLED = 8 # The goal received a cancel request before it started executing
|
67
|
+
# and was successfully cancelled (Terminal State)
|
68
|
+
uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
|
69
|
+
# sent over the wire by an action server
|
70
|
+
|
71
|
+
#Allow for the user to associate a string with GoalStatus for debugging
|
72
|
+
string text
|
73
|
+
|
74
|
+
|
75
|
+
================================================================================
|
76
|
+
MSG: actionlib_msgs/GoalID
|
77
|
+
# The stamp should store the time at which this goal was requested.
|
78
|
+
# It is used by an action server when it tries to preempt all
|
79
|
+
# goals that were requested before a certain time
|
80
|
+
time stamp
|
81
|
+
|
82
|
+
# The id provides a way to associate feedback and
|
83
|
+
# result message with specific goal requests. The id
|
84
|
+
# specified must be unique.
|
85
|
+
string id
|
86
|
+
|
87
|
+
|
88
|
+
"
|
89
|
+
end
|
90
|
+
attr_accessor :header, :status_list
|
91
|
+
|
92
|
+
@@struct_L3 = ::ROS::Struct.new("L3")
|
93
|
+
@@struct_C = ::ROS::Struct.new("C")
|
94
|
+
@@struct_L2 = ::ROS::Struct.new("L2")
|
95
|
+
|
96
|
+
@@struct_L = ::ROS::Struct.new("L")
|
97
|
+
@@slot_types = ['Header','actionlib_msgs/GoalStatus[]']
|
98
|
+
|
99
|
+
def initialize
|
100
|
+
# Constructor. Any message fields that are implicitly/explicitly
|
101
|
+
# set to None will be assigned a default value. The recommend
|
102
|
+
# use is keyword arguments as this is more robust to future message
|
103
|
+
# changes. You cannot mix in-order arguments and keyword arguments.
|
104
|
+
#
|
105
|
+
# The available fields are:
|
106
|
+
# header,status_list
|
107
|
+
#
|
108
|
+
# @param args: complete set of field values, in .msg order
|
109
|
+
# @param kwds: use keyword arguments corresponding to message field names
|
110
|
+
# to set specific fields.
|
111
|
+
#
|
112
|
+
|
113
|
+
# message fields cannot be None, assign default values for those that are
|
114
|
+
@header = Std_msgs::Header.new
|
115
|
+
@status_list = []
|
116
|
+
end
|
117
|
+
|
118
|
+
def _get_types
|
119
|
+
# internal API method
|
120
|
+
return @slot_types
|
121
|
+
end
|
122
|
+
|
123
|
+
def serialize(buff)
|
124
|
+
# serialize message into buffer
|
125
|
+
# @param buff: buffer
|
126
|
+
# @type buff: StringIO
|
127
|
+
begin
|
128
|
+
buff.write(@@struct_L3.pack(@header.seq, @header.stamp.secs, @header.stamp.nsecs))
|
129
|
+
_x = @header.frame_id
|
130
|
+
length = _x.length
|
131
|
+
buff.write([length, _x].pack("La#{length}"))
|
132
|
+
length = @status_list.length
|
133
|
+
buff.write(@@struct_L.pack(length))
|
134
|
+
for val1 in @status_list
|
135
|
+
_v21 = val1.goal_id
|
136
|
+
_v22 = _v21.stamp
|
137
|
+
_x = _v22
|
138
|
+
buff.write(@@struct_L2.pack(_x.secs, _x.nsecs))
|
139
|
+
_x = _v21.id
|
140
|
+
length = _x.length
|
141
|
+
buff.write([length, _x].pack("La#{length}"))
|
142
|
+
buff.write(@@struct_C.pack(val1.status))
|
143
|
+
_x = val1.text
|
144
|
+
length = _x.length
|
145
|
+
buff.write([length, _x].pack("La#{length}"))
|
146
|
+
end
|
147
|
+
rescue => exception
|
148
|
+
raise "some erro in serialize: #{exception}"
|
149
|
+
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
def deserialize(str)
|
154
|
+
# unpack serialized message in str into this message instance
|
155
|
+
# @param str: byte array of serialized message
|
156
|
+
# @type str: str
|
157
|
+
|
158
|
+
begin
|
159
|
+
if @header == nil
|
160
|
+
@header = Std_msgs::Header.new
|
161
|
+
end
|
162
|
+
end_point = 0
|
163
|
+
start = end_point
|
164
|
+
end_point += ROS::Struct::calc_size('L3')
|
165
|
+
(@header.seq, @header.stamp.secs, @header.stamp.nsecs,) = @@struct_L3.unpack(str[start..(end_point-1)])
|
166
|
+
start = end_point
|
167
|
+
end_point += 4
|
168
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
169
|
+
start = end_point
|
170
|
+
end_point += length
|
171
|
+
@header.frame_id = str[start..(end_point-1)]
|
172
|
+
start = end_point
|
173
|
+
end_point += 4
|
174
|
+
(length,) = @@struct_L.unpack(str[start..(end_point-1)])
|
175
|
+
@status_list = []
|
176
|
+
length.times do
|
177
|
+
val1 = Actionlib_msgs::GoalStatus.new
|
178
|
+
_v23 = val1.goal_id
|
179
|
+
_v24 = _v23.stamp
|
180
|
+
_x = _v24
|
181
|
+
start = end_point
|
182
|
+
end_point += ROS::Struct::calc_size('L2')
|
183
|
+
(_x.secs, _x.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
|
+
_v23.id = str[start..(end_point-1)]
|
190
|
+
start = end_point
|
191
|
+
end_point += ROS::Struct::calc_size('C')
|
192
|
+
(val1.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
|
+
val1.text = str[start..(end_point-1)]
|
199
|
+
@status_list.push(val1)
|
200
|
+
end
|
201
|
+
return self
|
202
|
+
rescue => exception
|
203
|
+
raise "message DeserializationError: #{exception}" #most likely buffer underfill
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end # end of class
|
207
|
+
end # end of module
|