|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
17 #ifndef YARP_ROSMSG_diagnostic_msgs_DiagnosticArray_h
18 #define YARP_ROSMSG_diagnostic_msgs_DiagnosticArray_h
36 std::vector<yarp::rosmsg::diagnostic_msgs::DiagnosticStatus>
status;
63 for (
int i=0; i<len; i++) {
91 for (
int i=0; i<len; i++) {
116 for (
size_t i=0; i<
status.size(); i++) {
138 for (
size_t i=0; i<
status.size(); i++) {
161 static constexpr
const char*
typeName =
"diagnostic_msgs/DiagnosticArray";
164 static constexpr
const char*
typeChecksum =
"60810da900de1dd6ddd437c3503511da";
168 # This message is used to send diagnostic information about the state of the robot\n\
169 Header header #for timestamp\n\
170 DiagnosticStatus[] status # an array of components being reported on\n\
171 ================================================================================\n\
172 MSG: std_msgs/Header\n\
173 # Standard metadata for higher-level stamped data types.\n\
174 # This is generally used to communicate timestamped data \n\
175 # in a particular coordinate frame.\n\
177 # sequence ID: consecutively increasing ID \n\
179 #Two-integer timestamp that is expressed as:\n\
180 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
181 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
182 # time-handling sugar is provided by the client library\n\
184 #Frame this data is associated with\n\
189 ================================================================================\n\
190 MSG: diagnostic_msgs/DiagnosticStatus\n\
191 # This message holds the status of an individual component of the robot.\n\
194 # Possible levels of operations\n\
200 byte level # level of operation enumerated above \n\
201 string name # a description of the test/component reporting\n\
202 string message # a description of the status\n\
203 string hardware_id # a hardware unique string\n\
204 KeyValue[] values # an array of values associated with the status\n\
207 ================================================================================\n\
208 MSG: diagnostic_msgs/KeyValue\n\
209 string key # what to label this value when viewing\n\
210 string value # a value to track over time\n\
226 #endif // YARP_ROSMSG_diagnostic_msgs_DiagnosticArray_h
yarp::rosmsg::std_msgs::Header header
bool writeBare(yarp::os::ConnectionWriter &connection) const override
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
virtual bool read(yarp::os::idl::WireReader &reader)
virtual bool isBareMode() const =0
Check if the connection is bare mode.
bool readBare(yarp::os::ConnectionReader &connection) override
virtual bool isError() const =0
yarp::os::idl::BottleStyle< yarp::rosmsg::diagnostic_msgs::DiagnosticArray > bottleStyle
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)
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
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
bool readBottle(yarp::os::ConnectionReader &connection) override
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.
std::vector< yarp::rosmsg::diagnostic_msgs::DiagnosticStatus > status
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.
static constexpr const char * typeName
yarp::os::Type getType() const override
The main, catch-all namespace for YARP.
static constexpr const char * typeChecksum
A single value (typically within a Bottle).
static constexpr const char * typeText
yarp::os::idl::BareStyle< yarp::rosmsg::diagnostic_msgs::DiagnosticArray > rosStyle
virtual bool write(const yarp::os::idl::WireWriter &writer) const