17#ifndef YARP_ROSMSG_actionlib_msgs_GoalStatusArray_h
18#define YARP_ROSMSG_actionlib_msgs_GoalStatusArray_h
36 std::vector<yarp::rosmsg::actionlib_msgs::GoalStatus> status_list;
56 if (!header.
read(connection)) {
62 status_list.resize(len);
63 for (
int i=0; i<len; i++) {
64 if (!status_list[i].
read(connection)) {
81 if (!header.
read(connection)) {
90 status_list.resize(len);
91 for (
int i=0; i<len; i++) {
92 if (!status_list[i].
read(connection)) {
103 return (connection.
isBareMode() ? readBare(connection)
104 : readBottle(connection));
110 if (!header.
write(connection)) {
116 for (
size_t i=0; i<status_list.size(); i++) {
117 if (!status_list[i].
write(connection)) {
131 if (!header.
write(connection)) {
138 for (
size_t i=0; i<status_list.size(); i++) {
139 if (!status_list[i].
write(connection)) {
151 return (connection.
isBareMode() ? writeBare(connection)
152 : writeBottle(connection));
161 static constexpr const char* typeName =
"actionlib_msgs/GoalStatusArray";
164 static constexpr const char* typeChecksum =
"8b2b82f13216d0a8ea88bd3af735e619";
167 static constexpr const char* typeText =
"\
168# Stores the statuses for goals that are currently being tracked\n\
169# by an action server\n\
171GoalStatus[] status_list\n\
174================================================================================\n\
175MSG: std_msgs/Header\n\
176# Standard metadata for higher-level stamped data types.\n\
177# This is generally used to communicate timestamped data \n\
178# in a particular coordinate frame.\n\
180# sequence ID: consecutively increasing ID \n\
182#Two-integer timestamp that is expressed as:\n\
183# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
184# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
185# time-handling sugar is provided by the client library\n\
187#Frame this data is associated with\n\
192================================================================================\n\
193MSG: actionlib_msgs/GoalStatus\n\
196uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
197uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
198uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
199 # and has since completed its execution (Terminal State)\n\
200uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
201uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
202 # to some failure (Terminal State)\n\
203uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
204 # because the goal was unattainable or invalid (Terminal State)\n\
205uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
206 # and has not yet completed execution\n\
207uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
208 # but the action server has not yet confirmed that the goal is canceled\n\
209uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
210 # and was successfully cancelled (Terminal State)\n\
211uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
212 # sent over the wire by an action server\n\
214#Allow for the user to associate a string with GoalStatus for debugging\n\
218================================================================================\n\
219MSG: actionlib_msgs/GoalID\n\
220# The stamp should store the time at which this goal was requested.\n\
221# It is used by an action server when it tries to preempt all\n\
222# goals that were requested before a certain time\n\
225# The id provides a way to associate feedback and\n\
226# result message with specific goal requests. The id\n\
227# specified must be unique.\n\
An interface for reading from a network connection.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
virtual bool isError() const =0
An interface for writing to a network connection.
virtual bool isError() const =0
virtual bool isBareMode() const =0
Check if the connection is bare mode.
virtual bool convertTextMode()=0
Converts a standard description in binary into a textual description, if the connection is in text-mo...
virtual void appendInt32(std::int32_t data)=0
Send a representation of a 32-bit integer to the network connection.
static Type byName(const char *name)
Type & addProperty(const char *key, const Value &val)
A single value (typically within a Bottle).
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
virtual bool read(yarp::os::idl::WireReader &reader)
virtual bool write(const yarp::os::idl::WireWriter &writer) const
IDL-friendly connection reader.
yarp::rosmsg::actionlib_msgs::GoalStatusArray GoalStatusArray
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
The main, catch-all namespace for YARP.