35#ifndef YARP_ROSMSG_actionlib_msgs_GoalStatus_h
36#define YARP_ROSMSG_actionlib_msgs_GoalStatus_h
54 static const std::uint8_t PENDING = 0;
55 static const std::uint8_t ACTIVE = 1;
56 static const std::uint8_t PREEMPTED = 2;
57 static const std::uint8_t SUCCEEDED = 3;
58 static const std::uint8_t ABORTED = 4;
59 static const std::uint8_t REJECTED = 5;
60 static const std::uint8_t PREEMPTING = 6;
61 static const std::uint8_t RECALLING = 7;
62 static const std::uint8_t RECALLED = 8;
63 static const std::uint8_t LOST = 9;
108 if (!goal_id.
read(connection)) {
118 if (!connection.
expectBlock((
char*)text.c_str(), len)) {
134 if (!goal_id.
read(connection)) {
152 return (connection.
isBareMode() ? readBare(connection)
153 : readBottle(connection));
159 if (!goal_id.
write(connection)) {
179 if (!goal_id.
write(connection)) {
199 return (connection.
isBareMode() ? writeBare(connection)
200 : writeBottle(connection));
209 static constexpr const char* typeName =
"actionlib_msgs/GoalStatus";
212 static constexpr const char* typeChecksum =
"d388f9b87b3c471f784434d671988d4a";
215 static constexpr const char* typeText =
"\
218uint8 PENDING = 0 # The goal has yet to be processed by the action server\n\
219uint8 ACTIVE = 1 # The goal is currently being processed by the action server\n\
220uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing\n\
221 # and has since completed its execution (Terminal State)\n\
222uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)\n\
223uint8 ABORTED = 4 # The goal was aborted during execution by the action server due\n\
224 # to some failure (Terminal State)\n\
225uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,\n\
226 # because the goal was unattainable or invalid (Terminal State)\n\
227uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing\n\
228 # and has not yet completed execution\n\
229uint8 RECALLING = 7 # The goal received a cancel request before it started executing,\n\
230 # but the action server has not yet confirmed that the goal is canceled\n\
231uint8 RECALLED = 8 # The goal received a cancel request before it started executing\n\
232 # and was successfully cancelled (Terminal State)\n\
233uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be\n\
234 # sent over the wire by an action server\n\
236#Allow for the user to associate a string with GoalStatus for debugging\n\
240================================================================================\n\
241MSG: actionlib_msgs/GoalID\n\
242# The stamp should store the time at which this goal was requested.\n\
243# It is used by an action server when it tries to preempt all\n\
244# goals that were requested before a certain time\n\
247# The id provides a way to associate feedback and\n\
248# result message with specific goal requests. The id\n\
249# specified must be unique.\n\
#define BOTTLE_TAG_STRING
An interface for reading from a network connection.
virtual bool expectBlock(char *data, size_t len)=0
Read a block of data from the 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
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
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 void appendInt8(std::int8_t data)=0
Send a representation of a 8-bit integer to the network connection.
virtual void appendExternalBlock(const char *data, size_t len)=0
Send a block of data to the network connection, without making a copy.
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.
bool readString(std::string &str, bool *is_vocab=nullptr)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::rosmsg::actionlib_msgs::GoalStatus GoalStatus
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.