22 #ifndef YARP_ROSMSG_shape_msgs_Mesh_h
23 #define YARP_ROSMSG_shape_msgs_Mesh_h
40 std::vector<yarp::rosmsg::shape_msgs::MeshTriangle>
triangles;
41 std::vector<yarp::rosmsg::geometry_msgs::Point>
vertices;
63 for (
int i=0; i<len; i++) {
72 for (
int i=0; i<len; i++) {
95 for (
int i=0; i<len; i++) {
107 for (
int i=0; i<len; i++) {
127 for (
size_t i=0; i<
triangles.size(); i++) {
135 for (
size_t i=0; i<
vertices.size(); i++) {
152 for (
size_t i=0; i<
triangles.size(); i++) {
161 for (
size_t i=0; i<
vertices.size(); i++) {
184 static constexpr
const char*
typeName =
"shape_msgs/Mesh";
187 static constexpr
const char*
typeChecksum =
"1ffdae9486cd3316a121c578b47a85cc";
191 # Definition of a mesh\n\
193 # list of triangles; the index values refer to positions in vertices[]\n\
194 MeshTriangle[] triangles\n\
196 # the actual vertices that make up the mesh\n\
197 geometry_msgs/Point[] vertices\n\
199 ================================================================================\n\
200 MSG: shape_msgs/MeshTriangle\n\
201 # Definition of a triangle's vertices\n\
202 uint32[3] vertex_indices\n\
204 ================================================================================\n\
205 MSG: geometry_msgs/Point\n\
206 # This contains the position of a point in free space\n\
An interface for reading from a 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 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 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::os::idl::BareStyle< yarp::rosmsg::shape_msgs::Mesh > rosStyle
yarp::os::idl::BottleStyle< yarp::rosmsg::shape_msgs::Mesh > bottleStyle
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readBare(yarp::os::ConnectionReader &connection) override
static constexpr const char * typeText
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
std::vector< yarp::rosmsg::geometry_msgs::Point > vertices
yarp::os::Type getType() const override
static constexpr const char * typeChecksum
bool readBottle(yarp::os::ConnectionReader &connection) override
static constexpr const char * typeName
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
bool writeBare(yarp::os::ConnectionWriter &connection) const override
std::vector< yarp::rosmsg::shape_msgs::MeshTriangle > triangles
The main, catch-all namespace for YARP.