|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
17 #ifndef YARP_ROSMSG_geometry_msgs_Polygon_h
18 #define YARP_ROSMSG_geometry_msgs_Polygon_h
34 std::vector<yarp::rosmsg::geometry_msgs::Point32>
points;
52 for (
int i=0; i<len; i++) {
75 for (
int i=0; i<len; i++) {
95 for (
size_t i=0; i<
points.size(); i++) {
112 for (
size_t i=0; i<
points.size(); i++) {
135 static constexpr
const char*
typeName =
"geometry_msgs/Polygon";
138 static constexpr
const char*
typeChecksum =
"cd60a26494a087f577976f0329fa120e";
142 #A specification of a polygon where the first and last points are assumed to be connected\n\
145 ================================================================================\n\
146 MSG: geometry_msgs/Point32\n\
147 # This contains the position of a point in free space(with 32 bits of precision).\n\
148 # It is recommeded to use Point wherever possible instead of Point32. \n\
150 # This recommendation is to promote interoperability. \n\
152 # This message is designed to take up less space when sending\n\
153 # lots of points at once, as in the case of a PointCloud. \n\
173 #endif // YARP_ROSMSG_geometry_msgs_Polygon_h
static constexpr const char * typeText
bool writeBare(yarp::os::ConnectionWriter &connection) const override
virtual bool read(yarp::os::idl::WireReader &reader)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
bool readBare(yarp::os::ConnectionReader &connection) override
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
virtual bool isError() const =0
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
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::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.
yarp::os::idl::BottleStyle< yarp::rosmsg::geometry_msgs::Polygon > bottleStyle
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.
yarp::os::idl::BareStyle< yarp::rosmsg::geometry_msgs::Polygon > rosStyle
std::vector< yarp::rosmsg::geometry_msgs::Point32 > points
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.
static constexpr const char * typeChecksum
An interface for reading from a network connection.
The main, catch-all namespace for YARP.
static constexpr const char * typeName
bool readBottle(yarp::os::ConnectionReader &connection) override
A single value (typically within a Bottle).
virtual bool write(const yarp::os::idl::WireWriter &writer) const