|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
57 #ifndef YARP_ROSMSG_shape_msgs_SolidPrimitive_h
58 #define YARP_ROSMSG_shape_msgs_SolidPrimitive_h
73 static const std::uint8_t
BOX = 1;
74 static const std::uint8_t
SPHERE = 2;
76 static const std::uint8_t
CONE = 4;
79 static const std::uint8_t
BOX_X = 0;
80 static const std::uint8_t
BOX_Y = 1;
81 static const std::uint8_t
BOX_Z = 2;
159 for (
int i=0; i<len; i++) {
220 static constexpr
const char*
typeName =
"shape_msgs/SolidPrimitive";
223 static constexpr
const char*
typeChecksum =
"d8f8cbc74c5ff283fca29569ccefb45d";
227 # Define box, sphere, cylinder, cone \n\
228 # All shapes are defined to have their bounding boxes centered around 0,0,0.\n\
235 # The type of the shape\n\
239 # The dimensions of the shape\n\
240 float64[] dimensions\n\
242 # The meaning of the shape dimensions: each constant defines the index in the 'dimensions' array\n\
244 # For the BOX type, the X, Y, and Z dimensions are the length of the corresponding\n\
245 # sides of the box.\n\
251 # For the SPHERE type, only one component is used, and it gives the radius of\n\
253 uint8 SPHERE_RADIUS=0\n\
256 # For the CYLINDER and CONE types, the center line is oriented along\n\
257 # the Z axis. Therefore the CYLINDER_HEIGHT (CONE_HEIGHT) component\n\
258 # of dimensions gives the height of the cylinder (cone). The\n\
259 # CYLINDER_RADIUS (CONE_RADIUS) component of dimensions gives the\n\
260 # radius of the base of the cylinder (cone). Cone and cylinder\n\
261 # primitives are defined to be circular. The tip of the cone is\n\
262 # pointing up, along +Z axis.\n\
264 uint8 CYLINDER_HEIGHT=0\n\
265 uint8 CYLINDER_RADIUS=1\n\
267 uint8 CONE_HEIGHT=0\n\
268 uint8 CONE_RADIUS=1\n\
284 #endif // YARP_ROSMSG_shape_msgs_SolidPrimitive_h
bool readBottle(yarp::os::ConnectionReader &connection) override
bool writeBare(yarp::os::ConnectionWriter &connection) const override
static constexpr const char * typeName
virtual void appendFloat64(yarp::conf::float64_t data)=0
Send a representation of a 64-bit floating point number to the network connection.
virtual bool read(yarp::os::idl::WireReader &reader)
static const std::uint8_t SPHERE_RADIUS
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual void appendInt8(std::int8_t data)=0
Send a representation of a 8-bit integer to the network connection.
virtual bool isBareMode() const =0
Check if the connection is bare mode.
static const std::uint8_t BOX_Y
std::vector< yarp::conf::float64_t > dimensions
yarp::os::idl::BottleStyle< yarp::rosmsg::shape_msgs::SolidPrimitive > bottleStyle
static const std::uint8_t BOX
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
yarp::os::Type getType() const override
bool readBare(yarp::os::ConnectionReader &connection) override
static const std::uint8_t CONE
virtual yarp::conf::float64_t expectFloat64()=0
Read a 64-bit floating point number from the network connection.
virtual bool isError() const =0
static Type byName(const char *name)
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
static const std::uint8_t SPHERE
Type & addProperty(const char *key, const Value &val)
An interface for writing to a network connection.
virtual bool isError() const =0
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
yarp::os::idl::BareStyle< yarp::rosmsg::shape_msgs::SolidPrimitive > rosStyle
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.
#define BOTTLE_TAG_FLOAT64
static const std::uint8_t CYLINDER_RADIUS
static const std::uint8_t BOX_X
static const std::uint8_t CONE_RADIUS
static const std::uint8_t CYLINDER_HEIGHT
static const std::uint8_t CONE_HEIGHT
static const std::uint8_t BOX_Z
The main, catch-all namespace for YARP.
static constexpr const char * typeChecksum
static const std::uint8_t CYLINDER
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a 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.
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
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).
static constexpr const char * typeText
virtual bool write(const yarp::os::idl::WireWriter &writer) const