|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
92 #ifndef YARP_ROSMSG_visualization_msgs_InteractiveMarkerControl_h
93 #define YARP_ROSMSG_visualization_msgs_InteractiveMarkerControl_h
113 static const std::uint8_t
FIXED = 1;
116 static const std::uint8_t
NONE = 0;
117 static const std::uint8_t
MENU = 1;
128 std::vector<yarp::rosmsg::visualization_msgs::Marker>
markers;
225 for (
int i=0; i<len; i++) {
279 for (
int i=0; i<len; i++) {
325 for (
size_t i=0; i<
markers.size(); i++) {
371 for (
size_t i=0; i<
markers.size(); i++) {
403 static constexpr
const char*
typeName =
"visualization_msgs/InteractiveMarkerControl";
406 static constexpr
const char*
typeChecksum =
"b3c81e785788195d1840b86c28da1aac";
410 # Represents a control that is to be displayed together with an interactive marker\n\
412 # Identifying string for this control.\n\
413 # You need to assign a unique value to this to receive feedback from the GUI\n\
414 # on what actions the user performs on this control (e.g. a button click).\n\
418 # Defines the local coordinate frame (relative to the pose of the parent\n\
419 # interactive marker) in which is being rotated and translated.\n\
420 # Default: Identity\n\
421 geometry_msgs/Quaternion orientation\n\
424 # Orientation mode: controls how orientation changes.\n\
425 # INHERIT: Follow orientation of interactive marker\n\
426 # FIXED: Keep orientation fixed at initial state\n\
427 # VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).\n\
428 uint8 INHERIT = 0 \n\
430 uint8 VIEW_FACING = 2\n\
432 uint8 orientation_mode\n\
434 # Interaction mode for this control\n\
436 # NONE: This control is only meant for visualization; no context menu.\n\
437 # MENU: Like NONE, but right-click menu is active.\n\
438 # BUTTON: Element can be left-clicked.\n\
439 # MOVE_AXIS: Translate along local x-axis.\n\
440 # MOVE_PLANE: Translate in local y-z plane.\n\
441 # ROTATE_AXIS: Rotate around local x-axis.\n\
442 # MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.\n\
446 uint8 MOVE_AXIS = 3 \n\
447 uint8 MOVE_PLANE = 4\n\
448 uint8 ROTATE_AXIS = 5\n\
449 uint8 MOVE_ROTATE = 6\n\
450 # \"3D\" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.\n\
451 # MOVE_3D: Translate freely in 3D space.\n\
452 # ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.\n\
453 # MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.\n\
455 uint8 ROTATE_3D = 8\n\
456 uint8 MOVE_ROTATE_3D = 9\n\
458 uint8 interaction_mode\n\
461 # If true, the contained markers will also be visible\n\
462 # when the gui is not in interactive mode.\n\
463 bool always_visible\n\
466 # Markers to be displayed as custom visual representation.\n\
467 # Leave this empty to use the default control handles.\n\
470 # - The markers can be defined in an arbitrary coordinate frame,\n\
471 # but will be transformed into the local frame of the interactive marker.\n\
472 # - If the header of a marker is empty, its pose will be interpreted as \n\
473 # relative to the pose of the parent interactive marker.\n\
477 # In VIEW_FACING mode, set this to true if you don't want the markers\n\
478 # to be aligned with the camera view point. The markers will show up\n\
479 # as in INHERIT mode.\n\
480 bool independent_marker_orientation\n\
483 # Short description (< 40 characters) of what this control does,\n\
484 # e.g. \"Move the robot\". \n\
485 # Default: A generic description based on the interaction mode\n\
486 string description\n\
488 ================================================================================\n\
489 MSG: geometry_msgs/Quaternion\n\
490 # This represents an orientation in free space in quaternion form.\n\
497 ================================================================================\n\
498 MSG: visualization_msgs/Marker\n\
499 # 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\
505 uint8 LINE_STRIP=4\n\
508 uint8 SPHERE_LIST=7\n\
510 uint8 TEXT_VIEW_FACING=9\n\
511 uint8 MESH_RESOURCE=10\n\
512 uint8 TRIANGLE_LIST=11\n\
519 Header header # header for time/frame information\n\
520 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
521 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
522 int32 type # Type of object\n\
523 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
524 geometry_msgs/Pose pose # Pose of the object\n\
525 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
526 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
527 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
528 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
530 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
531 geometry_msgs/Point[] points\n\
532 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
533 #number of colors must either be 0 or equal to the number of points\n\
534 #NOTE: alpha is not yet used\n\
535 std_msgs/ColorRGBA[] colors\n\
537 # NOTE: only used for text markers\n\
540 # NOTE: only used for MESH_RESOURCE markers\n\
541 string mesh_resource\n\
542 bool mesh_use_embedded_materials\n\
544 ================================================================================\n\
545 MSG: std_msgs/Header\n\
546 # Standard metadata for higher-level stamped data types.\n\
547 # This is generally used to communicate timestamped data \n\
548 # in a particular coordinate frame.\n\
550 # sequence ID: consecutively increasing ID \n\
552 #Two-integer timestamp that is expressed as:\n\
553 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
554 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
555 # time-handling sugar is provided by the client library\n\
557 #Frame this data is associated with\n\
562 ================================================================================\n\
563 MSG: geometry_msgs/Pose\n\
564 # A representation of pose in free space, composed of position and orientation. \n\
566 Quaternion orientation\n\
568 ================================================================================\n\
569 MSG: geometry_msgs/Point\n\
570 # This contains the position of a point in free space\n\
575 ================================================================================\n\
576 MSG: geometry_msgs/Vector3\n\
577 # This represents a vector in free space. \n\
578 # It is only meant to represent a direction. Therefore, it does not\n\
579 # make sense to apply a translation to it (e.g., when applying a \n\
580 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
581 # rotation). If you want your data to be translatable too, use the\n\
582 # geometry_msgs/Point message instead.\n\
587 ================================================================================\n\
588 MSG: std_msgs/ColorRGBA\n\
608 #endif // YARP_ROSMSG_visualization_msgs_InteractiveMarkerControl_h
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static const std::uint8_t ROTATE_3D
bool readString(std::string &str, bool *is_vocab=nullptr)
static const std::uint8_t INHERIT
virtual void appendBlock(const char *data, size_t len)=0
Send a block of data to the network connection.
yarp::os::Type getType() const override
virtual bool read(yarp::os::idl::WireReader &reader)
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.
#define BOTTLE_TAG_STRING
static constexpr const char * typeText
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static const std::uint8_t MOVE_PLANE
static constexpr const char * typeName
static const std::uint8_t BUTTON
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
static const std::uint8_t MOVE_AXIS
virtual bool isError() const =0
static const std::uint8_t FIXED
static Type byName(const char *name)
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
static constexpr const char * typeChecksum
Type & addProperty(const char *key, const Value &val)
static const std::uint8_t MOVE_ROTATE_3D
bool independent_marker_orientation
An interface for writing to a network connection.
virtual bool isError() const =0
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerControl > bottleStyle
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
static const std::uint8_t MENU
yarp::rosmsg::geometry_msgs::Quaternion orientation
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.
InteractiveMarkerControl()
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.
The main, catch-all namespace for YARP.
static const std::uint8_t NONE
static const std::uint8_t VIEW_FACING
std::uint8_t interaction_mode
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.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
A single value (typically within a Bottle).
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerControl > rosStyle
std::vector< yarp::rosmsg::visualization_msgs::Marker > markers
static const std::uint8_t MOVE_ROTATE
static const std::uint8_t MOVE_3D
std::uint8_t orientation_mode
bool readBottle(yarp::os::ConnectionReader &connection) override
static const std::uint8_t ROTATE_AXIS
bool readBare(yarp::os::ConnectionReader &connection) 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