19#ifndef YARP_ROSMSG_sensor_msgs_TimeReference_h
20#define YARP_ROSMSG_sensor_msgs_TimeReference_h
63 if (!header.
read(connection)) {
68 if (!time_ref.
read(connection)) {
75 if (!connection.
expectBlock((
char*)source.c_str(), len)) {
91 if (!header.
read(connection)) {
96 if (!time_ref.
read(connection)) {
111 return (connection.
isBareMode() ? readBare(connection)
112 : readBottle(connection));
118 if (!header.
write(connection)) {
123 if (!time_ref.
write(connection)) {
140 if (!header.
write(connection)) {
145 if (!time_ref.
write(connection)) {
161 return (connection.
isBareMode() ? writeBare(connection)
162 : writeBottle(connection));
171 static constexpr const char* typeName =
"sensor_msgs/TimeReference";
174 static constexpr const char* typeChecksum =
"fded64a0265108ba86c3d38fb11c0c16";
177 static constexpr const char* typeText =
"\
178# Measurement from an external time source not actively synchronized with the system clock.\n\
180Header header # stamp is system time for which measurement was valid\n\
181 # frame_id is not used \n\
183time time_ref # corresponding time from this external source\n\
184string source # (optional) name of time source\n\
186================================================================================\n\
187MSG: std_msgs/Header\n\
188# Standard metadata for higher-level stamped data types.\n\
189# This is generally used to communicate timestamped data \n\
190# in a particular coordinate frame.\n\
192# sequence ID: consecutively increasing ID \n\
194#Two-integer timestamp that is expressed as:\n\
195# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
196# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
197# time-handling sugar is provided by the client library\n\
199#Frame this data is associated with\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
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 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)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::rosmsg::sensor_msgs::TimeReference TimeReference
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.