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