38#ifndef YARP_ROSMSG_visualization_msgs_InteractiveMarker_h
39#define YARP_ROSMSG_visualization_msgs_InteractiveMarker_h
63 std::vector<yarp::rosmsg::visualization_msgs::MenuEntry>
menu_entries;
64 std::vector<yarp::rosmsg::visualization_msgs::InteractiveMarkerControl>
controls;
133 for (
int i=0; i<len; i++) {
142 for (
int i=0; i<len; i++) {
188 for (
int i=0; i<len; i++) {
200 for (
int i=0; i<len; i++) {
249 for (
size_t i=0; i<
controls.size(); i++) {
299 for (
size_t i=0; i<
controls.size(); i++) {
322 static constexpr const char*
typeName =
"visualization_msgs/InteractiveMarker";
325 static constexpr const char*
typeChecksum =
"dd86d22909d5a3364b384492e35c10af";
330# If header.time is set to 0, the marker will be retransformed into\n\
331# its frame on each timestep. You will receive the pose feedback\n\
332# in the same frame.\n\
333# Otherwise, you might receive feedback in a different frame.\n\
334# For rviz, this will be the current 'fixed frame' set by the user.\n\
337# Initial pose. Also, defines the pivot point for rotations.\n\
338geometry_msgs/Pose pose\n\
340# Identifying string. Must be globally unique in\n\
341# the topic that this message is sent through.\n\
344# Short description (< 40 characters).\n\
347# Scale to be used for default controls (default=1).\n\
350# All menu and submenu entries associated with this marker.\n\
351MenuEntry[] menu_entries\n\
353# List of controls displayed for this marker.\n\
354InteractiveMarkerControl[] controls\n\
356================================================================================\n\
357MSG: std_msgs/Header\n\
358# Standard metadata for higher-level stamped data types.\n\
359# This is generally used to communicate timestamped data \n\
360# in a particular coordinate frame.\n\
362# sequence ID: consecutively increasing ID \n\
364#Two-integer timestamp that is expressed as:\n\
365# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
366# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
367# time-handling sugar is provided by the client library\n\
369#Frame this data is associated with\n\
374================================================================================\n\
375MSG: geometry_msgs/Pose\n\
376# A representation of pose in free space, composed of position and orientation. \n\
378Quaternion orientation\n\
380================================================================================\n\
381MSG: geometry_msgs/Point\n\
382# This contains the position of a point in free space\n\
387================================================================================\n\
388MSG: geometry_msgs/Quaternion\n\
389# This represents an orientation in free space in quaternion form.\n\
396================================================================================\n\
397MSG: visualization_msgs/MenuEntry\n\
398# MenuEntry message.\n\
400# Each InteractiveMarker message has an array of MenuEntry messages.\n\
401# A collection of MenuEntries together describe a\n\
402# menu/submenu/subsubmenu/etc tree, though they are stored in a flat\n\
403# array. The tree structure is represented by giving each menu entry\n\
404# an ID number and a \"parent_id\" field. Top-level entries are the\n\
405# ones with parent_id = 0. Menu entries are ordered within their\n\
406# level the same way they are ordered in the containing array. Parent\n\
407# entries must appear before their children.\n\
415# title = \"robot\"\n\
421# title = \"turtle\"\n\
423# Gives a menu tree like this:\n\
429# ID is a number for each menu entry. Must be unique within the\n\
430# control, and should never be 0.\n\
433# ID of the parent of this menu entry, if it is a submenu. If this\n\
434# menu entry is a top-level entry, set parent_id to 0.\n\
437# menu / entry title\n\
440# Arguments to command indicated by command_type (below)\n\
443# Command_type stores the type of response desired when this menu\n\
444# entry is clicked.\n\
445# FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.\n\
446# ROSRUN: execute \"rosrun\" with arguments given in the command field (above).\n\
447# ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).\n\
453================================================================================\n\
454MSG: visualization_msgs/InteractiveMarkerControl\n\
455# Represents a control that is to be displayed together with an interactive marker\n\
457# Identifying string for this control.\n\
458# You need to assign a unique value to this to receive feedback from the GUI\n\
459# on what actions the user performs on this control (e.g. a button click).\n\
463# Defines the local coordinate frame (relative to the pose of the parent\n\
464# interactive marker) in which is being rotated and translated.\n\
465# Default: Identity\n\
466geometry_msgs/Quaternion orientation\n\
469# Orientation mode: controls how orientation changes.\n\
470# INHERIT: Follow orientation of interactive marker\n\
471# FIXED: Keep orientation fixed at initial state\n\
472# VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).\n\
475uint8 VIEW_FACING = 2\n\
477uint8 orientation_mode\n\
479# Interaction mode for this control\n\
481# NONE: This control is only meant for visualization; no context menu.\n\
482# MENU: Like NONE, but right-click menu is active.\n\
483# BUTTON: Element can be left-clicked.\n\
484# MOVE_AXIS: Translate along local x-axis.\n\
485# MOVE_PLANE: Translate in local y-z plane.\n\
486# ROTATE_AXIS: Rotate around local x-axis.\n\
487# MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.\n\
491uint8 MOVE_AXIS = 3 \n\
492uint8 MOVE_PLANE = 4\n\
493uint8 ROTATE_AXIS = 5\n\
494uint8 MOVE_ROTATE = 6\n\
495# \"3D\" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.\n\
496# MOVE_3D: Translate freely in 3D space.\n\
497# ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.\n\
498# MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.\n\
500uint8 ROTATE_3D = 8\n\
501uint8 MOVE_ROTATE_3D = 9\n\
503uint8 interaction_mode\n\
506# If true, the contained markers will also be visible\n\
507# when the gui is not in interactive mode.\n\
508bool always_visible\n\
511# Markers to be displayed as custom visual representation.\n\
512# Leave this empty to use the default control handles.\n\
515# - The markers can be defined in an arbitrary coordinate frame,\n\
516# but will be transformed into the local frame of the interactive marker.\n\
517# - If the header of a marker is empty, its pose will be interpreted as \n\
518# relative to the pose of the parent interactive marker.\n\
522# In VIEW_FACING mode, set this to true if you don't want the markers\n\
523# to be aligned with the camera view point. The markers will show up\n\
524# as in INHERIT mode.\n\
525bool independent_marker_orientation\n\
528# Short description (< 40 characters) of what this control does,\n\
529# e.g. \"Move the robot\". \n\
530# Default: A generic description based on the interaction mode\n\
533================================================================================\n\
534MSG: visualization_msgs/Marker\n\
535# 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\
544uint8 SPHERE_LIST=7\n\
546uint8 TEXT_VIEW_FACING=9\n\
547uint8 MESH_RESOURCE=10\n\
548uint8 TRIANGLE_LIST=11\n\
555Header header # header for time/frame information\n\
556string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
557int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
558int32 type # Type of object\n\
559int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
560geometry_msgs/Pose pose # Pose of the object\n\
561geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
562std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
563duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
564bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
566#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
567geometry_msgs/Point[] points\n\
568#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
569#number of colors must either be 0 or equal to the number of points\n\
570#NOTE: alpha is not yet used\n\
571std_msgs/ColorRGBA[] colors\n\
573# NOTE: only used for text markers\n\
576# NOTE: only used for MESH_RESOURCE markers\n\
577string mesh_resource\n\
578bool mesh_use_embedded_materials\n\
580================================================================================\n\
581MSG: geometry_msgs/Vector3\n\
582# This represents a vector in free space. \n\
583# It is only meant to represent a direction. Therefore, it does not\n\
584# make sense to apply a translation to it (e.g., when applying a \n\
585# generic rigid transformation to a Vector3, tf2 will only apply the\n\
586# rotation). If you want your data to be translatable too, use the\n\
587# geometry_msgs/Point message instead.\n\
592================================================================================\n\
593MSG: std_msgs/ColorRGBA\n\
#define BOTTLE_TAG_STRING
#define BOTTLE_TAG_FLOAT32
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 yarp::conf::float32_t expectFloat32()=0
Read a 32-bit floating point number from the network connection.
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 void appendFloat32(yarp::conf::float32_t data)=0
Send a representation of a 32-bit floating point number 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.
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)
yarp::conf::float32_t expectFloat32()
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 constexpr const char * typeText
yarp::conf::float32_t scale
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::InteractiveMarker > rosStyle
yarp::rosmsg::geometry_msgs::Pose pose
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::InteractiveMarker > bottleStyle
bool readBottle(yarp::os::ConnectionReader &connection) override
bool writeBare(yarp::os::ConnectionWriter &connection) const override
std::vector< yarp::rosmsg::visualization_msgs::MenuEntry > menu_entries
static constexpr const char * typeChecksum
yarp::os::Type getType() const override
bool readBare(yarp::os::ConnectionReader &connection) override
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.
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
yarp::rosmsg::std_msgs::Header header
static constexpr const char * typeName
std::vector< yarp::rosmsg::visualization_msgs::InteractiveMarkerControl > controls
The main, catch-all namespace for YARP.