|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
46 #ifndef YARP_ROSMSG_visualization_msgs_InteractiveMarkerUpdate_h
47 #define YARP_ROSMSG_visualization_msgs_InteractiveMarkerUpdate_h
67 static const std::uint8_t
UPDATE = 1;
69 std::vector<yarp::rosmsg::visualization_msgs::InteractiveMarker>
markers;
70 std::vector<yarp::rosmsg::visualization_msgs::InteractiveMarkerPose>
poses;
126 for (
int i=0; i<len; i++) {
135 for (
int i=0; i<len; i++) {
144 for (
int i=0; i<len; i++) {
180 for (
int i=0; i<len; i++) {
192 for (
int i=0; i<len; i++) {
204 for (
int i=0; i<len; i++) {
236 for (
size_t i=0; i<
markers.size(); i++) {
244 for (
size_t i=0; i<
poses.size(); i++) {
252 for (
size_t i=0; i<
erases.size(); i++) {
281 for (
size_t i=0; i<
markers.size(); i++) {
290 for (
size_t i=0; i<
poses.size(); i++) {
299 for (
size_t i=0; i<
erases.size(); i++) {
321 static constexpr
const char*
typeName =
"visualization_msgs/InteractiveMarkerUpdate";
324 static constexpr
const char*
typeChecksum =
"710d308d0a9276d65945e92dd30b3946";
328 # Identifying string. Must be unique in the topic namespace\n\
329 # that this server works on.\n\
332 # Sequence number.\n\
333 # The client will use this to detect if it has missed an update.\n\
336 # Type holds the purpose of this message. It must be one of UPDATE or KEEP_ALIVE.\n\
337 # UPDATE: Incremental update to previous state. \n\
338 # The sequence number must be 1 higher than for\n\
339 # the previous update.\n\
340 # KEEP_ALIVE: Indicates the that the server is still living.\n\
341 # The sequence number does not increase.\n\
342 # No payload data should be filled out (markers, poses, or erases).\n\
343 uint8 KEEP_ALIVE = 0\n\
348 #Note: No guarantees on the order of processing.\n\
349 # Contents must be kept consistent by sender.\n\
351 #Markers to be added or updated\n\
352 InteractiveMarker[] markers\n\
354 #Poses of markers that should be moved\n\
355 InteractiveMarkerPose[] poses\n\
357 #Names of markers to be erased\n\
360 ================================================================================\n\
361 MSG: visualization_msgs/InteractiveMarker\n\
362 # Time/frame info.\n\
363 # If header.time is set to 0, the marker will be retransformed into\n\
364 # its frame on each timestep. You will receive the pose feedback\n\
365 # in the same frame.\n\
366 # Otherwise, you might receive feedback in a different frame.\n\
367 # For rviz, this will be the current 'fixed frame' set by the user.\n\
370 # Initial pose. Also, defines the pivot point for rotations.\n\
371 geometry_msgs/Pose pose\n\
373 # Identifying string. Must be globally unique in\n\
374 # the topic that this message is sent through.\n\
377 # Short description (< 40 characters).\n\
378 string description\n\
380 # Scale to be used for default controls (default=1).\n\
383 # All menu and submenu entries associated with this marker.\n\
384 MenuEntry[] menu_entries\n\
386 # List of controls displayed for this marker.\n\
387 InteractiveMarkerControl[] controls\n\
389 ================================================================================\n\
390 MSG: std_msgs/Header\n\
391 # Standard metadata for higher-level stamped data types.\n\
392 # This is generally used to communicate timestamped data \n\
393 # in a particular coordinate frame.\n\
395 # sequence ID: consecutively increasing ID \n\
397 #Two-integer timestamp that is expressed as:\n\
398 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
399 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
400 # time-handling sugar is provided by the client library\n\
402 #Frame this data is associated with\n\
407 ================================================================================\n\
408 MSG: geometry_msgs/Pose\n\
409 # A representation of pose in free space, composed of position and orientation. \n\
411 Quaternion orientation\n\
413 ================================================================================\n\
414 MSG: geometry_msgs/Point\n\
415 # This contains the position of a point in free space\n\
420 ================================================================================\n\
421 MSG: geometry_msgs/Quaternion\n\
422 # This represents an orientation in free space in quaternion form.\n\
429 ================================================================================\n\
430 MSG: visualization_msgs/MenuEntry\n\
431 # MenuEntry message.\n\
433 # Each InteractiveMarker message has an array of MenuEntry messages.\n\
434 # A collection of MenuEntries together describe a\n\
435 # menu/submenu/subsubmenu/etc tree, though they are stored in a flat\n\
436 # array. The tree structure is represented by giving each menu entry\n\
437 # an ID number and a \"parent_id\" field. Top-level entries are the\n\
438 # ones with parent_id = 0. Menu entries are ordered within their\n\
439 # level the same way they are ordered in the containing array. Parent\n\
440 # entries must appear before their children.\n\
448 # title = \"robot\"\n\
454 # title = \"turtle\"\n\
456 # Gives a menu tree like this:\n\
462 # ID is a number for each menu entry. Must be unique within the\n\
463 # control, and should never be 0.\n\
466 # ID of the parent of this menu entry, if it is a submenu. If this\n\
467 # menu entry is a top-level entry, set parent_id to 0.\n\
470 # menu / entry title\n\
473 # Arguments to command indicated by command_type (below)\n\
476 # Command_type stores the type of response desired when this menu\n\
477 # entry is clicked.\n\
478 # FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.\n\
479 # ROSRUN: execute \"rosrun\" with arguments given in the command field (above).\n\
480 # ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).\n\
484 uint8 command_type\n\
486 ================================================================================\n\
487 MSG: visualization_msgs/InteractiveMarkerControl\n\
488 # Represents a control that is to be displayed together with an interactive marker\n\
490 # Identifying string for this control.\n\
491 # You need to assign a unique value to this to receive feedback from the GUI\n\
492 # on what actions the user performs on this control (e.g. a button click).\n\
496 # Defines the local coordinate frame (relative to the pose of the parent\n\
497 # interactive marker) in which is being rotated and translated.\n\
498 # Default: Identity\n\
499 geometry_msgs/Quaternion orientation\n\
502 # Orientation mode: controls how orientation changes.\n\
503 # INHERIT: Follow orientation of interactive marker\n\
504 # FIXED: Keep orientation fixed at initial state\n\
505 # VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).\n\
506 uint8 INHERIT = 0 \n\
508 uint8 VIEW_FACING = 2\n\
510 uint8 orientation_mode\n\
512 # Interaction mode for this control\n\
514 # NONE: This control is only meant for visualization; no context menu.\n\
515 # MENU: Like NONE, but right-click menu is active.\n\
516 # BUTTON: Element can be left-clicked.\n\
517 # MOVE_AXIS: Translate along local x-axis.\n\
518 # MOVE_PLANE: Translate in local y-z plane.\n\
519 # ROTATE_AXIS: Rotate around local x-axis.\n\
520 # MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.\n\
524 uint8 MOVE_AXIS = 3 \n\
525 uint8 MOVE_PLANE = 4\n\
526 uint8 ROTATE_AXIS = 5\n\
527 uint8 MOVE_ROTATE = 6\n\
528 # \"3D\" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.\n\
529 # MOVE_3D: Translate freely in 3D space.\n\
530 # ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.\n\
531 # MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.\n\
533 uint8 ROTATE_3D = 8\n\
534 uint8 MOVE_ROTATE_3D = 9\n\
536 uint8 interaction_mode\n\
539 # If true, the contained markers will also be visible\n\
540 # when the gui is not in interactive mode.\n\
541 bool always_visible\n\
544 # Markers to be displayed as custom visual representation.\n\
545 # Leave this empty to use the default control handles.\n\
548 # - The markers can be defined in an arbitrary coordinate frame,\n\
549 # but will be transformed into the local frame of the interactive marker.\n\
550 # - If the header of a marker is empty, its pose will be interpreted as \n\
551 # relative to the pose of the parent interactive marker.\n\
555 # In VIEW_FACING mode, set this to true if you don't want the markers\n\
556 # to be aligned with the camera view point. The markers will show up\n\
557 # as in INHERIT mode.\n\
558 bool independent_marker_orientation\n\
561 # Short description (< 40 characters) of what this control does,\n\
562 # e.g. \"Move the robot\". \n\
563 # Default: A generic description based on the interaction mode\n\
564 string description\n\
566 ================================================================================\n\
567 MSG: visualization_msgs/Marker\n\
568 # 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\
574 uint8 LINE_STRIP=4\n\
577 uint8 SPHERE_LIST=7\n\
579 uint8 TEXT_VIEW_FACING=9\n\
580 uint8 MESH_RESOURCE=10\n\
581 uint8 TRIANGLE_LIST=11\n\
588 Header header # header for time/frame information\n\
589 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
590 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
591 int32 type # Type of object\n\
592 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
593 geometry_msgs/Pose pose # Pose of the object\n\
594 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
595 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
596 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
597 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
599 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
600 geometry_msgs/Point[] points\n\
601 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
602 #number of colors must either be 0 or equal to the number of points\n\
603 #NOTE: alpha is not yet used\n\
604 std_msgs/ColorRGBA[] colors\n\
606 # NOTE: only used for text markers\n\
609 # NOTE: only used for MESH_RESOURCE markers\n\
610 string mesh_resource\n\
611 bool mesh_use_embedded_materials\n\
613 ================================================================================\n\
614 MSG: geometry_msgs/Vector3\n\
615 # This represents a vector in free space. \n\
616 # It is only meant to represent a direction. Therefore, it does not\n\
617 # make sense to apply a translation to it (e.g., when applying a \n\
618 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
619 # rotation). If you want your data to be translatable too, use the\n\
620 # geometry_msgs/Point message instead.\n\
625 ================================================================================\n\
626 MSG: std_msgs/ColorRGBA\n\
632 ================================================================================\n\
633 MSG: visualization_msgs/InteractiveMarkerPose\n\
634 # Time/frame info.\n\
637 # Initial pose. Also, defines the pivot point for rotations.\n\
638 geometry_msgs/Pose pose\n\
640 # Identifying string. Must be globally unique in\n\
641 # the topic that this message is sent through.\n\
658 #endif // YARP_ROSMSG_visualization_msgs_InteractiveMarkerUpdate_h
bool readString(std::string &str, bool *is_vocab=nullptr)
std::vector< yarp::rosmsg::visualization_msgs::InteractiveMarker > markers
virtual bool read(yarp::os::idl::WireReader &reader)
static constexpr const char * typeName
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
std::int64_t expectInt64()
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerUpdate > rosStyle
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
bool readBare(yarp::os::ConnectionReader &connection) override
static const std::uint8_t KEEP_ALIVE
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerUpdate > bottleStyle
bool readBottle(yarp::os::ConnectionReader &connection) override
virtual bool isError() const =0
static Type byName(const char *name)
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
yarp::os::Type getType() const override
static constexpr const char * typeText
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
virtual std::int64_t expectInt64()=0
Read a 64-bit integer from the network connection.
Type & addProperty(const char *key, const Value &val)
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
An interface for writing to a network connection.
virtual bool isError() const =0
std::vector< std::string > erases
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
InteractiveMarkerUpdate()
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.
static const std::uint8_t UPDATE
virtual bool convertTextMode()=0
Converts a standard description in binary into a textual description, if the connection is in text-mo...
static constexpr const char * typeChecksum
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.
std::vector< yarp::rosmsg::visualization_msgs::InteractiveMarkerPose > poses
virtual void appendInt64(std::int64_t data)=0
Send a representation of a 64-bit integer to the network connection.
The main, catch-all namespace for YARP.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
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).
virtual bool write(const yarp::os::idl::WireWriter &writer) const