|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
19 #ifndef YARP_ROSMSG_sensor_msgs_LaserEcho_h
20 #define YARP_ROSMSG_sensor_msgs_LaserEcho_h
35 std::vector<yarp::conf::float32_t>
echoes;
74 for (
int i=0; i<len; i++) {
107 for (
size_t i=0; i<
echoes.size(); i++) {
128 static constexpr
const char*
typeName =
"sensor_msgs/LaserEcho";
131 static constexpr
const char*
typeChecksum =
"8bc5ae449b200fba4d552b4225586696";
135 # This message is a submessage of MultiEchoLaserScan and is not intended\n\
136 # to be used separately.\n\
138 float32[] echoes # Multiple values of ranges or intensities.\n\
139 # Each array represents data from the same angle increment.\n\
155 #endif // YARP_ROSMSG_sensor_msgs_LaserEcho_h
virtual void appendFloat32(yarp::conf::float32_t data)=0
Send a representation of a 32-bit floating point number to the network connection.
bool readBare(yarp::os::ConnectionReader &connection) override
virtual bool read(yarp::os::idl::WireReader &reader)
static constexpr const char * typeName
virtual bool isBareMode() const =0
Check if the connection is bare mode.
static constexpr const char * typeChecksum
virtual bool isError() const =0
#define BOTTLE_TAG_FLOAT32
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)
An interface for writing to a network connection.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
static constexpr const char * typeText
virtual bool isError() const =0
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
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.
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.
yarp::os::Type getType() const override
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
The main, catch-all namespace for YARP.
virtual yarp::conf::float32_t expectFloat32()=0
Read a 32-bit floating point number from the network connection.
std::vector< yarp::conf::float32_t > echoes
yarp::os::idl::BottleStyle< yarp::rosmsg::sensor_msgs::LaserEcho > bottleStyle
virtual void appendExternalBlock(const char *data, size_t len)=0
Send a block of data to the network connection, without making a copy.
yarp::os::idl::BareStyle< yarp::rosmsg::sensor_msgs::LaserEcho > rosStyle
virtual bool expectBlock(char *data, size_t len)=0
Read a block of data from the network connection.
A single value (typically within a Bottle).
bool readBottle(yarp::os::ConnectionReader &connection) override
virtual bool write(const yarp::os::idl::WireWriter &writer) const