19 #ifndef YARP_ROSMSG_shape_msgs_Mesh_h
20 #define YARP_ROSMSG_shape_msgs_Mesh_h
37 std::vector<yarp::rosmsg::shape_msgs::MeshTriangle>
triangles;
38 std::vector<yarp::rosmsg::geometry_msgs::Point>
vertices;
60 for (
int i=0; i<len; i++) {
69 for (
int i=0; i<len; i++) {
92 for (
int i=0; i<len; i++) {
104 for (
int i=0; i<len; i++) {
124 for (
size_t i=0; i<
triangles.size(); i++) {
132 for (
size_t i=0; i<
vertices.size(); i++) {
149 for (
size_t i=0; i<
triangles.size(); i++) {
158 for (
size_t i=0; i<
vertices.size(); i++) {
181 static constexpr
const char*
typeName =
"shape_msgs/Mesh";
184 static constexpr
const char*
typeChecksum =
"1ffdae9486cd3316a121c578b47a85cc";
188 # Definition of a mesh\n\
190 # list of triangles; the index values refer to positions in vertices[]\n\
191 MeshTriangle[] triangles\n\
193 # the actual vertices that make up the mesh\n\
194 geometry_msgs/Point[] vertices\n\
196 ================================================================================\n\
197 MSG: shape_msgs/MeshTriangle\n\
198 # Definition of a triangle's vertices\n\
199 uint32[3] vertex_indices\n\
201 ================================================================================\n\
202 MSG: geometry_msgs/Point\n\
203 # 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.