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