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