|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
59 #ifndef YARP_ROSMSG_visualization_msgs_Marker_h
60 #define YARP_ROSMSG_visualization_msgs_Marker_h
81 static const std::uint8_t
ARROW = 0;
82 static const std::uint8_t
CUBE = 1;
83 static const std::uint8_t
SPHERE = 2;
89 static const std::uint8_t
POINTS = 8;
93 static const std::uint8_t
ADD = 0;
94 static const std::uint8_t
MODIFY = 0;
95 static const std::uint8_t
DELETE = 2;
107 std::vector<yarp::rosmsg::geometry_msgs::Point>
points;
108 std::vector<yarp::rosmsg::std_msgs::ColorRGBA>
colors;
263 for (
int i=0; i<len; i++) {
272 for (
int i=0; i<len; i++) {
356 for (
int i=0; i<len; i++) {
368 for (
int i=0; i<len; i++) {
442 for (
size_t i=0; i<
points.size(); i++) {
450 for (
size_t i=0; i<
colors.size(); i++) {
524 for (
size_t i=0; i<
points.size(); i++) {
533 for (
size_t i=0; i<
colors.size(); i++) {
570 static constexpr
const char*
typeName =
"visualization_msgs/Marker";
573 static constexpr
const char*
typeChecksum =
"4048c9de2a16f4ae8e0538085ebf1b97";
577 # See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz\n\
583 uint8 LINE_STRIP=4\n\
586 uint8 SPHERE_LIST=7\n\
588 uint8 TEXT_VIEW_FACING=9\n\
589 uint8 MESH_RESOURCE=10\n\
590 uint8 TRIANGLE_LIST=11\n\
597 Header header # header for time/frame information\n\
598 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
599 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
600 int32 type # Type of object\n\
601 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
602 geometry_msgs/Pose pose # Pose of the object\n\
603 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
604 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
605 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
606 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
608 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
609 geometry_msgs/Point[] points\n\
610 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
611 #number of colors must either be 0 or equal to the number of points\n\
612 #NOTE: alpha is not yet used\n\
613 std_msgs/ColorRGBA[] colors\n\
615 # NOTE: only used for text markers\n\
618 # NOTE: only used for MESH_RESOURCE markers\n\
619 string mesh_resource\n\
620 bool mesh_use_embedded_materials\n\
622 ================================================================================\n\
623 MSG: std_msgs/Header\n\
624 # Standard metadata for higher-level stamped data types.\n\
625 # This is generally used to communicate timestamped data \n\
626 # in a particular coordinate frame.\n\
628 # sequence ID: consecutively increasing ID \n\
630 #Two-integer timestamp that is expressed as:\n\
631 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
632 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
633 # time-handling sugar is provided by the client library\n\
635 #Frame this data is associated with\n\
640 ================================================================================\n\
641 MSG: geometry_msgs/Pose\n\
642 # A representation of pose in free space, composed of position and orientation. \n\
644 Quaternion orientation\n\
646 ================================================================================\n\
647 MSG: geometry_msgs/Point\n\
648 # This contains the position of a point in free space\n\
653 ================================================================================\n\
654 MSG: geometry_msgs/Quaternion\n\
655 # This represents an orientation in free space in quaternion form.\n\
662 ================================================================================\n\
663 MSG: geometry_msgs/Vector3\n\
664 # This represents a vector in free space. \n\
665 # It is only meant to represent a direction. Therefore, it does not\n\
666 # make sense to apply a translation to it (e.g., when applying a \n\
667 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
668 # rotation). If you want your data to be translatable too, use the\n\
669 # geometry_msgs/Point message instead.\n\
674 ================================================================================\n\
675 MSG: std_msgs/ColorRGBA\n\
695 #endif // YARP_ROSMSG_visualization_msgs_Marker_h
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::os::Type getType() const override
bool readString(std::string &str, bool *is_vocab=nullptr)
virtual void appendBlock(const char *data, size_t len)=0
Send a block of data to the network connection.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
yarp::rosmsg::std_msgs::ColorRGBA color
static constexpr const char * typeName
yarp::rosmsg::geometry_msgs::Vector3 scale
virtual bool read(yarp::os::idl::WireReader &reader)
yarp::rosmsg::geometry_msgs::Pose pose
bool readBare(yarp::os::ConnectionReader &connection) override
virtual void appendInt8(std::int8_t data)=0
Send a representation of a 8-bit integer to the network connection.
static const std::uint8_t LINE_STRIP
virtual bool isBareMode() const =0
Check if the connection is bare mode.
#define BOTTLE_TAG_STRING
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static const std::uint8_t MESH_RESOURCE
static const std::uint8_t CYLINDER
yarp::rosmsg::TickDuration lifetime
static const std::uint8_t SPHERE
bool readBottle(yarp::os::ConnectionReader &connection) override
static const std::uint8_t DELETE
static const std::uint8_t SPHERE_LIST
virtual bool isError() const =0
static const std::uint8_t DELETEALL
bool mesh_use_embedded_materials
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)
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::Marker > bottleStyle
virtual bool isError() const =0
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::Marker > rosStyle
static constexpr const char * typeText
static const std::uint8_t MODIFY
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
std::string mesh_resource
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
static const std::uint8_t ADD
virtual bool isBareMode() const =0
Check if the connection is bare mode.
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
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.
static const std::uint8_t LINE_LIST
std::int32_t expectInt32()
static const std::uint8_t CUBE_LIST
static constexpr const char * typeChecksum
static const std::uint8_t CUBE
The main, catch-all namespace for YARP.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
std::vector< yarp::rosmsg::geometry_msgs::Point > points
static const std::uint8_t TEXT_VIEW_FACING
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.
A single value (typically within a Bottle).
std::vector< yarp::rosmsg::std_msgs::ColorRGBA > colors
static const std::uint8_t POINTS
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
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 read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static const std::uint8_t TRIANGLE_LIST
static const std::uint8_t ARROW
virtual bool write(const yarp::os::idl::WireWriter &writer) const