16#ifndef YARP_ROSMSG_sensor_msgs_LaserEcho_h
17#define YARP_ROSMSG_sensor_msgs_LaserEcho_h
32 std::vector<yarp::conf::float32_t> echoes;
71 for (
int i=0; i<len; i++) {
81 return (connection.
isBareMode() ? readBare(connection)
82 : readBottle(connection));
89 if (echoes.size()>0) {
104 for (
size_t i=0; i<echoes.size(); i++) {
115 return (connection.
isBareMode() ? writeBare(connection)
116 : writeBottle(connection));
125 static constexpr const char* typeName =
"sensor_msgs/LaserEcho";
128 static constexpr const char* typeChecksum =
"8bc5ae449b200fba4d552b4225586696";
131 static constexpr const char* typeText =
"\
132# This message is a submessage of MultiEchoLaserScan and is not intended\n\
133# to be used separately.\n\
135float32[] echoes # Multiple values of ranges or intensities.\n\
136 # Each array represents data from the same angle increment.\n\
#define BOTTLE_TAG_FLOAT32
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 yarp::conf::float32_t expectFloat32()=0
Read a 32-bit floating point number from the network connection.
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 appendFloat32(yarp::conf::float32_t data)=0
Send a representation of a 32-bit floating point number to the network connection.
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.
yarp::rosmsg::sensor_msgs::LaserEcho LaserEcho
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.