14 #ifndef YARP_ROSMSG_diagnostic_msgs_DiagnosticArray_h
15 #define YARP_ROSMSG_diagnostic_msgs_DiagnosticArray_h
33 std::vector<yarp::rosmsg::diagnostic_msgs::DiagnosticStatus>
status;
60 for (
int i=0; i<len; i++) {
88 for (
int i=0; i<len; i++) {
113 for (
size_t i=0; i<
status.size(); i++) {
135 for (
size_t i=0; i<
status.size(); i++) {
158 static constexpr
const char*
typeName =
"diagnostic_msgs/DiagnosticArray";
161 static constexpr
const char*
typeChecksum =
"60810da900de1dd6ddd437c3503511da";
165 # This message is used to send diagnostic information about the state of the robot\n\
166 Header header #for timestamp\n\
167 DiagnosticStatus[] status # an array of components being reported on\n\
168 ================================================================================\n\
169 MSG: std_msgs/Header\n\
170 # Standard metadata for higher-level stamped data types.\n\
171 # This is generally used to communicate timestamped data \n\
172 # in a particular coordinate frame.\n\
174 # sequence ID: consecutively increasing ID \n\
176 #Two-integer timestamp that is expressed as:\n\
177 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
178 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
179 # time-handling sugar is provided by the client library\n\
181 #Frame this data is associated with\n\
186 ================================================================================\n\
187 MSG: diagnostic_msgs/DiagnosticStatus\n\
188 # This message holds the status of an individual component of the robot.\n\
191 # Possible levels of operations\n\
197 byte level # level of operation enumerated above \n\
198 string name # a description of the test/component reporting\n\
199 string message # a description of the status\n\
200 string hardware_id # a hardware unique string\n\
201 KeyValue[] values # an array of values associated with the status\n\
204 ================================================================================\n\
205 MSG: diagnostic_msgs/KeyValue\n\
206 string key # what to label this value when viewing\n\
207 string value # a value to track over time\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.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
std::vector< yarp::rosmsg::diagnostic_msgs::DiagnosticStatus > status
yarp::rosmsg::std_msgs::Header header
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
static constexpr const char * typeName
bool readBare(yarp::os::ConnectionReader &connection) override
static constexpr const char * typeChecksum
static constexpr const char * typeText
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
yarp::os::idl::BottleStyle< yarp::rosmsg::diagnostic_msgs::DiagnosticArray > bottleStyle
bool readBottle(yarp::os::ConnectionReader &connection) override
yarp::os::idl::BareStyle< yarp::rosmsg::diagnostic_msgs::DiagnosticArray > rosStyle
yarp::os::Type getType() const override
The main, catch-all namespace for YARP.