|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
15 #ifndef YARP_ROSMSG_diagnostic_msgs_SelfTestReply_h
16 #define YARP_ROSMSG_diagnostic_msgs_SelfTestReply_h
34 std::vector<yarp::rosmsg::diagnostic_msgs::DiagnosticStatus>
status;
60 if (!connection.
expectBlock((
char*)
id.c_str(), len)) {
70 for (
int i=0; i<len; i++) {
101 for (
int i=0; i<len; i++) {
128 for (
size_t i=0; i<
status.size(); i++) {
154 for (
size_t i=0; i<
status.size(); i++) {
177 static constexpr
const char*
typeName =
"diagnostic_msgs/SelfTestReply";
180 static constexpr
const char*
typeChecksum =
"ac21b1bab7ab17546986536c22eb34e9";
185 ================================================================================\n\
186 MSG: diagnostic_msgs/DiagnosticStatus\n\
187 # This message holds the status of an individual component of the robot.\n\
190 # Possible levels of operations\n\
196 byte level # level of operation enumerated above \n\
197 string name # a description of the test/component reporting\n\
198 string message # a description of the status\n\
199 string hardware_id # a hardware unique string\n\
200 KeyValue[] values # an array of values associated with the status\n\
203 ================================================================================\n\
204 MSG: diagnostic_msgs/KeyValue\n\
205 string key # what to label this value when viewing\n\
206 string value # a value to track over time\n\
222 #endif // YARP_ROSMSG_diagnostic_msgs_SelfTestReply_h
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
bool readString(std::string &str, bool *is_vocab=nullptr)
yarp::os::idl::BottleStyle< yarp::rosmsg::diagnostic_msgs::SelfTestReply > bottleStyle
bool writeBare(yarp::os::ConnectionWriter &connection) const override
virtual bool read(yarp::os::idl::WireReader &reader)
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
std::vector< yarp::rosmsg::diagnostic_msgs::DiagnosticStatus > status
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
yarp::os::Type getType() const override
virtual bool isError() const =0
static Type byName(const char *name)
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
Type & addProperty(const char *key, const Value &val)
An interface for writing to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual bool isError() const =0
static constexpr const char * typeChecksum
yarp::os::idl::BareStyle< yarp::rosmsg::diagnostic_msgs::SelfTestReply > rosStyle
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
static constexpr const char * typeText
static constexpr const char * typeName
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.
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.
IDL-friendly connection reader.
An interface for reading from a network connection.
The main, catch-all namespace for YARP.
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 expectBlock(char *data, size_t len)=0
Read a block of data from the network connection.
A single value (typically within a Bottle).
bool readBottle(yarp::os::ConnectionReader &connection) override
bool readBare(yarp::os::ConnectionReader &connection) override
virtual bool write(const yarp::os::idl::WireWriter &writer) const