23#ifndef YARP_ROSMSG_sensor_msgs_RelativeHumidity_h
24#define YARP_ROSMSG_sensor_msgs_RelativeHumidity_h
46 relative_humidity(0.0),
57 relative_humidity = 0.0;
66 if (!header.
read(connection)) {
88 if (!header.
read(connection)) {
104 return (connection.
isBareMode() ? readBare(connection)
105 : readBottle(connection));
111 if (!header.
write(connection)) {
130 if (!header.
write(connection)) {
149 return (connection.
isBareMode() ? writeBare(connection)
150 : writeBottle(connection));
159 static constexpr const char* typeName =
"sensor_msgs/RelativeHumidity";
162 static constexpr const char* typeChecksum =
"8730015b05955b7e992ce29a2678d90f";
165 static constexpr const char* typeText =
"\
166 # Single reading from a relative humidity sensor. Defines the ratio of partial\n\
167 # pressure of water vapor to the saturated vapor pressure at a temperature.\n\
169 Header header # timestamp of the measurement\n\
170 # frame_id is the location of the humidity sensor\n\
172 float64 relative_humidity # Expression of the relative humidity\n\
173 # from 0.0 to 1.0.\n\
174 # 0.0 is no partial pressure of water vapor\n\
175 # 1.0 represents partial pressure of saturation\n\
177 float64 variance # 0 is interpreted as variance unknown\n\
178================================================================================\n\
179MSG: std_msgs/Header\n\
180# Standard metadata for higher-level stamped data types.\n\
181# This is generally used to communicate timestamped data \n\
182# in a particular coordinate frame.\n\
184# sequence ID: consecutively increasing ID \n\
186#Two-integer timestamp that is expressed as:\n\
187# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
188# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
189# time-handling sugar is provided by the client library\n\
191#Frame this data is associated with\n\
#define BOTTLE_TAG_FLOAT64
An interface for reading from a network connection.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
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 yarp::conf::float64_t expectFloat64()=0
Read a 64-bit floating point number 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 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.
virtual void appendFloat64(yarp::conf::float64_t data)=0
Send a representation of a 64-bit floating point number 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.
yarp::conf::float64_t expectFloat64()
yarp::rosmsg::sensor_msgs::RelativeHumidity RelativeHumidity
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
The main, catch-all namespace for YARP.