|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
30 #ifndef YARP_ROSMSG_diagnostic_msgs_DiagnosticStatus_h
31 #define YARP_ROSMSG_diagnostic_msgs_DiagnosticStatus_h
47 static const std::uint8_t
OK = 0;
48 static const std::uint8_t
WARN = 1;
49 static const std::uint8_t
ERROR = 2;
50 static const std::uint8_t
STALE = 3;
55 std::vector<yarp::rosmsg::diagnostic_msgs::KeyValue>
values;
121 for (
int i=0; i<len; i++) {
162 for (
int i=0; i<len; i++) {
197 for (
size_t i=0; i<
values.size(); i++) {
233 for (
size_t i=0; i<
values.size(); i++) {
256 static constexpr
const char*
typeName =
"diagnostic_msgs/DiagnosticStatus";
259 static constexpr
const char*
typeChecksum =
"d0ce08bc6e5ba34c7754f563a9cabaf1";
263 # This message holds the status of an individual component of the robot.\n\
266 # Possible levels of operations\n\
272 byte level # level of operation enumerated above \n\
273 string name # a description of the test/component reporting\n\
274 string message # a description of the status\n\
275 string hardware_id # a hardware unique string\n\
276 KeyValue[] values # an array of values associated with the status\n\
279 ================================================================================\n\
280 MSG: diagnostic_msgs/KeyValue\n\
281 string key # what to label this value when viewing\n\
282 string value # a value to track over time\n\
298 #endif // YARP_ROSMSG_diagnostic_msgs_DiagnosticStatus_h
static const std::uint8_t ERROR
static const std::uint8_t WARN
bool readString(std::string &str, bool *is_vocab=nullptr)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
virtual bool read(yarp::os::idl::WireReader &reader)
bool readBottle(yarp::os::ConnectionReader &connection) override
virtual void appendInt8(std::int8_t data)=0
Send a representation of a 8-bit integer to the network connection.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
#define BOTTLE_TAG_STRING
yarp::os::idl::BareStyle< yarp::rosmsg::diagnostic_msgs::DiagnosticStatus > rosStyle
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
static const std::uint8_t STALE
virtual bool isError() const =0
static Type byName(const char *name)
bool readBare(yarp::os::ConnectionReader &connection) override
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
Type & addProperty(const char *key, const Value &val)
static constexpr const char * typeText
An interface for writing to a network connection.
virtual bool isError() const =0
std::vector< yarp::rosmsg::diagnostic_msgs::KeyValue > values
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
static constexpr const char * typeName
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.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
IDL-friendly connection reader.
An interface for reading from a network connection.
static const std::uint8_t OK
static constexpr const char * typeChecksum
The main, catch-all namespace for YARP.
yarp::os::idl::BottleStyle< yarp::rosmsg::diagnostic_msgs::DiagnosticStatus > bottleStyle
virtual void appendExternalBlock(const char *data, size_t len)=0
Send a block of data to the network connection, without making a copy.
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
virtual bool expectBlock(char *data, size_t len)=0
Read a block of data from the network connection.
A single value (typically within a Bottle).
yarp::os::Type getType() const override
virtual bool write(const yarp::os::idl::WireWriter &writer) const