6 #ifndef VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKER_H
7 #define VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKER_H
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
26 template <
class ContainerAllocator>
56 typedef ::geometry_msgs::Pose_<ContainerAllocator>
_pose_type;
59 typedef std::basic_string<char, std::char_traits<char>,
typename ContainerAllocator::template rebind<char>::other >
_name_type;
62 typedef std::basic_string<char, std::char_traits<char>,
typename ContainerAllocator::template rebind<char>::other >
_description_type;
68 typedef std::vector< ::visualization_msgs::MenuEntry_<ContainerAllocator> ,
typename ContainerAllocator::template rebind< ::visualization_msgs::MenuEntry_<ContainerAllocator> >::other >
_menu_entries_type;
71 typedef std::vector< ::visualization_msgs::InteractiveMarkerControl_<ContainerAllocator> ,
typename ContainerAllocator::template rebind< ::visualization_msgs::InteractiveMarkerControl_<ContainerAllocator> >::other >
_controls_type;
78 typedef std::shared_ptr< ::visualization_msgs::InteractiveMarker_<ContainerAllocator> >
Ptr;
79 typedef std::shared_ptr< ::visualization_msgs::InteractiveMarker_<ContainerAllocator>
const>
ConstPtr;
92 template<
typename ContainerAllocator>
93 std::ostream&
operator<<(std::ostream& s, const ::visualization_msgs::InteractiveMarker_<ContainerAllocator> & v)
100 template<
typename ContainerAllocator1,
typename ContainerAllocator2>
101 bool operator==(const ::visualization_msgs::InteractiveMarker_<ContainerAllocator1> & lhs, const ::visualization_msgs::InteractiveMarker_<ContainerAllocator2> & rhs)
103 return lhs.header == rhs.header &&
104 lhs.pose == rhs.pose &&
105 lhs.name == rhs.name &&
106 lhs.description == rhs.description &&
107 lhs.scale == rhs.scale &&
108 lhs.menu_entries == rhs.menu_entries &&
109 lhs.controls == rhs.controls;
112 template<
typename ContainerAllocator1,
typename ContainerAllocator2>
113 bool operator!=(const ::visualization_msgs::InteractiveMarker_<ContainerAllocator1> & lhs, const ::visualization_msgs::InteractiveMarker_<ContainerAllocator2> & rhs)
115 return !(lhs == rhs);
123 namespace message_traits
130 template <
class ContainerAllocator>
135 template <
class ContainerAllocator>
140 template <
class ContainerAllocator>
145 template <
class ContainerAllocator>
150 template <
class ContainerAllocator>
155 template <
class ContainerAllocator>
161 template<
class ContainerAllocator>
166 return "dd86d22909d5a3364b384492e35c10af";
169 static const char*
value(const ::visualization_msgs::InteractiveMarker_<ContainerAllocator>&) {
return value(); }
170 static const uint64_t static_value1 = 0xdd86d22909d5a336ULL;
171 static const uint64_t static_value2 = 0x4b384492e35c10afULL;
174 template<
class ContainerAllocator>
179 return "visualization_msgs/InteractiveMarker";
182 static const char*
value(const ::visualization_msgs::InteractiveMarker_<ContainerAllocator>&) {
return value(); }
185 template<
class ContainerAllocator>
190 return "# Time/frame info.\n"
191 "# If header.time is set to 0, the marker will be retransformed into\n"
192 "# its frame on each timestep. You will receive the pose feedback\n"
193 "# in the same frame.\n"
194 "# Otherwise, you might receive feedback in a different frame.\n"
195 "# For rviz, this will be the current 'fixed frame' set by the user.\n"
198 "# Initial pose. Also, defines the pivot point for rotations.\n"
199 "geometry_msgs/Pose pose\n"
201 "# Identifying string. Must be globally unique in\n"
202 "# the topic that this message is sent through.\n"
205 "# Short description (< 40 characters).\n"
206 "string description\n"
208 "# Scale to be used for default controls (default=1).\n"
211 "# All menu and submenu entries associated with this marker.\n"
212 "MenuEntry[] menu_entries\n"
214 "# List of controls displayed for this marker.\n"
215 "InteractiveMarkerControl[] controls\n"
217 "================================================================================\n"
218 "MSG: std_msgs/Header\n"
219 "# Standard metadata for higher-level stamped data types.\n"
220 "# This is generally used to communicate timestamped data \n"
221 "# in a particular coordinate frame.\n"
223 "# sequence ID: consecutively increasing ID \n"
225 "#Two-integer timestamp that is expressed as:\n"
226 "# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n"
227 "# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n"
228 "# time-handling sugar is provided by the client library\n"
230 "#Frame this data is associated with\n"
233 "================================================================================\n"
234 "MSG: geometry_msgs/Pose\n"
235 "# A representation of pose in free space, composed of position and orientation. \n"
237 "Quaternion orientation\n"
239 "================================================================================\n"
240 "MSG: geometry_msgs/Point\n"
241 "# This contains the position of a point in free space\n"
246 "================================================================================\n"
247 "MSG: geometry_msgs/Quaternion\n"
248 "# This represents an orientation in free space in quaternion form.\n"
255 "================================================================================\n"
256 "MSG: visualization_msgs/MenuEntry\n"
257 "# MenuEntry message.\n"
259 "# Each InteractiveMarker message has an array of MenuEntry messages.\n"
260 "# A collection of MenuEntries together describe a\n"
261 "# menu/submenu/subsubmenu/etc tree, though they are stored in a flat\n"
262 "# array. The tree structure is represented by giving each menu entry\n"
263 "# an ID number and a \"parent_id\" field. Top-level entries are the\n"
264 "# ones with parent_id = 0. Menu entries are ordered within their\n"
265 "# level the same way they are ordered in the containing array. Parent\n"
266 "# entries must appear before their children.\n"
271 "# title = \"fun\"\n"
274 "# title = \"robot\"\n"
277 "# title = \"pr2\"\n"
280 "# title = \"turtle\"\n"
282 "# Gives a menu tree like this:\n"
288 "# ID is a number for each menu entry. Must be unique within the\n"
289 "# control, and should never be 0.\n"
292 "# ID of the parent of this menu entry, if it is a submenu. If this\n"
293 "# menu entry is a top-level entry, set parent_id to 0.\n"
296 "# menu / entry title\n"
299 "# Arguments to command indicated by command_type (below)\n"
302 "# Command_type stores the type of response desired when this menu\n"
303 "# entry is clicked.\n"
304 "# FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.\n"
305 "# ROSRUN: execute \"rosrun\" with arguments given in the command field (above).\n"
306 "# ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).\n"
309 "uint8 ROSLAUNCH=2\n"
310 "uint8 command_type\n"
312 "================================================================================\n"
313 "MSG: visualization_msgs/InteractiveMarkerControl\n"
314 "# Represents a control that is to be displayed together with an interactive marker\n"
316 "# Identifying string for this control.\n"
317 "# You need to assign a unique value to this to receive feedback from the GUI\n"
318 "# on what actions the user performs on this control (e.g. a button click).\n"
322 "# Defines the local coordinate frame (relative to the pose of the parent\n"
323 "# interactive marker) in which is being rotated and translated.\n"
324 "# Default: Identity\n"
325 "geometry_msgs/Quaternion orientation\n"
328 "# Orientation mode: controls how orientation changes.\n"
329 "# INHERIT: Follow orientation of interactive marker\n"
330 "# FIXED: Keep orientation fixed at initial state\n"
331 "# VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).\n"
332 "uint8 INHERIT = 0 \n"
334 "uint8 VIEW_FACING = 2\n"
336 "uint8 orientation_mode\n"
338 "# Interaction mode for this control\n"
340 "# NONE: This control is only meant for visualization; no context menu.\n"
341 "# MENU: Like NONE, but right-click menu is active.\n"
342 "# BUTTON: Element can be left-clicked.\n"
343 "# MOVE_AXIS: Translate along local x-axis.\n"
344 "# MOVE_PLANE: Translate in local y-z plane.\n"
345 "# ROTATE_AXIS: Rotate around local x-axis.\n"
346 "# MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.\n"
350 "uint8 MOVE_AXIS = 3 \n"
351 "uint8 MOVE_PLANE = 4\n"
352 "uint8 ROTATE_AXIS = 5\n"
353 "uint8 MOVE_ROTATE = 6\n"
354 "# \"3D\" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.\n"
355 "# MOVE_3D: Translate freely in 3D space.\n"
356 "# ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.\n"
357 "# MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.\n"
358 "uint8 MOVE_3D = 7\n"
359 "uint8 ROTATE_3D = 8\n"
360 "uint8 MOVE_ROTATE_3D = 9\n"
362 "uint8 interaction_mode\n"
365 "# If true, the contained markers will also be visible\n"
366 "# when the gui is not in interactive mode.\n"
367 "bool always_visible\n"
370 "# Markers to be displayed as custom visual representation.\n"
371 "# Leave this empty to use the default control handles.\n"
374 "# - The markers can be defined in an arbitrary coordinate frame,\n"
375 "# but will be transformed into the local frame of the interactive marker.\n"
376 "# - If the header of a marker is empty, its pose will be interpreted as \n"
377 "# relative to the pose of the parent interactive marker.\n"
381 "# In VIEW_FACING mode, set this to true if you don't want the markers\n"
382 "# to be aligned with the camera view point. The markers will show up\n"
383 "# as in INHERIT mode.\n"
384 "bool independent_marker_orientation\n"
387 "# Short description (< 40 characters) of what this control does,\n"
388 "# e.g. \"Move the robot\". \n"
389 "# Default: A generic description based on the interaction mode\n"
390 "string description\n"
392 "================================================================================\n"
393 "MSG: visualization_msgs/Marker\n"
394 "# 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"
400 "uint8 LINE_STRIP=4\n"
401 "uint8 LINE_LIST=5\n"
402 "uint8 CUBE_LIST=6\n"
403 "uint8 SPHERE_LIST=7\n"
405 "uint8 TEXT_VIEW_FACING=9\n"
406 "uint8 MESH_RESOURCE=10\n"
407 "uint8 TRIANGLE_LIST=11\n"
412 "uint8 DELETEALL=3\n"
414 "Header header # header for time/frame information\n"
415 "string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n"
416 "int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n"
417 "int32 type # Type of object\n"
418 "int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n"
419 "geometry_msgs/Pose pose # Pose of the object\n"
420 "geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n"
421 "std_msgs/ColorRGBA color # Color [0.0-1.0]\n"
422 "duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n"
423 "bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n"
425 "#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n"
426 "geometry_msgs/Point[] points\n"
427 "#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n"
428 "#number of colors must either be 0 or equal to the number of points\n"
429 "#NOTE: alpha is not yet used\n"
430 "std_msgs/ColorRGBA[] colors\n"
432 "# NOTE: only used for text markers\n"
435 "# NOTE: only used for MESH_RESOURCE markers\n"
436 "string mesh_resource\n"
437 "bool mesh_use_embedded_materials\n"
439 "================================================================================\n"
440 "MSG: geometry_msgs/Vector3\n"
441 "# This represents a vector in free space. \n"
442 "# It is only meant to represent a direction. Therefore, it does not\n"
443 "# make sense to apply a translation to it (e.g., when applying a \n"
444 "# generic rigid transformation to a Vector3, tf2 will only apply the\n"
445 "# rotation). If you want your data to be translatable too, use the\n"
446 "# geometry_msgs/Point message instead.\n"
451 "================================================================================\n"
452 "MSG: std_msgs/ColorRGBA\n"
460 static const char*
value(const ::visualization_msgs::InteractiveMarker_<ContainerAllocator>&) {
return value(); }
468 namespace serialization
473 template<
typename Stream,
typename T>
inline static void allInOne(
Stream& stream, T m)
475 stream.next(m.header);
478 stream.next(m.description);
479 stream.next(m.scale);
480 stream.next(m.menu_entries);
481 stream.next(m.controls);
492 namespace message_operations
495 template<
class ContainerAllocator>
498 template<
typename Stream>
static void stream(Stream& s,
const std::string&
indent, const ::visualization_msgs::InteractiveMarker_<ContainerAllocator>& v)
508 s <<
indent <<
"description: ";
512 s <<
indent <<
"menu_entries[]" << std::endl;
513 for (
size_t i = 0; i < v.menu_entries.size(); ++i)
515 s <<
indent <<
" menu_entries[" << i <<
"]: ";
520 s <<
indent <<
"controls[]" << std::endl;
521 for (
size_t i = 0; i < v.controls.size(); ++i)
523 s <<
indent <<
" controls[" << i <<
"]: ";
534 #endif // VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKER_H