|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
39 #ifndef YARP_ROSMSG_sensor_msgs_ChannelFloat32_h
40 #define YARP_ROSMSG_sensor_msgs_ChannelFloat32_h
56 std::vector<yarp::conf::float32_t>
values;
111 for (
int i=0; i<len; i++) {
153 for (
size_t i=0; i<
values.size(); i++) {
174 static constexpr
const char*
typeName =
"sensor_msgs/ChannelFloat32";
177 static constexpr
const char*
typeChecksum =
"3d40139cdd33dfedcb71ffeeeb42ae7f";
181 # This message is used by the PointCloud message to hold optional data\n\
182 # associated with each point in the cloud. The length of the values\n\
183 # array should be the same as the length of the points array in the\n\
184 # PointCloud, and each value should be associated with the corresponding\n\
187 # Channel names in existing practice include:\n\
188 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
189 # This is opposite to usual conventions but remains for\n\
190 # historical reasons. The newer PointCloud2 message has no\n\
192 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
193 # (R,G,B) values packed into the least significant 24 bits,\n\
195 # \"intensity\" - laser or pixel intensity.\n\
198 # The channel name should give semantics of the channel (e.g.\n\
199 # \"intensity\" instead of \"value\").\n\
202 # The values array should be 1-1 with the elements of the associated\n\
220 #endif // YARP_ROSMSG_sensor_msgs_ChannelFloat32_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 readString(std::string &str, bool *is_vocab=nullptr)
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static constexpr const char * typeChecksum
virtual bool read(yarp::os::idl::WireReader &reader)
virtual bool isBareMode() const =0
Check if the connection is bare mode.
#define BOTTLE_TAG_STRING
bool writeBare(yarp::os::ConnectionWriter &connection) const override
yarp::os::idl::BareStyle< yarp::rosmsg::sensor_msgs::ChannelFloat32 > rosStyle
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
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.
virtual bool isError() const =0
yarp::os::idl::BottleStyle< yarp::rosmsg::sensor_msgs::ChannelFloat32 > bottleStyle
yarp::os::Type getType() const 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.
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.
bool readBare(yarp::os::ConnectionReader &connection) override
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 > values
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 expectBlock(char *data, size_t len)=0
Read a block of data from the network connection.
bool readBottle(yarp::os::ConnectionReader &connection) override
A single value (typically within a Bottle).
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static constexpr const char * typeName
static constexpr const char * typeText
virtual bool write(const yarp::os::idl::WireWriter &writer) const