|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
38 #ifndef YARP_ROSMSG_visualization_msgs_ImageMarker_h
39 #define YARP_ROSMSG_visualization_msgs_ImageMarker_h
58 static const std::uint8_t
CIRCLE = 0;
62 static const std::uint8_t
POINTS = 4;
63 static const std::uint8_t
ADD = 0;
64 static const std::uint8_t
REMOVE = 1;
76 std::vector<yarp::rosmsg::geometry_msgs::Point>
points;
204 for (
int i=0; i<len; i++) {
213 for (
int i=0; i<len; i++) {
281 for (
int i=0; i<len; i++) {
293 for (
int i=0; i<len; i++) {
357 for (
size_t i=0; i<
points.size(); i++) {
432 for (
size_t i=0; i<
points.size(); i++) {
464 static constexpr
const char*
typeName =
"visualization_msgs/ImageMarker";
467 static constexpr
const char*
typeChecksum =
"1de93c67ec8858b831025a08fbf1b35c";
472 uint8 LINE_STRIP=1\n\
481 string ns # namespace, used with id to form a unique id\n\
482 int32 id # unique id within the namespace\n\
483 int32 type # CIRCLE/LINE_STRIP/etc.\n\
484 int32 action # ADD/REMOVE\n\
485 geometry_msgs/Point position # 2D, in pixel-coords\n\
486 float32 scale # the diameter for a circle, etc.\n\
487 std_msgs/ColorRGBA outline_color\n\
488 uint8 filled # whether to fill in the shape with color\n\
489 std_msgs/ColorRGBA fill_color # color [0.0-1.0]\n\
490 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
493 geometry_msgs/Point[] points # used for LINE_STRIP/LINE_LIST/POINTS/etc., 2D in pixel coords\n\
494 std_msgs/ColorRGBA[] outline_colors # a color for each line, point, etc.\n\
495 ================================================================================\n\
496 MSG: std_msgs/Header\n\
497 # Standard metadata for higher-level stamped data types.\n\
498 # This is generally used to communicate timestamped data \n\
499 # in a particular coordinate frame.\n\
501 # sequence ID: consecutively increasing ID \n\
503 #Two-integer timestamp that is expressed as:\n\
504 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
505 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
506 # time-handling sugar is provided by the client library\n\
508 #Frame this data is associated with\n\
513 ================================================================================\n\
514 MSG: geometry_msgs/Point\n\
515 # This contains the position of a point in free space\n\
520 ================================================================================\n\
521 MSG: std_msgs/ColorRGBA\n\
541 #endif // YARP_ROSMSG_visualization_msgs_ImageMarker_h
virtual void appendFloat32(yarp::conf::float32_t data)=0
Send a representation of a 32-bit floating point number to the network connection.
std::vector< yarp::rosmsg::geometry_msgs::Point > points
bool readString(std::string &str, bool *is_vocab=nullptr)
yarp::rosmsg::TickDuration lifetime
static const std::uint8_t LINE_STRIP
yarp::rosmsg::std_msgs::ColorRGBA outline_color
yarp::conf::float32_t expectFloat32()
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
virtual bool read(yarp::os::idl::WireReader &reader)
yarp::rosmsg::geometry_msgs::Point position
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.
std::vector< yarp::rosmsg::std_msgs::ColorRGBA > outline_colors
#define BOTTLE_TAG_STRING
static constexpr const char * typeText
bool readBottle(yarp::os::ConnectionReader &connection) override
yarp::conf::float32_t scale
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
static constexpr const char * typeName
static const std::uint8_t CIRCLE
bool readBare(yarp::os::ConnectionReader &connection) 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)
static const std::uint8_t POINTS
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
An interface for writing to a network connection.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::ImageMarker > bottleStyle
yarp::os::Type getType() const override
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.
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.
static const std::uint8_t POLYGON
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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
std::int32_t expectInt32()
static const std::uint8_t ADD
static const std::uint8_t LINE_LIST
The main, catch-all namespace for YARP.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual yarp::conf::float32_t expectFloat32()=0
Read a 32-bit floating point number from the network connection.
static const std::uint8_t REMOVE
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::ImageMarker > rosStyle
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.
static constexpr const char * typeChecksum
yarp::rosmsg::std_msgs::ColorRGBA fill_color
A single value (typically within a Bottle).
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::rosmsg::std_msgs::Header header
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual bool write(const yarp::os::idl::WireWriter &writer) const