27 #ifndef YARP_ROSMSG_diagnostic_msgs_DiagnosticStatus_h
28 #define YARP_ROSMSG_diagnostic_msgs_DiagnosticStatus_h
44 static const std::uint8_t
OK = 0;
45 static const std::uint8_t
WARN = 1;
46 static const std::uint8_t
ERROR = 2;
47 static const std::uint8_t
STALE = 3;
52 std::vector<yarp::rosmsg::diagnostic_msgs::KeyValue>
values;
118 for (
int i=0; i<len; i++) {
159 for (
int i=0; i<len; i++) {
194 for (
size_t i=0; i<
values.size(); i++) {
230 for (
size_t i=0; i<
values.size(); i++) {
253 static constexpr
const char*
typeName =
"diagnostic_msgs/DiagnosticStatus";
256 static constexpr
const char*
typeChecksum =
"d0ce08bc6e5ba34c7754f563a9cabaf1";
260 # This message holds the status of an individual component of the robot.\n\
263 # Possible levels of operations\n\
269 byte level # level of operation enumerated above \n\
270 string name # a description of the test/component reporting\n\
271 string message # a description of the status\n\
272 string hardware_id # a hardware unique string\n\
273 KeyValue[] values # an array of values associated with the status\n\
276 ================================================================================\n\
277 MSG: diagnostic_msgs/KeyValue\n\
278 string key # what to label this value when viewing\n\
279 string value # a value to track over time\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)
yarp::os::idl::BareStyle< yarp::rosmsg::diagnostic_msgs::DiagnosticStatus > rosStyle
bool readBottle(yarp::os::ConnectionReader &connection) override
yarp::os::idl::BottleStyle< yarp::rosmsg::diagnostic_msgs::DiagnosticStatus > bottleStyle
static const std::uint8_t OK
bool readBare(yarp::os::ConnectionReader &connection) override
static constexpr const char * typeText
bool writeBare(yarp::os::ConnectionWriter &connection) const override
yarp::os::Type getType() const override
static const std::uint8_t ERROR
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
static constexpr const char * typeName
std::vector< yarp::rosmsg::diagnostic_msgs::KeyValue > values
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * typeChecksum
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static const std::uint8_t STALE
static const std::uint8_t WARN
The main, catch-all namespace for YARP.