|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
29 #ifndef YARP_ROSMSG_visualization_msgs_InteractiveMarkerInit_h
30 #define YARP_ROSMSG_visualization_msgs_InteractiveMarkerInit_h
48 std::vector<yarp::rosmsg::visualization_msgs::InteractiveMarker>
markers;
84 for (
int i=0; i<len; i++) {
115 for (
int i=0; i<len; i++) {
142 for (
size_t i=0; i<
markers.size(); i++) {
168 for (
size_t i=0; i<
markers.size(); i++) {
191 static constexpr
const char*
typeName =
"visualization_msgs/InteractiveMarkerInit";
194 static constexpr
const char*
typeChecksum =
"d5f2c5045a72456d228676ab91048734";
198 # Identifying string. Must be unique in the topic namespace\n\
199 # that this server works on.\n\
202 # Sequence number.\n\
203 # The client will use this to detect if it has missed a subsequent\n\
204 # update. Every update message will have the same sequence number as\n\
205 # an init message. Clients will likely want to unsubscribe from the\n\
206 # init topic after a successful initialization to avoid receiving\n\
211 InteractiveMarker[] markers\n\
213 ================================================================================\n\
214 MSG: visualization_msgs/InteractiveMarker\n\
215 # Time/frame info.\n\
216 # If header.time is set to 0, the marker will be retransformed into\n\
217 # its frame on each timestep. You will receive the pose feedback\n\
218 # in the same frame.\n\
219 # Otherwise, you might receive feedback in a different frame.\n\
220 # For rviz, this will be the current 'fixed frame' set by the user.\n\
223 # Initial pose. Also, defines the pivot point for rotations.\n\
224 geometry_msgs/Pose pose\n\
226 # Identifying string. Must be globally unique in\n\
227 # the topic that this message is sent through.\n\
230 # Short description (< 40 characters).\n\
231 string description\n\
233 # Scale to be used for default controls (default=1).\n\
236 # All menu and submenu entries associated with this marker.\n\
237 MenuEntry[] menu_entries\n\
239 # List of controls displayed for this marker.\n\
240 InteractiveMarkerControl[] controls\n\
242 ================================================================================\n\
243 MSG: std_msgs/Header\n\
244 # Standard metadata for higher-level stamped data types.\n\
245 # This is generally used to communicate timestamped data \n\
246 # in a particular coordinate frame.\n\
248 # sequence ID: consecutively increasing ID \n\
250 #Two-integer timestamp that is expressed as:\n\
251 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
252 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
253 # time-handling sugar is provided by the client library\n\
255 #Frame this data is associated with\n\
260 ================================================================================\n\
261 MSG: geometry_msgs/Pose\n\
262 # A representation of pose in free space, composed of position and orientation. \n\
264 Quaternion orientation\n\
266 ================================================================================\n\
267 MSG: geometry_msgs/Point\n\
268 # This contains the position of a point in free space\n\
273 ================================================================================\n\
274 MSG: geometry_msgs/Quaternion\n\
275 # This represents an orientation in free space in quaternion form.\n\
282 ================================================================================\n\
283 MSG: visualization_msgs/MenuEntry\n\
284 # MenuEntry message.\n\
286 # Each InteractiveMarker message has an array of MenuEntry messages.\n\
287 # A collection of MenuEntries together describe a\n\
288 # menu/submenu/subsubmenu/etc tree, though they are stored in a flat\n\
289 # array. The tree structure is represented by giving each menu entry\n\
290 # an ID number and a \"parent_id\" field. Top-level entries are the\n\
291 # ones with parent_id = 0. Menu entries are ordered within their\n\
292 # level the same way they are ordered in the containing array. Parent\n\
293 # entries must appear before their children.\n\
301 # title = \"robot\"\n\
307 # title = \"turtle\"\n\
309 # Gives a menu tree like this:\n\
315 # ID is a number for each menu entry. Must be unique within the\n\
316 # control, and should never be 0.\n\
319 # ID of the parent of this menu entry, if it is a submenu. If this\n\
320 # menu entry is a top-level entry, set parent_id to 0.\n\
323 # menu / entry title\n\
326 # Arguments to command indicated by command_type (below)\n\
329 # Command_type stores the type of response desired when this menu\n\
330 # entry is clicked.\n\
331 # FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.\n\
332 # ROSRUN: execute \"rosrun\" with arguments given in the command field (above).\n\
333 # ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).\n\
337 uint8 command_type\n\
339 ================================================================================\n\
340 MSG: visualization_msgs/InteractiveMarkerControl\n\
341 # Represents a control that is to be displayed together with an interactive marker\n\
343 # Identifying string for this control.\n\
344 # You need to assign a unique value to this to receive feedback from the GUI\n\
345 # on what actions the user performs on this control (e.g. a button click).\n\
349 # Defines the local coordinate frame (relative to the pose of the parent\n\
350 # interactive marker) in which is being rotated and translated.\n\
351 # Default: Identity\n\
352 geometry_msgs/Quaternion orientation\n\
355 # Orientation mode: controls how orientation changes.\n\
356 # INHERIT: Follow orientation of interactive marker\n\
357 # FIXED: Keep orientation fixed at initial state\n\
358 # VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).\n\
359 uint8 INHERIT = 0 \n\
361 uint8 VIEW_FACING = 2\n\
363 uint8 orientation_mode\n\
365 # Interaction mode for this control\n\
367 # NONE: This control is only meant for visualization; no context menu.\n\
368 # MENU: Like NONE, but right-click menu is active.\n\
369 # BUTTON: Element can be left-clicked.\n\
370 # MOVE_AXIS: Translate along local x-axis.\n\
371 # MOVE_PLANE: Translate in local y-z plane.\n\
372 # ROTATE_AXIS: Rotate around local x-axis.\n\
373 # MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.\n\
377 uint8 MOVE_AXIS = 3 \n\
378 uint8 MOVE_PLANE = 4\n\
379 uint8 ROTATE_AXIS = 5\n\
380 uint8 MOVE_ROTATE = 6\n\
381 # \"3D\" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.\n\
382 # MOVE_3D: Translate freely in 3D space.\n\
383 # ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.\n\
384 # MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.\n\
386 uint8 ROTATE_3D = 8\n\
387 uint8 MOVE_ROTATE_3D = 9\n\
389 uint8 interaction_mode\n\
392 # If true, the contained markers will also be visible\n\
393 # when the gui is not in interactive mode.\n\
394 bool always_visible\n\
397 # Markers to be displayed as custom visual representation.\n\
398 # Leave this empty to use the default control handles.\n\
401 # - The markers can be defined in an arbitrary coordinate frame,\n\
402 # but will be transformed into the local frame of the interactive marker.\n\
403 # - If the header of a marker is empty, its pose will be interpreted as \n\
404 # relative to the pose of the parent interactive marker.\n\
408 # In VIEW_FACING mode, set this to true if you don't want the markers\n\
409 # to be aligned with the camera view point. The markers will show up\n\
410 # as in INHERIT mode.\n\
411 bool independent_marker_orientation\n\
414 # Short description (< 40 characters) of what this control does,\n\
415 # e.g. \"Move the robot\". \n\
416 # Default: A generic description based on the interaction mode\n\
417 string description\n\
419 ================================================================================\n\
420 MSG: visualization_msgs/Marker\n\
421 # 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\
427 uint8 LINE_STRIP=4\n\
430 uint8 SPHERE_LIST=7\n\
432 uint8 TEXT_VIEW_FACING=9\n\
433 uint8 MESH_RESOURCE=10\n\
434 uint8 TRIANGLE_LIST=11\n\
441 Header header # header for time/frame information\n\
442 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
443 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
444 int32 type # Type of object\n\
445 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
446 geometry_msgs/Pose pose # Pose of the object\n\
447 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
448 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
449 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
450 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
452 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
453 geometry_msgs/Point[] points\n\
454 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
455 #number of colors must either be 0 or equal to the number of points\n\
456 #NOTE: alpha is not yet used\n\
457 std_msgs/ColorRGBA[] colors\n\
459 # NOTE: only used for text markers\n\
462 # NOTE: only used for MESH_RESOURCE markers\n\
463 string mesh_resource\n\
464 bool mesh_use_embedded_materials\n\
466 ================================================================================\n\
467 MSG: geometry_msgs/Vector3\n\
468 # This represents a vector in free space. \n\
469 # It is only meant to represent a direction. Therefore, it does not\n\
470 # make sense to apply a translation to it (e.g., when applying a \n\
471 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
472 # rotation). If you want your data to be translatable too, use the\n\
473 # geometry_msgs/Point message instead.\n\
478 ================================================================================\n\
479 MSG: std_msgs/ColorRGBA\n\
499 #endif // YARP_ROSMSG_visualization_msgs_InteractiveMarkerInit_h
static constexpr const char * typeText
bool readString(std::string &str, bool *is_vocab=nullptr)
virtual bool read(yarp::os::idl::WireReader &reader)
virtual bool isBareMode() const =0
Check if the connection is bare mode.
#define BOTTLE_TAG_STRING
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerInit > bottleStyle
static constexpr const char * typeName
std::int64_t expectInt64()
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerInit > rosStyle
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual bool isError() const =0
static Type byName(const char *name)
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)
yarp::os::Type getType() const override
An interface for writing to a network connection.
virtual bool isError() const =0
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
bool writeBare(yarp::os::ConnectionWriter &connection) const override
bool readBottle(yarp::os::ConnectionReader &connection) override
virtual bool isBareMode() const =0
Check if the connection is bare mode.
std::vector< yarp::rosmsg::visualization_msgs::InteractiveMarker > markers
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.
IDL-friendly connection reader.
An interface for reading from a network connection.
static constexpr const char * typeChecksum
virtual void appendInt64(std::int64_t data)=0
Send a representation of a 64-bit integer to the network connection.
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.
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).
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
virtual bool write(const yarp::os::idl::WireWriter &writer) const