YARP
Yet Another Robot Platform
InteractiveMarkerControl.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 // This is an automatically generated file.
10 
11 // Generated from the following "visualization_msgs/InteractiveMarkerControl" msg definition:
12 // # Represents a control that is to be displayed together with an interactive marker
13 //
14 // # Identifying string for this control.
15 // # You need to assign a unique value to this to receive feedback from the GUI
16 // # on what actions the user performs on this control (e.g. a button click).
17 // string name
18 //
19 //
20 // # Defines the local coordinate frame (relative to the pose of the parent
21 // # interactive marker) in which is being rotated and translated.
22 // # Default: Identity
23 // geometry_msgs/Quaternion orientation
24 //
25 //
26 // # Orientation mode: controls how orientation changes.
27 // # INHERIT: Follow orientation of interactive marker
28 // # FIXED: Keep orientation fixed at initial state
29 // # VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).
30 // uint8 INHERIT = 0
31 // uint8 FIXED = 1
32 // uint8 VIEW_FACING = 2
33 //
34 // uint8 orientation_mode
35 //
36 // # Interaction mode for this control
37 // #
38 // # NONE: This control is only meant for visualization; no context menu.
39 // # MENU: Like NONE, but right-click menu is active.
40 // # BUTTON: Element can be left-clicked.
41 // # MOVE_AXIS: Translate along local x-axis.
42 // # MOVE_PLANE: Translate in local y-z plane.
43 // # ROTATE_AXIS: Rotate around local x-axis.
44 // # MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.
45 // uint8 NONE = 0
46 // uint8 MENU = 1
47 // uint8 BUTTON = 2
48 // uint8 MOVE_AXIS = 3
49 // uint8 MOVE_PLANE = 4
50 // uint8 ROTATE_AXIS = 5
51 // uint8 MOVE_ROTATE = 6
52 // # "3D" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.
53 // # MOVE_3D: Translate freely in 3D space.
54 // # ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.
55 // # MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.
56 // uint8 MOVE_3D = 7
57 // uint8 ROTATE_3D = 8
58 // uint8 MOVE_ROTATE_3D = 9
59 //
60 // uint8 interaction_mode
61 //
62 //
63 // # If true, the contained markers will also be visible
64 // # when the gui is not in interactive mode.
65 // bool always_visible
66 //
67 //
68 // # Markers to be displayed as custom visual representation.
69 // # Leave this empty to use the default control handles.
70 // #
71 // # Note:
72 // # - The markers can be defined in an arbitrary coordinate frame,
73 // # but will be transformed into the local frame of the interactive marker.
74 // # - If the header of a marker is empty, its pose will be interpreted as
75 // # relative to the pose of the parent interactive marker.
76 // Marker[] markers
77 //
78 //
79 // # In VIEW_FACING mode, set this to true if you don't want the markers
80 // # to be aligned with the camera view point. The markers will show up
81 // # as in INHERIT mode.
82 // bool independent_marker_orientation
83 //
84 //
85 // # Short description (< 40 characters) of what this control does,
86 // # e.g. "Move the robot".
87 // # Default: A generic description based on the interaction mode
88 // string description
89 // Instances of this class can be read and written with YARP ports,
90 // using a ROS-compatible format.
91 
92 #ifndef YARP_ROSMSG_visualization_msgs_InteractiveMarkerControl_h
93 #define YARP_ROSMSG_visualization_msgs_InteractiveMarkerControl_h
94 
95 #include <yarp/os/Wire.h>
96 #include <yarp/os/Type.h>
97 #include <yarp/os/idl/WireTypes.h>
98 #include <string>
99 #include <vector>
102 
103 namespace yarp {
104 namespace rosmsg {
105 namespace visualization_msgs {
106 
108 {
109 public:
110  std::string name;
112  static const std::uint8_t INHERIT = 0;
113  static const std::uint8_t FIXED = 1;
114  static const std::uint8_t VIEW_FACING = 2;
115  std::uint8_t orientation_mode;
116  static const std::uint8_t NONE = 0;
117  static const std::uint8_t MENU = 1;
118  static const std::uint8_t BUTTON = 2;
119  static const std::uint8_t MOVE_AXIS = 3;
120  static const std::uint8_t MOVE_PLANE = 4;
121  static const std::uint8_t ROTATE_AXIS = 5;
122  static const std::uint8_t MOVE_ROTATE = 6;
123  static const std::uint8_t MOVE_3D = 7;
124  static const std::uint8_t ROTATE_3D = 8;
125  static const std::uint8_t MOVE_ROTATE_3D = 9;
126  std::uint8_t interaction_mode;
128  std::vector<yarp::rosmsg::visualization_msgs::Marker> markers;
130  std::string description;
131 
133  name(""),
134  orientation(),
135  orientation_mode(0),
136  interaction_mode(0),
137  always_visible(false),
138  markers(),
140  description("")
141  {
142  }
143 
144  void clear()
145  {
146  // *** name ***
147  name = "";
148 
149  // *** orientation ***
150  orientation.clear();
151 
152  // *** INHERIT ***
153 
154  // *** FIXED ***
155 
156  // *** VIEW_FACING ***
157 
158  // *** orientation_mode ***
159  orientation_mode = 0;
160 
161  // *** NONE ***
162 
163  // *** MENU ***
164 
165  // *** BUTTON ***
166 
167  // *** MOVE_AXIS ***
168 
169  // *** MOVE_PLANE ***
170 
171  // *** ROTATE_AXIS ***
172 
173  // *** MOVE_ROTATE ***
174 
175  // *** MOVE_3D ***
176 
177  // *** ROTATE_3D ***
178 
179  // *** MOVE_ROTATE_3D ***
180 
181  // *** interaction_mode ***
182  interaction_mode = 0;
183 
184  // *** always_visible ***
185  always_visible = false;
186 
187  // *** markers ***
188  markers.clear();
189 
190  // *** independent_marker_orientation ***
192 
193  // *** description ***
194  description = "";
195  }
196 
197  bool readBare(yarp::os::ConnectionReader& connection) override
198  {
199  // *** name ***
200  int len = connection.expectInt32();
201  name.resize(len);
202  if (!connection.expectBlock((char*)name.c_str(), len)) {
203  return false;
204  }
205 
206  // *** orientation ***
207  if (!orientation.read(connection)) {
208  return false;
209  }
210 
211  // *** orientation_mode ***
212  orientation_mode = connection.expectInt8();
213 
214  // *** interaction_mode ***
215  interaction_mode = connection.expectInt8();
216 
217  // *** always_visible ***
218  if (!connection.expectBlock((char*)&always_visible, 1)) {
219  return false;
220  }
221 
222  // *** markers ***
223  len = connection.expectInt32();
224  markers.resize(len);
225  for (int i=0; i<len; i++) {
226  if (!markers[i].read(connection)) {
227  return false;
228  }
229  }
230 
231  // *** independent_marker_orientation ***
232  if (!connection.expectBlock((char*)&independent_marker_orientation, 1)) {
233  return false;
234  }
235 
236  // *** description ***
237  len = connection.expectInt32();
238  description.resize(len);
239  if (!connection.expectBlock((char*)description.c_str(), len)) {
240  return false;
241  }
242 
243  return !connection.isError();
244  }
245 
246  bool readBottle(yarp::os::ConnectionReader& connection) override
247  {
248  connection.convertTextMode();
249  yarp::os::idl::WireReader reader(connection);
250  if (!reader.readListHeader(21)) {
251  return false;
252  }
253 
254  // *** name ***
255  if (!reader.readString(name)) {
256  return false;
257  }
258 
259  // *** orientation ***
260  if (!orientation.read(connection)) {
261  return false;
262  }
263 
264  // *** orientation_mode ***
265  orientation_mode = reader.expectInt8();
266 
267  // *** interaction_mode ***
268  interaction_mode = reader.expectInt8();
269 
270  // *** always_visible ***
271  always_visible = reader.expectInt8();
272 
273  // *** markers ***
274  if (connection.expectInt32() != BOTTLE_TAG_LIST) {
275  return false;
276  }
277  int len = connection.expectInt32();
278  markers.resize(len);
279  for (int i=0; i<len; i++) {
280  if (!markers[i].read(connection)) {
281  return false;
282  }
283  }
284 
285  // *** independent_marker_orientation ***
287 
288  // *** description ***
289  if (!reader.readString(description)) {
290  return false;
291  }
292 
293  return !connection.isError();
294  }
295 
297  bool read(yarp::os::ConnectionReader& connection) override
298  {
299  return (connection.isBareMode() ? readBare(connection)
300  : readBottle(connection));
301  }
302 
303  bool writeBare(yarp::os::ConnectionWriter& connection) const override
304  {
305  // *** name ***
306  connection.appendInt32(name.length());
307  connection.appendExternalBlock((char*)name.c_str(), name.length());
308 
309  // *** orientation ***
310  if (!orientation.write(connection)) {
311  return false;
312  }
313 
314  // *** orientation_mode ***
315  connection.appendInt8(orientation_mode);
316 
317  // *** interaction_mode ***
318  connection.appendInt8(interaction_mode);
319 
320  // *** always_visible ***
321  connection.appendBlock((char*)&always_visible, 1);
322 
323  // *** markers ***
324  connection.appendInt32(markers.size());
325  for (size_t i=0; i<markers.size(); i++) {
326  if (!markers[i].write(connection)) {
327  return false;
328  }
329  }
330 
331  // *** independent_marker_orientation ***
332  connection.appendBlock((char*)&independent_marker_orientation, 1);
333 
334  // *** description ***
335  connection.appendInt32(description.length());
336  connection.appendExternalBlock((char*)description.c_str(), description.length());
337 
338  return !connection.isError();
339  }
340 
341  bool writeBottle(yarp::os::ConnectionWriter& connection) const override
342  {
343  connection.appendInt32(BOTTLE_TAG_LIST);
344  connection.appendInt32(21);
345 
346  // *** name ***
347  connection.appendInt32(BOTTLE_TAG_STRING);
348  connection.appendInt32(name.length());
349  connection.appendExternalBlock((char*)name.c_str(), name.length());
350 
351  // *** orientation ***
352  if (!orientation.write(connection)) {
353  return false;
354  }
355 
356  // *** orientation_mode ***
357  connection.appendInt32(BOTTLE_TAG_INT8);
358  connection.appendInt8(orientation_mode);
359 
360  // *** interaction_mode ***
361  connection.appendInt32(BOTTLE_TAG_INT8);
362  connection.appendInt8(interaction_mode);
363 
364  // *** always_visible ***
365  connection.appendInt32(BOTTLE_TAG_INT8);
366  connection.appendInt8(always_visible);
367 
368  // *** markers ***
369  connection.appendInt32(BOTTLE_TAG_LIST);
370  connection.appendInt32(markers.size());
371  for (size_t i=0; i<markers.size(); i++) {
372  if (!markers[i].write(connection)) {
373  return false;
374  }
375  }
376 
377  // *** independent_marker_orientation ***
378  connection.appendInt32(BOTTLE_TAG_INT8);
380 
381  // *** description ***
382  connection.appendInt32(BOTTLE_TAG_STRING);
383  connection.appendInt32(description.length());
384  connection.appendExternalBlock((char*)description.c_str(), description.length());
385 
386  connection.convertTextMode();
387  return !connection.isError();
388  }
389 
391  bool write(yarp::os::ConnectionWriter& connection) const override
392  {
393  return (connection.isBareMode() ? writeBare(connection)
394  : writeBottle(connection));
395  }
396 
397  // This class will serialize ROS style or YARP style depending on protocol.
398  // If you need to force a serialization style, use one of these classes:
401 
402  // The name for this message, ROS will need this
403  static constexpr const char* typeName = "visualization_msgs/InteractiveMarkerControl";
404 
405  // The checksum for this message, ROS will need this
406  static constexpr const char* typeChecksum = "b3c81e785788195d1840b86c28da1aac";
407 
408  // The source text for this message, ROS will need this
409  static constexpr const char* typeText = "\
410 # Represents a control that is to be displayed together with an interactive marker\n\
411 \n\
412 # Identifying string for this control.\n\
413 # You need to assign a unique value to this to receive feedback from the GUI\n\
414 # on what actions the user performs on this control (e.g. a button click).\n\
415 string name\n\
416 \n\
417 \n\
418 # Defines the local coordinate frame (relative to the pose of the parent\n\
419 # interactive marker) in which is being rotated and translated.\n\
420 # Default: Identity\n\
421 geometry_msgs/Quaternion orientation\n\
422 \n\
423 \n\
424 # Orientation mode: controls how orientation changes.\n\
425 # INHERIT: Follow orientation of interactive marker\n\
426 # FIXED: Keep orientation fixed at initial state\n\
427 # VIEW_FACING: Align y-z plane with screen (x: forward, y:left, z:up).\n\
428 uint8 INHERIT = 0 \n\
429 uint8 FIXED = 1\n\
430 uint8 VIEW_FACING = 2\n\
431 \n\
432 uint8 orientation_mode\n\
433 \n\
434 # Interaction mode for this control\n\
435 # \n\
436 # NONE: This control is only meant for visualization; no context menu.\n\
437 # MENU: Like NONE, but right-click menu is active.\n\
438 # BUTTON: Element can be left-clicked.\n\
439 # MOVE_AXIS: Translate along local x-axis.\n\
440 # MOVE_PLANE: Translate in local y-z plane.\n\
441 # ROTATE_AXIS: Rotate around local x-axis.\n\
442 # MOVE_ROTATE: Combines MOVE_PLANE and ROTATE_AXIS.\n\
443 uint8 NONE = 0 \n\
444 uint8 MENU = 1\n\
445 uint8 BUTTON = 2\n\
446 uint8 MOVE_AXIS = 3 \n\
447 uint8 MOVE_PLANE = 4\n\
448 uint8 ROTATE_AXIS = 5\n\
449 uint8 MOVE_ROTATE = 6\n\
450 # \"3D\" interaction modes work with the mouse+SHIFT+CTRL or with 3D cursors.\n\
451 # MOVE_3D: Translate freely in 3D space.\n\
452 # ROTATE_3D: Rotate freely in 3D space about the origin of parent frame.\n\
453 # MOVE_ROTATE_3D: Full 6-DOF freedom of translation and rotation about the cursor origin.\n\
454 uint8 MOVE_3D = 7\n\
455 uint8 ROTATE_3D = 8\n\
456 uint8 MOVE_ROTATE_3D = 9\n\
457 \n\
458 uint8 interaction_mode\n\
459 \n\
460 \n\
461 # If true, the contained markers will also be visible\n\
462 # when the gui is not in interactive mode.\n\
463 bool always_visible\n\
464 \n\
465 \n\
466 # Markers to be displayed as custom visual representation.\n\
467 # Leave this empty to use the default control handles.\n\
468 #\n\
469 # Note: \n\
470 # - The markers can be defined in an arbitrary coordinate frame,\n\
471 # but will be transformed into the local frame of the interactive marker.\n\
472 # - If the header of a marker is empty, its pose will be interpreted as \n\
473 # relative to the pose of the parent interactive marker.\n\
474 Marker[] markers\n\
475 \n\
476 \n\
477 # In VIEW_FACING mode, set this to true if you don't want the markers\n\
478 # to be aligned with the camera view point. The markers will show up\n\
479 # as in INHERIT mode.\n\
480 bool independent_marker_orientation\n\
481 \n\
482 \n\
483 # Short description (< 40 characters) of what this control does,\n\
484 # e.g. \"Move the robot\". \n\
485 # Default: A generic description based on the interaction mode\n\
486 string description\n\
487 \n\
488 ================================================================================\n\
489 MSG: geometry_msgs/Quaternion\n\
490 # This represents an orientation in free space in quaternion form.\n\
491 \n\
492 float64 x\n\
493 float64 y\n\
494 float64 z\n\
495 float64 w\n\
496 \n\
497 ================================================================================\n\
498 MSG: visualization_msgs/Marker\n\
499 # 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\
500 \n\
501 uint8 ARROW=0\n\
502 uint8 CUBE=1\n\
503 uint8 SPHERE=2\n\
504 uint8 CYLINDER=3\n\
505 uint8 LINE_STRIP=4\n\
506 uint8 LINE_LIST=5\n\
507 uint8 CUBE_LIST=6\n\
508 uint8 SPHERE_LIST=7\n\
509 uint8 POINTS=8\n\
510 uint8 TEXT_VIEW_FACING=9\n\
511 uint8 MESH_RESOURCE=10\n\
512 uint8 TRIANGLE_LIST=11\n\
513 \n\
514 uint8 ADD=0\n\
515 uint8 MODIFY=0\n\
516 uint8 DELETE=2\n\
517 uint8 DELETEALL=3\n\
518 \n\
519 Header header # header for time/frame information\n\
520 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
521 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
522 int32 type # Type of object\n\
523 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
524 geometry_msgs/Pose pose # Pose of the object\n\
525 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
526 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
527 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
528 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
529 \n\
530 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
531 geometry_msgs/Point[] points\n\
532 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
533 #number of colors must either be 0 or equal to the number of points\n\
534 #NOTE: alpha is not yet used\n\
535 std_msgs/ColorRGBA[] colors\n\
536 \n\
537 # NOTE: only used for text markers\n\
538 string text\n\
539 \n\
540 # NOTE: only used for MESH_RESOURCE markers\n\
541 string mesh_resource\n\
542 bool mesh_use_embedded_materials\n\
543 \n\
544 ================================================================================\n\
545 MSG: std_msgs/Header\n\
546 # Standard metadata for higher-level stamped data types.\n\
547 # This is generally used to communicate timestamped data \n\
548 # in a particular coordinate frame.\n\
549 # \n\
550 # sequence ID: consecutively increasing ID \n\
551 uint32 seq\n\
552 #Two-integer timestamp that is expressed as:\n\
553 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
554 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
555 # time-handling sugar is provided by the client library\n\
556 time stamp\n\
557 #Frame this data is associated with\n\
558 # 0: no frame\n\
559 # 1: global frame\n\
560 string frame_id\n\
561 \n\
562 ================================================================================\n\
563 MSG: geometry_msgs/Pose\n\
564 # A representation of pose in free space, composed of position and orientation. \n\
565 Point position\n\
566 Quaternion orientation\n\
567 \n\
568 ================================================================================\n\
569 MSG: geometry_msgs/Point\n\
570 # This contains the position of a point in free space\n\
571 float64 x\n\
572 float64 y\n\
573 float64 z\n\
574 \n\
575 ================================================================================\n\
576 MSG: geometry_msgs/Vector3\n\
577 # This represents a vector in free space. \n\
578 # It is only meant to represent a direction. Therefore, it does not\n\
579 # make sense to apply a translation to it (e.g., when applying a \n\
580 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
581 # rotation). If you want your data to be translatable too, use the\n\
582 # geometry_msgs/Point message instead.\n\
583 \n\
584 float64 x\n\
585 float64 y\n\
586 float64 z\n\
587 ================================================================================\n\
588 MSG: std_msgs/ColorRGBA\n\
589 float32 r\n\
590 float32 g\n\
591 float32 b\n\
592 float32 a\n\
593 ";
594 
595  yarp::os::Type getType() const override
596  {
598  typ.addProperty("md5sum", yarp::os::Value(typeChecksum));
599  typ.addProperty("message_definition", yarp::os::Value(typeText));
600  return typ;
601  }
602 };
603 
604 } // namespace visualization_msgs
605 } // namespace rosmsg
606 } // namespace yarp
607 
608 #endif // YARP_ROSMSG_visualization_msgs_InteractiveMarkerControl_h
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::write
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
Definition: InteractiveMarkerControl.h:391
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::ROTATE_3D
static const std::uint8_t ROTATE_3D
Definition: InteractiveMarkerControl.h:124
yarp::os::idl::WireReader::readString
bool readString(std::string &str, bool *is_vocab=nullptr)
Definition: WireReader.cpp:339
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::INHERIT
static const std::uint8_t INHERIT
Definition: InteractiveMarkerControl.h:112
yarp::os::ConnectionWriter::appendBlock
virtual void appendBlock(const char *data, size_t len)=0
Send a block of data to the network connection.
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::always_visible
bool always_visible
Definition: InteractiveMarkerControl.h:127
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::clear
void clear()
Definition: InteractiveMarkerControl.h:144
WireTypes.h
BOTTLE_TAG_LIST
#define BOTTLE_TAG_LIST
Definition: Bottle.h:30
Quaternion.h
yarp::os::idl::BottleStyle
Definition: BottleStyle.h:22
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::getType
yarp::os::Type getType() const override
Definition: InteractiveMarkerControl.h:595
yarp::os::Type
Definition: Type.h:24
yarp::os::idl::WirePortable::read
virtual bool read(yarp::os::idl::WireReader &reader)
Definition: WirePortable.cpp:14
yarp::os::ConnectionWriter::appendInt8
virtual void appendInt8(std::int8_t data)=0
Send a representation of a 8-bit integer to the network connection.
yarp::os::ConnectionReader::isBareMode
virtual bool isBareMode() const =0
Check if the connection is bare mode.
BOTTLE_TAG_STRING
#define BOTTLE_TAG_STRING
Definition: Bottle.h:28
Wire.h
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::typeText
static constexpr const char * typeText
Definition: InteractiveMarkerControl.h:409
BOTTLE_TAG_INT8
#define BOTTLE_TAG_INT8
Definition: Bottle.h:21
yarp::rosmsg::geometry_msgs::Quaternion::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: Quaternion.h:106
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::MOVE_PLANE
static const std::uint8_t MOVE_PLANE
Definition: InteractiveMarkerControl.h:120
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::typeName
static constexpr const char * typeName
Definition: InteractiveMarkerControl.h:403
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::BUTTON
static const std::uint8_t BUTTON
Definition: InteractiveMarkerControl.h:118
yarp::os::ConnectionReader::expectInt8
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
yarp::rosmsg::geometry_msgs::Quaternion
Definition: Quaternion.h:35
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::MOVE_AXIS
static const std::uint8_t MOVE_AXIS
Definition: InteractiveMarkerControl.h:119
yarp::os::ConnectionWriter::isError
virtual bool isError() const =0
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::FIXED
static const std::uint8_t FIXED
Definition: InteractiveMarkerControl.h:113
yarp::os::Type::byName
static Type byName(const char *name)
Definition: Type.cpp:174
yarp::os::ConnectionReader::expectInt32
virtual std::int32_t expectInt32()=0
Read a 32-bit integer from the network connection.
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::typeChecksum
static constexpr const char * typeChecksum
Definition: InteractiveMarkerControl.h:406
yarp::os::Type::addProperty
Type & addProperty(const char *key, const Value &val)
Definition: Type.cpp:137
Type.h
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::MOVE_ROTATE_3D
static const std::uint8_t MOVE_ROTATE_3D
Definition: InteractiveMarkerControl.h:125
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::independent_marker_orientation
bool independent_marker_orientation
Definition: InteractiveMarkerControl.h:129
yarp::os::ConnectionWriter
An interface for writing to a network connection.
Definition: ConnectionWriter.h:40
Marker.h
yarp::os::ConnectionReader::isError
virtual bool isError() const =0
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::bottleStyle
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerControl > bottleStyle
Definition: InteractiveMarkerControl.h:400
yarp::rosmsg::geometry_msgs::Quaternion::write
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
Definition: Quaternion.h:155
yarp::os::ConnectionReader::convertTextMode
virtual bool convertTextMode()=0
Reads in a standard description in text mode, and converts it to a standard description in binary.
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::MENU
static const std::uint8_t MENU
Definition: InteractiveMarkerControl.h:117
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::orientation
yarp::rosmsg::geometry_msgs::Quaternion orientation
Definition: InteractiveMarkerControl.h:111
yarp::os::idl::WirePortable
A "tamed" Portable, that promises to serialize itself in an IDL-friendly way.
Definition: WirePortable.h:26
yarp::os::ConnectionWriter::isBareMode
virtual bool isBareMode() const =0
Check if the connection is bare mode.
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::InteractiveMarkerControl
InteractiveMarkerControl()
Definition: InteractiveMarkerControl.h:132
yarp::rosmsg::geometry_msgs::Quaternion::clear
void clear()
Definition: Quaternion.h:50
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::description
std::string description
Definition: InteractiveMarkerControl.h:130
yarp::os::ConnectionWriter::convertTextMode
virtual bool convertTextMode()=0
Converts a standard description in binary into a textual description, if the connection is in text-mo...
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl
Definition: InteractiveMarkerControl.h:108
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::name
std::string name
Definition: InteractiveMarkerControl.h:110
yarp::os::ConnectionWriter::appendInt32
virtual void appendInt32(std::int32_t data)=0
Send a representation of a 32-bit integer to the network connection.
yarp::os::idl::WireReader
IDL-friendly connection reader.
Definition: WireReader.h:33
yarp::os::ConnectionReader
An interface for reading from a network connection.
Definition: ConnectionReader.h:40
visualization_msgs
Definition: ImageMarker.h:22
yarp::os::idl::BareStyle
Definition: BareStyle.h:22
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::NONE
static const std::uint8_t NONE
Definition: InteractiveMarkerControl.h:116
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::VIEW_FACING
static const std::uint8_t VIEW_FACING
Definition: InteractiveMarkerControl.h:114
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::interaction_mode
std::uint8_t interaction_mode
Definition: InteractiveMarkerControl.h:126
yarp::os::idl::WireReader::expectInt8
std::int8_t expectInt8()
Definition: WireReader.h:87
yarp::os::ConnectionWriter::appendExternalBlock
virtual void appendExternalBlock(const char *data, size_t len)=0
Send a block of data to the network connection, without making a copy.
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::writeBottle
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
Definition: InteractiveMarkerControl.h:341
yarp::os::ConnectionReader::expectBlock
virtual bool expectBlock(char *data, size_t len)=0
Read a block of data from the network connection.
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::writeBare
bool writeBare(yarp::os::ConnectionWriter &connection) const override
Definition: InteractiveMarkerControl.h:303
yarp::os::Value
A single value (typically within a Bottle).
Definition: Value.h:47
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::rosStyle
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::InteractiveMarkerControl > rosStyle
Definition: InteractiveMarkerControl.h:399
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::markers
std::vector< yarp::rosmsg::visualization_msgs::Marker > markers
Definition: InteractiveMarkerControl.h:128
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::MOVE_ROTATE
static const std::uint8_t MOVE_ROTATE
Definition: InteractiveMarkerControl.h:122
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::MOVE_3D
static const std::uint8_t MOVE_3D
Definition: InteractiveMarkerControl.h:123
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::orientation_mode
std::uint8_t orientation_mode
Definition: InteractiveMarkerControl.h:115
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::readBottle
bool readBottle(yarp::os::ConnectionReader &connection) override
Definition: InteractiveMarkerControl.h:246
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::ROTATE_AXIS
static const std::uint8_t ROTATE_AXIS
Definition: InteractiveMarkerControl.h:121
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::readBare
bool readBare(yarp::os::ConnectionReader &connection) override
Definition: InteractiveMarkerControl.h:197
yarp::rosmsg::visualization_msgs::InteractiveMarkerControl::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: InteractiveMarkerControl.h:297
yarp::os::idl::WireReader::readListHeader
bool readListHeader()
Definition: WireReader.cpp:470
yarp::os::idl::WirePortable::write
virtual bool write(const yarp::os::idl::WireWriter &writer) const
Definition: WirePortable.cpp:20