43#ifndef YARP_ROSMSG_visualization_msgs_InteractiveMarkerUpdate_h
44#define YARP_ROSMSG_visualization_msgs_InteractiveMarkerUpdate_h
64 static const std::uint8_t
UPDATE = 1;
66 std::vector<yarp::rosmsg::visualization_msgs::InteractiveMarker>
markers;
67 std::vector<yarp::rosmsg::visualization_msgs::InteractiveMarkerPose>
poses;
123 for (
int i=0; i<len; i++) {
132 for (
int i=0; i<len; i++) {
141 for (
int i=0; i<len; i++) {
177 for (
int i=0; i<len; i++) {
189 for (
int i=0; i<len; i++) {
201 for (
int i=0; i<len; i++) {
233 for (
size_t i=0; i<
markers.size(); i++) {
241 for (
size_t i=0; i<
poses.size(); i++) {
249 for (
size_t i=0; i<
erases.size(); i++) {
278 for (
size_t i=0; i<
markers.size(); i++) {
287 for (
size_t i=0; i<
poses.size(); i++) {
296 for (
size_t i=0; i<
erases.size(); i++) {
318 static constexpr const char*
typeName =
"visualization_msgs/InteractiveMarkerUpdate";
321 static constexpr const char*
typeChecksum =
"710d308d0a9276d65945e92dd30b3946";
325# Identifying string. Must be unique in the topic namespace\n\
326# that this server works on.\n\
330# The client will use this to detect if it has missed an update.\n\
333# Type holds the purpose of this message. It must be one of UPDATE or KEEP_ALIVE.\n\
334# UPDATE: Incremental update to previous state. \n\
335# The sequence number must be 1 higher than for\n\
336# the previous update.\n\
337# KEEP_ALIVE: Indicates the that the server is still living.\n\
338# The sequence number does not increase.\n\
339# No payload data should be filled out (markers, poses, or erases).\n\
340uint8 KEEP_ALIVE = 0\n\
345#Note: No guarantees on the order of processing.\n\
346# Contents must be kept consistent by sender.\n\
348#Markers to be added or updated\n\
349InteractiveMarker[] markers\n\
351#Poses of markers that should be moved\n\
352InteractiveMarkerPose[] poses\n\
354#Names of markers to be erased\n\
357================================================================================\n\
358MSG: visualization_msgs/InteractiveMarker\n\
360# If header.time is set to 0, the marker will be retransformed into\n\
361# its frame on each timestep. You will receive the pose feedback\n\
362# in the same frame.\n\
363# Otherwise, you might receive feedback in a different frame.\n\
364# For rviz, this will be the current 'fixed frame' set by the user.\n\
367# Initial pose. Also, defines the pivot point for rotations.\n\
368geometry_msgs/Pose pose\n\
370# Identifying string. Must be globally unique in\n\
371# the topic that this message is sent through.\n\
374# Short description (< 40 characters).\n\
377# Scale to be used for default controls (default=1).\n\
380# All menu and submenu entries associated with this marker.\n\
381MenuEntry[] menu_entries\n\
383# List of controls displayed for this marker.\n\
384InteractiveMarkerControl[] controls\n\
386================================================================================\n\
387MSG: std_msgs/Header\n\
388# Standard metadata for higher-level stamped data types.\n\
389# This is generally used to communicate timestamped data \n\
390# in a particular coordinate frame.\n\
392# sequence ID: consecutively increasing ID \n\
394#Two-integer timestamp that is expressed as:\n\
395# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
396# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
397# time-handling sugar is provided by the client library\n\
399#Frame this data is associated with\n\
404================================================================================\n\
405MSG: geometry_msgs/Pose\n\
406# A representation of pose in free space, composed of position and orientation. \n\
408Quaternion orientation\n\
410================================================================================\n\
411MSG: geometry_msgs/Point\n\
412# This contains the position of a point in free space\n\
417================================================================================\n\
418MSG: geometry_msgs/Quaternion\n\
419# This represents an orientation in free space in quaternion form.\n\
426================================================================================\n\
427MSG: visualization_msgs/MenuEntry\n\
428# MenuEntry message.\n\
430# Each InteractiveMarker message has an array of MenuEntry messages.\n\
431# A collection of MenuEntries together describe a\n\
432# menu/submenu/subsubmenu/etc tree, though they are stored in a flat\n\
433# array. The tree structure is represented by giving each menu entry\n\
434# an ID number and a \"parent_id\" field. Top-level entries are the\n\
435# ones with parent_id = 0. Menu entries are ordered within their\n\
436# level the same way they are ordered in the containing array. Parent\n\
437# entries must appear before their children.\n\
445# title = \"robot\"\n\
451# title = \"turtle\"\n\
453# Gives a menu tree like this:\n\
459# ID is a number for each menu entry. Must be unique within the\n\
460# control, and should never be 0.\n\
463# ID of the parent of this menu entry, if it is a submenu. If this\n\
464# menu entry is a top-level entry, set parent_id to 0.\n\
467# menu / entry title\n\
470# Arguments to command indicated by command_type (below)\n\
473# Command_type stores the type of response desired when this menu\n\
474# entry is clicked.\n\
475# FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.\n\
476# ROSRUN: execute \"rosrun\" with arguments given in the command field (above).\n\
477# ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).\n\
483================================================================================\n\
484MSG: visualization_msgs/InteractiveMarkerControl\n\
485# Represents a control that is to be displayed together with an interactive marker\n\
487# Identifying string for this control.\n\
488# You need to assign a unique value to this to receive feedback from the GUI\n\
489# on what actions the user performs on this control (e.g. a button click).\n\
493# Defines the local coordinate frame (relative to the pose of the parent\n\
494# interactive marker) in which is being rotated and translated.\n\
495# Default: Identity\n\
496geometry_msgs/Quaternion orientation\n\
499# Orientation mode: controls how orientation changes.\n\
500# INHERIT: Follow orientation of interactive marker\n\
501# FIXED: Keep orientation fixed at initial state\n\
502# VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).\n\
505uint8 VIEW_FACING = 2\n\
507uint8 orientation_mode\n\
509# Interaction mode for this control\n\
511# NONE: This control is only meant for visualization; no context menu.\n\
512# MENU: Like NONE, but right-click menu is active.\n\
513# BUTTON: Element can be left-clicked.\n\
514# MOVE_AXIS: Translate along local x-axis.\n\
515# MOVE_PLANE: Translate in local y-z plane.\n\
516# ROTATE_AXIS: Rotate around local x-axis.\n\
517# MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.\n\
521uint8 MOVE_AXIS = 3 \n\
522uint8 MOVE_PLANE = 4\n\
523uint8 ROTATE_AXIS = 5\n\
524uint8 MOVE_ROTATE = 6\n\
525# \"3D\" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.\n\
526# MOVE_3D: Translate freely in 3D space.\n\
527# ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.\n\
528# MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.\n\
530uint8 ROTATE_3D = 8\n\
531uint8 MOVE_ROTATE_3D = 9\n\
533uint8 interaction_mode\n\
536# If true, the contained markers will also be visible\n\
537# when the gui is not in interactive mode.\n\
538bool always_visible\n\
541# Markers to be displayed as custom visual representation.\n\
542# Leave this empty to use the default control handles.\n\
545# - The markers can be defined in an arbitrary coordinate frame,\n\
546# but will be transformed into the local frame of the interactive marker.\n\
547# - If the header of a marker is empty, its pose will be interpreted as \n\
548# relative to the pose of the parent interactive marker.\n\
552# In VIEW_FACING mode, set this to true if you don't want the markers\n\
553# to be aligned with the camera view point. The markers will show up\n\
554# as in INHERIT mode.\n\
555bool independent_marker_orientation\n\
558# Short description (< 40 characters) of what this control does,\n\
559# e.g. \"Move the robot\". \n\
560# Default: A generic description based on the interaction mode\n\
563================================================================================\n\
564MSG: visualization_msgs/Marker\n\
565# 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\
574uint8 SPHERE_LIST=7\n\
576uint8 TEXT_VIEW_FACING=9\n\
577uint8 MESH_RESOURCE=10\n\
578uint8 TRIANGLE_LIST=11\n\
585Header header # header for time/frame information\n\
586string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
587int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
588int32 type # Type of object\n\
589int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
590geometry_msgs/Pose pose # Pose of the object\n\
591geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
592std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
593duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
594bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
596#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
597geometry_msgs/Point[] points\n\
598#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
599#number of colors must either be 0 or equal to the number of points\n\
600#NOTE: alpha is not yet used\n\
601std_msgs/ColorRGBA[] colors\n\
603# NOTE: only used for text markers\n\
606# NOTE: only used for MESH_RESOURCE markers\n\
607string mesh_resource\n\
608bool mesh_use_embedded_materials\n\
610================================================================================\n\
611MSG: geometry_msgs/Vector3\n\
612# This represents a vector in free space. \n\
613# It is only meant to represent a direction. Therefore, it does not\n\
614# make sense to apply a translation to it (e.g., when applying a \n\
615# generic rigid transformation to a Vector3, tf2 will only apply the\n\
616# rotation). If you want your data to be translatable too, use the\n\
617# geometry_msgs/Point message instead.\n\
622================================================================================\n\
623MSG: std_msgs/ColorRGBA\n\
629================================================================================\n\
630MSG: visualization_msgs/InteractiveMarkerPose\n\
634# Initial pose. Also, defines the pivot point for rotations.\n\
635geometry_msgs/Pose pose\n\
637# Identifying string. Must be globally unique in\n\
638# the topic that this message is sent through.\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 std::int64_t expectInt64()=0
Read a 64-bit integer from the network connection.
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 void appendInt64(std::int64_t data)=0
Send a representation of a 64-bit integer to the network connection.
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.
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)
std::int64_t expectInt64()
static const std::uint8_t KEEP_ALIVE
bool writeBare(yarp::os::ConnectionWriter &connection) const override
static constexpr const char * typeText
static const std::uint8_t UPDATE
std::vector< yarp::rosmsg::visualization_msgs::InteractiveMarker > markers
static constexpr const char * typeChecksum
InteractiveMarkerUpdate()
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerUpdate > rosStyle
std::vector< std::string > erases
static constexpr const char * typeName
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerUpdate > bottleStyle
std::vector< yarp::rosmsg::visualization_msgs::InteractiveMarkerPose > poses
yarp::os::Type getType() const override
bool readBottle(yarp::os::ConnectionReader &connection) override
bool readBare(yarp::os::ConnectionReader &connection) override
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
The main, catch-all namespace for YARP.