26 #ifndef YARP_ROSMSG_visualization_msgs_InteractiveMarkerInit_h
27 #define YARP_ROSMSG_visualization_msgs_InteractiveMarkerInit_h
45 std::vector<yarp::rosmsg::visualization_msgs::InteractiveMarker>
markers;
81 for (
int i=0; i<len; i++) {
112 for (
int i=0; i<len; i++) {
139 for (
size_t i=0; i<
markers.size(); i++) {
165 for (
size_t i=0; i<
markers.size(); i++) {
188 static constexpr
const char*
typeName =
"visualization_msgs/InteractiveMarkerInit";
191 static constexpr
const char*
typeChecksum =
"d5f2c5045a72456d228676ab91048734";
195 # Identifying string. Must be unique in the topic namespace\n\
196 # that this server works on.\n\
199 # Sequence number.\n\
200 # The client will use this to detect if it has missed a subsequent\n\
201 # update. Every update message will have the same sequence number as\n\
202 # an init message. Clients will likely want to unsubscribe from the\n\
203 # init topic after a successful initialization to avoid receiving\n\
208 InteractiveMarker[] markers\n\
210 ================================================================================\n\
211 MSG: visualization_msgs/InteractiveMarker\n\
212 # Time/frame info.\n\
213 # If header.time is set to 0, the marker will be retransformed into\n\
214 # its frame on each timestep. You will receive the pose feedback\n\
215 # in the same frame.\n\
216 # Otherwise, you might receive feedback in a different frame.\n\
217 # For rviz, this will be the current 'fixed frame' set by the user.\n\
220 # Initial pose. Also, defines the pivot point for rotations.\n\
221 geometry_msgs/Pose pose\n\
223 # Identifying string. Must be globally unique in\n\
224 # the topic that this message is sent through.\n\
227 # Short description (< 40 characters).\n\
228 string description\n\
230 # Scale to be used for default controls (default=1).\n\
233 # All menu and submenu entries associated with this marker.\n\
234 MenuEntry[] menu_entries\n\
236 # List of controls displayed for this marker.\n\
237 InteractiveMarkerControl[] controls\n\
239 ================================================================================\n\
240 MSG: std_msgs/Header\n\
241 # Standard metadata for higher-level stamped data types.\n\
242 # This is generally used to communicate timestamped data \n\
243 # in a particular coordinate frame.\n\
245 # sequence ID: consecutively increasing ID \n\
247 #Two-integer timestamp that is expressed as:\n\
248 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
249 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
250 # time-handling sugar is provided by the client library\n\
252 #Frame this data is associated with\n\
257 ================================================================================\n\
258 MSG: geometry_msgs/Pose\n\
259 # A representation of pose in free space, composed of position and orientation. \n\
261 Quaternion orientation\n\
263 ================================================================================\n\
264 MSG: geometry_msgs/Point\n\
265 # This contains the position of a point in free space\n\
270 ================================================================================\n\
271 MSG: geometry_msgs/Quaternion\n\
272 # This represents an orientation in free space in quaternion form.\n\
279 ================================================================================\n\
280 MSG: visualization_msgs/MenuEntry\n\
281 # MenuEntry message.\n\
283 # Each InteractiveMarker message has an array of MenuEntry messages.\n\
284 # A collection of MenuEntries together describe a\n\
285 # menu/submenu/subsubmenu/etc tree, though they are stored in a flat\n\
286 # array. The tree structure is represented by giving each menu entry\n\
287 # an ID number and a \"parent_id\" field. Top-level entries are the\n\
288 # ones with parent_id = 0. Menu entries are ordered within their\n\
289 # level the same way they are ordered in the containing array. Parent\n\
290 # entries must appear before their children.\n\
298 # title = \"robot\"\n\
304 # title = \"turtle\"\n\
306 # Gives a menu tree like this:\n\
312 # ID is a number for each menu entry. Must be unique within the\n\
313 # control, and should never be 0.\n\
316 # ID of the parent of this menu entry, if it is a submenu. If this\n\
317 # menu entry is a top-level entry, set parent_id to 0.\n\
320 # menu / entry title\n\
323 # Arguments to command indicated by command_type (below)\n\
326 # Command_type stores the type of response desired when this menu\n\
327 # entry is clicked.\n\
328 # FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.\n\
329 # ROSRUN: execute \"rosrun\" with arguments given in the command field (above).\n\
330 # ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).\n\
334 uint8 command_type\n\
336 ================================================================================\n\
337 MSG: visualization_msgs/InteractiveMarkerControl\n\
338 # Represents a control that is to be displayed together with an interactive marker\n\
340 # Identifying string for this control.\n\
341 # You need to assign a unique value to this to receive feedback from the GUI\n\
342 # on what actions the user performs on this control (e.g. a button click).\n\
346 # Defines the local coordinate frame (relative to the pose of the parent\n\
347 # interactive marker) in which is being rotated and translated.\n\
348 # Default: Identity\n\
349 geometry_msgs/Quaternion orientation\n\
352 # Orientation mode: controls how orientation changes.\n\
353 # INHERIT: Follow orientation of interactive marker\n\
354 # FIXED: Keep orientation fixed at initial state\n\
355 # VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).\n\
356 uint8 INHERIT = 0 \n\
358 uint8 VIEW_FACING = 2\n\
360 uint8 orientation_mode\n\
362 # Interaction mode for this control\n\
364 # NONE: This control is only meant for visualization; no context menu.\n\
365 # MENU: Like NONE, but right-click menu is active.\n\
366 # BUTTON: Element can be left-clicked.\n\
367 # MOVE_AXIS: Translate along local x-axis.\n\
368 # MOVE_PLANE: Translate in local y-z plane.\n\
369 # ROTATE_AXIS: Rotate around local x-axis.\n\
370 # MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.\n\
374 uint8 MOVE_AXIS = 3 \n\
375 uint8 MOVE_PLANE = 4\n\
376 uint8 ROTATE_AXIS = 5\n\
377 uint8 MOVE_ROTATE = 6\n\
378 # \"3D\" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.\n\
379 # MOVE_3D: Translate freely in 3D space.\n\
380 # ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.\n\
381 # MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.\n\
383 uint8 ROTATE_3D = 8\n\
384 uint8 MOVE_ROTATE_3D = 9\n\
386 uint8 interaction_mode\n\
389 # If true, the contained markers will also be visible\n\
390 # when the gui is not in interactive mode.\n\
391 bool always_visible\n\
394 # Markers to be displayed as custom visual representation.\n\
395 # Leave this empty to use the default control handles.\n\
398 # - The markers can be defined in an arbitrary coordinate frame,\n\
399 # but will be transformed into the local frame of the interactive marker.\n\
400 # - If the header of a marker is empty, its pose will be interpreted as \n\
401 # relative to the pose of the parent interactive marker.\n\
405 # In VIEW_FACING mode, set this to true if you don't want the markers\n\
406 # to be aligned with the camera view point. The markers will show up\n\
407 # as in INHERIT mode.\n\
408 bool independent_marker_orientation\n\
411 # Short description (< 40 characters) of what this control does,\n\
412 # e.g. \"Move the robot\". \n\
413 # Default: A generic description based on the interaction mode\n\
414 string description\n\
416 ================================================================================\n\
417 MSG: visualization_msgs/Marker\n\
418 # 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\
424 uint8 LINE_STRIP=4\n\
427 uint8 SPHERE_LIST=7\n\
429 uint8 TEXT_VIEW_FACING=9\n\
430 uint8 MESH_RESOURCE=10\n\
431 uint8 TRIANGLE_LIST=11\n\
438 Header header # header for time/frame information\n\
439 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
440 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
441 int32 type # Type of object\n\
442 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
443 geometry_msgs/Pose pose # Pose of the object\n\
444 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
445 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
446 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
447 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
449 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
450 geometry_msgs/Point[] points\n\
451 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
452 #number of colors must either be 0 or equal to the number of points\n\
453 #NOTE: alpha is not yet used\n\
454 std_msgs/ColorRGBA[] colors\n\
456 # NOTE: only used for text markers\n\
459 # NOTE: only used for MESH_RESOURCE markers\n\
460 string mesh_resource\n\
461 bool mesh_use_embedded_materials\n\
463 ================================================================================\n\
464 MSG: geometry_msgs/Vector3\n\
465 # This represents a vector in free space. \n\
466 # It is only meant to represent a direction. Therefore, it does not\n\
467 # make sense to apply a translation to it (e.g., when applying a \n\
468 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
469 # rotation). If you want your data to be translatable too, use the\n\
470 # geometry_msgs/Point message instead.\n\
475 ================================================================================\n\
476 MSG: 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 std::int64_t expectInt64()=0
Read a 64-bit integer from the network connection.
virtual bool isError() const =0
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 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()
bool writeBare(yarp::os::ConnectionWriter &connection) const override
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
bool readBare(yarp::os::ConnectionReader &connection) override
static constexpr const char * typeText
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerInit > rosStyle
bool readBottle(yarp::os::ConnectionReader &connection) override
yarp::os::Type getType() const override
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerInit > bottleStyle
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
static constexpr const char * typeName
std::vector< yarp::rosmsg::visualization_msgs::InteractiveMarker > markers
static constexpr const char * typeChecksum
The main, catch-all namespace for YARP.