89#ifndef YARP_ROSMSG_visualization_msgs_InteractiveMarkerControl_h
90#define YARP_ROSMSG_visualization_msgs_InteractiveMarkerControl_h
110 static const std::uint8_t
FIXED = 1;
113 static const std::uint8_t
NONE = 0;
114 static const std::uint8_t
MENU = 1;
125 std::vector<yarp::rosmsg::visualization_msgs::Marker>
markers;
222 for (
int i=0; i<len; i++) {
276 for (
int i=0; i<len; i++) {
322 for (
size_t i=0; i<
markers.size(); i++) {
368 for (
size_t i=0; i<
markers.size(); i++) {
400 static constexpr const char*
typeName =
"visualization_msgs/InteractiveMarkerControl";
403 static constexpr const char*
typeChecksum =
"b3c81e785788195d1840b86c28da1aac";
407# Represents a control that is to be displayed together with an interactive marker\n\
409# Identifying string for this control.\n\
410# You need to assign a unique value to this to receive feedback from the GUI\n\
411# on what actions the user performs on this control (e.g. a button click).\n\
415# Defines the local coordinate frame (relative to the pose of the parent\n\
416# interactive marker) in which is being rotated and translated.\n\
417# Default: Identity\n\
418geometry_msgs/Quaternion orientation\n\
421# Orientation mode: controls how orientation changes.\n\
422# INHERIT: Follow orientation of interactive marker\n\
423# FIXED: Keep orientation fixed at initial state\n\
424# VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).\n\
427uint8 VIEW_FACING = 2\n\
429uint8 orientation_mode\n\
431# Interaction mode for this control\n\
433# NONE: This control is only meant for visualization; no context menu.\n\
434# MENU: Like NONE, but right-click menu is active.\n\
435# BUTTON: Element can be left-clicked.\n\
436# MOVE_AXIS: Translate along local x-axis.\n\
437# MOVE_PLANE: Translate in local y-z plane.\n\
438# ROTATE_AXIS: Rotate around local x-axis.\n\
439# MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.\n\
443uint8 MOVE_AXIS = 3 \n\
444uint8 MOVE_PLANE = 4\n\
445uint8 ROTATE_AXIS = 5\n\
446uint8 MOVE_ROTATE = 6\n\
447# \"3D\" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.\n\
448# MOVE_3D: Translate freely in 3D space.\n\
449# ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.\n\
450# MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.\n\
452uint8 ROTATE_3D = 8\n\
453uint8 MOVE_ROTATE_3D = 9\n\
455uint8 interaction_mode\n\
458# If true, the contained markers will also be visible\n\
459# when the gui is not in interactive mode.\n\
460bool always_visible\n\
463# Markers to be displayed as custom visual representation.\n\
464# Leave this empty to use the default control handles.\n\
467# - The markers can be defined in an arbitrary coordinate frame,\n\
468# but will be transformed into the local frame of the interactive marker.\n\
469# - If the header of a marker is empty, its pose will be interpreted as \n\
470# relative to the pose of the parent interactive marker.\n\
474# In VIEW_FACING mode, set this to true if you don't want the markers\n\
475# to be aligned with the camera view point. The markers will show up\n\
476# as in INHERIT mode.\n\
477bool independent_marker_orientation\n\
480# Short description (< 40 characters) of what this control does,\n\
481# e.g. \"Move the robot\". \n\
482# Default: A generic description based on the interaction mode\n\
485================================================================================\n\
486MSG: geometry_msgs/Quaternion\n\
487# This represents an orientation in free space in quaternion form.\n\
494================================================================================\n\
495MSG: visualization_msgs/Marker\n\
496# 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\
505uint8 SPHERE_LIST=7\n\
507uint8 TEXT_VIEW_FACING=9\n\
508uint8 MESH_RESOURCE=10\n\
509uint8 TRIANGLE_LIST=11\n\
516Header header # header for time/frame information\n\
517string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
518int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
519int32 type # Type of object\n\
520int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
521geometry_msgs/Pose pose # Pose of the object\n\
522geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
523std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
524duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
525bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
527#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
528geometry_msgs/Point[] points\n\
529#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
530#number of colors must either be 0 or equal to the number of points\n\
531#NOTE: alpha is not yet used\n\
532std_msgs/ColorRGBA[] colors\n\
534# NOTE: only used for text markers\n\
537# NOTE: only used for MESH_RESOURCE markers\n\
538string mesh_resource\n\
539bool mesh_use_embedded_materials\n\
541================================================================================\n\
542MSG: std_msgs/Header\n\
543# Standard metadata for higher-level stamped data types.\n\
544# This is generally used to communicate timestamped data \n\
545# in a particular coordinate frame.\n\
547# sequence ID: consecutively increasing ID \n\
549#Two-integer timestamp that is expressed as:\n\
550# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
551# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
552# time-handling sugar is provided by the client library\n\
554#Frame this data is associated with\n\
559================================================================================\n\
560MSG: geometry_msgs/Pose\n\
561# A representation of pose in free space, composed of position and orientation. \n\
563Quaternion orientation\n\
565================================================================================\n\
566MSG: geometry_msgs/Point\n\
567# This contains the position of a point in free space\n\
572================================================================================\n\
573MSG: geometry_msgs/Vector3\n\
574# This represents a vector in free space. \n\
575# It is only meant to represent a direction. Therefore, it does not\n\
576# make sense to apply a translation to it (e.g., when applying a \n\
577# generic rigid transformation to a Vector3, tf2 will only apply the\n\
578# rotation). If you want your data to be translatable too, use the\n\
579# geometry_msgs/Point message instead.\n\
584================================================================================\n\
585MSG: std_msgs/ColorRGBA\n\
#define BOTTLE_TAG_STRING
An interface for reading from a network connection.
virtual bool expectBlock(char *data, size_t len)=0
Read a block of data from the 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
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
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 void appendInt8(std::int8_t data)=0
Send a representation of a 8-bit integer to the network connection.
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 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.
virtual void appendBlock(const char *data, size_t len)=0
Send a block of data 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.
bool readString(std::string &str, bool *is_vocab=nullptr)
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 NONE
static const std::uint8_t ROTATE_AXIS
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerControl > bottleStyle
static constexpr const char * typeChecksum
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerControl > rosStyle
std::uint8_t interaction_mode
std::uint8_t orientation_mode
static const std::uint8_t MOVE_AXIS
yarp::os::Type getType() const override
bool readBottle(yarp::os::ConnectionReader &connection) override
static const std::uint8_t MOVE_PLANE
InteractiveMarkerControl()
bool readBare(yarp::os::ConnectionReader &connection) override
static constexpr const char * typeName
yarp::rosmsg::geometry_msgs::Quaternion orientation
static const std::uint8_t INHERIT
std::vector< yarp::rosmsg::visualization_msgs::Marker > markers
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
static const std::uint8_t MOVE_ROTATE_3D
static const std::uint8_t FIXED
static constexpr const char * typeText
static const std::uint8_t MOVE_ROTATE
static const std::uint8_t VIEW_FACING
static const std::uint8_t ROTATE_3D
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
static const std::uint8_t BUTTON
bool writeBare(yarp::os::ConnectionWriter &connection) const override
static const std::uint8_t MENU
static const std::uint8_t MOVE_3D
bool independent_marker_orientation
The main, catch-all namespace for YARP.