6 #ifndef VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERUPDATE_H
7 #define VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERUPDATE_H
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
24 template <
class ContainerAllocator>
49 typedef std::basic_string<char, std::char_traits<char>,
typename ContainerAllocator::template rebind<char>::other >
_server_id_type;
58 typedef std::vector< ::visualization_msgs::InteractiveMarker_<ContainerAllocator> ,
typename ContainerAllocator::template rebind< ::visualization_msgs::InteractiveMarker_<ContainerAllocator> >::other >
_markers_type;
61 typedef std::vector< ::visualization_msgs::InteractiveMarkerPose_<ContainerAllocator> ,
typename ContainerAllocator::template rebind< ::visualization_msgs::InteractiveMarkerPose_<ContainerAllocator> >::other >
_poses_type;
64 typedef std::vector<std::basic_string<char, std::char_traits<char>,
typename ContainerAllocator::template rebind<char>::other > ,
typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>,
typename ContainerAllocator::template rebind<char>::other > >::other >
_erases_type;
70 #if defined(_WIN32) && defined(KEEP_ALIVE)
73 #if defined(_WIN32) && defined(UPDATE)
83 typedef std::shared_ptr< ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator> >
Ptr;
84 typedef std::shared_ptr< ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator>
const>
ConstPtr;
101 template<
typename ContainerAllocator>
102 std::ostream&
operator<<(std::ostream& s, const ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator> & v)
109 template<
typename ContainerAllocator1,
typename ContainerAllocator2>
110 bool operator==(const ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator1> & lhs, const ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator2> & rhs)
112 return lhs.server_id == rhs.server_id &&
113 lhs.seq_num == rhs.seq_num &&
114 lhs.type == rhs.type &&
115 lhs.markers == rhs.markers &&
116 lhs.poses == rhs.poses &&
117 lhs.erases == rhs.erases;
120 template<
typename ContainerAllocator1,
typename ContainerAllocator2>
121 bool operator!=(const ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator1> & lhs, const ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator2> & rhs)
123 return !(lhs == rhs);
131 namespace message_traits
138 template <
class ContainerAllocator>
143 template <
class ContainerAllocator>
148 template <
class ContainerAllocator>
153 template <
class ContainerAllocator>
158 template <
class ContainerAllocator>
163 template <
class ContainerAllocator>
169 template<
class ContainerAllocator>
174 return "710d308d0a9276d65945e92dd30b3946";
177 static const char*
value(const ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator>&) {
return value(); }
178 static const uint64_t static_value1 = 0x710d308d0a9276d6ULL;
179 static const uint64_t static_value2 = 0x5945e92dd30b3946ULL;
182 template<
class ContainerAllocator>
187 return "visualization_msgs/InteractiveMarkerUpdate";
190 static const char*
value(const ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator>&) {
return value(); }
193 template<
class ContainerAllocator>
198 return "# 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 an update.\n"
206 "# Type holds the purpose of this message. It must be one of UPDATE or KEEP_ALIVE.\n"
207 "# UPDATE: Incremental update to previous state. \n"
208 "# The sequence number must be 1 higher than for\n"
209 "# the previous update.\n"
210 "# KEEP_ALIVE: Indicates the that the server is still living.\n"
211 "# The sequence number does not increase.\n"
212 "# No payload data should be filled out (markers, poses, or erases).\n"
213 "uint8 KEEP_ALIVE = 0\n"
218 "#Note: No guarantees on the order of processing.\n"
219 "# Contents must be kept consistent by sender.\n"
221 "#Markers to be added or updated\n"
222 "InteractiveMarker[] markers\n"
224 "#Poses of markers that should be moved\n"
225 "InteractiveMarkerPose[] poses\n"
227 "#Names of markers to be erased\n"
230 "================================================================================\n"
231 "MSG: visualization_msgs/InteractiveMarker\n"
232 "# Time/frame info.\n"
233 "# If header.time is set to 0, the marker will be retransformed into\n"
234 "# its frame on each timestep. You will receive the pose feedback\n"
235 "# in the same frame.\n"
236 "# Otherwise, you might receive feedback in a different frame.\n"
237 "# For rviz, this will be the current 'fixed frame' set by the user.\n"
240 "# Initial pose. Also, defines the pivot point for rotations.\n"
241 "geometry_msgs/Pose pose\n"
243 "# Identifying string. Must be globally unique in\n"
244 "# the topic that this message is sent through.\n"
247 "# Short description (< 40 characters).\n"
248 "string description\n"
250 "# Scale to be used for default controls (default=1).\n"
253 "# All menu and submenu entries associated with this marker.\n"
254 "MenuEntry[] menu_entries\n"
256 "# List of controls displayed for this marker.\n"
257 "InteractiveMarkerControl[] controls\n"
259 "================================================================================\n"
260 "MSG: std_msgs/Header\n"
261 "# Standard metadata for higher-level stamped data types.\n"
262 "# This is generally used to communicate timestamped data \n"
263 "# in a particular coordinate frame.\n"
265 "# sequence ID: consecutively increasing ID \n"
267 "#Two-integer timestamp that is expressed as:\n"
268 "# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n"
269 "# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n"
270 "# time-handling sugar is provided by the client library\n"
272 "#Frame this data is associated with\n"
275 "================================================================================\n"
276 "MSG: geometry_msgs/Pose\n"
277 "# A representation of pose in free space, composed of position and orientation. \n"
279 "Quaternion orientation\n"
281 "================================================================================\n"
282 "MSG: geometry_msgs/Point\n"
283 "# This contains the position of a point in free space\n"
288 "================================================================================\n"
289 "MSG: geometry_msgs/Quaternion\n"
290 "# This represents an orientation in free space in quaternion form.\n"
297 "================================================================================\n"
298 "MSG: visualization_msgs/MenuEntry\n"
299 "# MenuEntry message.\n"
301 "# Each InteractiveMarker message has an array of MenuEntry messages.\n"
302 "# A collection of MenuEntries together describe a\n"
303 "# menu/submenu/subsubmenu/etc tree, though they are stored in a flat\n"
304 "# array. The tree structure is represented by giving each menu entry\n"
305 "# an ID number and a \"parent_id\" field. Top-level entries are the\n"
306 "# ones with parent_id = 0. Menu entries are ordered within their\n"
307 "# level the same way they are ordered in the containing array. Parent\n"
308 "# entries must appear before their children.\n"
313 "# title = \"fun\"\n"
316 "# title = \"robot\"\n"
319 "# title = \"pr2\"\n"
322 "# title = \"turtle\"\n"
324 "# Gives a menu tree like this:\n"
330 "# ID is a number for each menu entry. Must be unique within the\n"
331 "# control, and should never be 0.\n"
334 "# ID of the parent of this menu entry, if it is a submenu. If this\n"
335 "# menu entry is a top-level entry, set parent_id to 0.\n"
338 "# menu / entry title\n"
341 "# Arguments to command indicated by command_type (below)\n"
344 "# Command_type stores the type of response desired when this menu\n"
345 "# entry is clicked.\n"
346 "# FEEDBACK: send an InteractiveMarkerFeedback message with menu_entry_id set to this entry's id.\n"
347 "# ROSRUN: execute \"rosrun\" with arguments given in the command field (above).\n"
348 "# ROSLAUNCH: execute \"roslaunch\" with arguments given in the command field (above).\n"
351 "uint8 ROSLAUNCH=2\n"
352 "uint8 command_type\n"
354 "================================================================================\n"
355 "MSG: visualization_msgs/InteractiveMarkerControl\n"
356 "# Represents a control that is to be displayed together with an interactive marker\n"
358 "# Identifying string for this control.\n"
359 "# You need to assign a unique value to this to receive feedback from the GUI\n"
360 "# on what actions the user performs on this control (e.g. a button click).\n"
364 "# Defines the local coordinate frame (relative to the pose of the parent\n"
365 "# interactive marker) in which is being rotated and translated.\n"
366 "# Default: Identity\n"
367 "geometry_msgs/Quaternion orientation\n"
370 "# Orientation mode: controls how orientation changes.\n"
371 "# INHERIT: Follow orientation of interactive marker\n"
372 "# FIXED: Keep orientation fixed at initial state\n"
373 "# VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).\n"
374 "uint8 INHERIT = 0 \n"
376 "uint8 VIEW_FACING = 2\n"
378 "uint8 orientation_mode\n"
380 "# Interaction mode for this control\n"
382 "# NONE: This control is only meant for visualization; no context menu.\n"
383 "# MENU: Like NONE, but right-click menu is active.\n"
384 "# BUTTON: Element can be left-clicked.\n"
385 "# MOVE_AXIS: Translate along local x-axis.\n"
386 "# MOVE_PLANE: Translate in local y-z plane.\n"
387 "# ROTATE_AXIS: Rotate around local x-axis.\n"
388 "# MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.\n"
392 "uint8 MOVE_AXIS = 3 \n"
393 "uint8 MOVE_PLANE = 4\n"
394 "uint8 ROTATE_AXIS = 5\n"
395 "uint8 MOVE_ROTATE = 6\n"
396 "# \"3D\" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.\n"
397 "# MOVE_3D: Translate freely in 3D space.\n"
398 "# ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.\n"
399 "# MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.\n"
400 "uint8 MOVE_3D = 7\n"
401 "uint8 ROTATE_3D = 8\n"
402 "uint8 MOVE_ROTATE_3D = 9\n"
404 "uint8 interaction_mode\n"
407 "# If true, the contained markers will also be visible\n"
408 "# when the gui is not in interactive mode.\n"
409 "bool always_visible\n"
412 "# Markers to be displayed as custom visual representation.\n"
413 "# Leave this empty to use the default control handles.\n"
416 "# - The markers can be defined in an arbitrary coordinate frame,\n"
417 "# but will be transformed into the local frame of the interactive marker.\n"
418 "# - If the header of a marker is empty, its pose will be interpreted as \n"
419 "# relative to the pose of the parent interactive marker.\n"
423 "# In VIEW_FACING mode, set this to true if you don't want the markers\n"
424 "# to be aligned with the camera view point. The markers will show up\n"
425 "# as in INHERIT mode.\n"
426 "bool independent_marker_orientation\n"
429 "# Short description (< 40 characters) of what this control does,\n"
430 "# e.g. \"Move the robot\". \n"
431 "# Default: A generic description based on the interaction mode\n"
432 "string description\n"
434 "================================================================================\n"
435 "MSG: visualization_msgs/Marker\n"
436 "# 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"
442 "uint8 LINE_STRIP=4\n"
443 "uint8 LINE_LIST=5\n"
444 "uint8 CUBE_LIST=6\n"
445 "uint8 SPHERE_LIST=7\n"
447 "uint8 TEXT_VIEW_FACING=9\n"
448 "uint8 MESH_RESOURCE=10\n"
449 "uint8 TRIANGLE_LIST=11\n"
454 "uint8 DELETEALL=3\n"
456 "Header header # header for time/frame information\n"
457 "string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n"
458 "int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n"
459 "int32 type # Type of object\n"
460 "int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n"
461 "geometry_msgs/Pose pose # Pose of the object\n"
462 "geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n"
463 "std_msgs/ColorRGBA color # Color [0.0-1.0]\n"
464 "duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n"
465 "bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n"
467 "#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n"
468 "geometry_msgs/Point[] points\n"
469 "#Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n"
470 "#number of colors must either be 0 or equal to the number of points\n"
471 "#NOTE: alpha is not yet used\n"
472 "std_msgs/ColorRGBA[] colors\n"
474 "# NOTE: only used for text markers\n"
477 "# NOTE: only used for MESH_RESOURCE markers\n"
478 "string mesh_resource\n"
479 "bool mesh_use_embedded_materials\n"
481 "================================================================================\n"
482 "MSG: geometry_msgs/Vector3\n"
483 "# This represents a vector in free space. \n"
484 "# It is only meant to represent a direction. Therefore, it does not\n"
485 "# make sense to apply a translation to it (e.g., when applying a \n"
486 "# generic rigid transformation to a Vector3, tf2 will only apply the\n"
487 "# rotation). If you want your data to be translatable too, use the\n"
488 "# geometry_msgs/Point message instead.\n"
493 "================================================================================\n"
494 "MSG: std_msgs/ColorRGBA\n"
500 "================================================================================\n"
501 "MSG: visualization_msgs/InteractiveMarkerPose\n"
502 "# Time/frame info.\n"
505 "# Initial pose. Also, defines the pivot point for rotations.\n"
506 "geometry_msgs/Pose pose\n"
508 "# Identifying string. Must be globally unique in\n"
509 "# the topic that this message is sent through.\n"
514 static const char*
value(const ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator>&) {
return value(); }
522 namespace serialization
527 template<
typename Stream,
typename T>
inline static void allInOne(
Stream& stream, T m)
529 stream.next(m.server_id);
530 stream.next(m.seq_num);
532 stream.next(m.markers);
533 stream.next(m.poses);
534 stream.next(m.erases);
545 namespace message_operations
548 template<
class ContainerAllocator>
551 template<
typename Stream>
static void stream(Stream& s,
const std::string&
indent, const ::visualization_msgs::InteractiveMarkerUpdate_<ContainerAllocator>& v)
559 s <<
indent <<
"markers[]" << std::endl;
560 for (
size_t i = 0; i < v.markers.size(); ++i)
562 s <<
indent <<
" markers[" << i <<
"]: ";
567 s <<
indent <<
"poses[]" << std::endl;
568 for (
size_t i = 0; i < v.poses.size(); ++i)
570 s <<
indent <<
" poses[" << i <<
"]: ";
575 s <<
indent <<
"erases[]" << std::endl;
576 for (
size_t i = 0; i < v.erases.size(); ++i)
578 s <<
indent <<
" erases[" << i <<
"]: ";
587 #endif // VISUALIZATION_MSGS_MESSAGE_INTERACTIVEMARKERUPDATE_H