YARP
Yet Another Robot Platform
Marker.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/Marker" msg definition:
12 // # 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
13 //
14 // uint8 ARROW=0
15 // uint8 CUBE=1
16 // uint8 SPHERE=2
17 // uint8 CYLINDER=3
18 // uint8 LINE_STRIP=4
19 // uint8 LINE_LIST=5
20 // uint8 CUBE_LIST=6
21 // uint8 SPHERE_LIST=7
22 // uint8 POINTS=8
23 // uint8 TEXT_VIEW_FACING=9
24 // uint8 MESH_RESOURCE=10
25 // uint8 TRIANGLE_LIST=11
26 //
27 // uint8 ADD=0
28 // uint8 MODIFY=0
29 // uint8 DELETE=2
30 // uint8 DELETEALL=3
31 //
32 // Header header # header for time/frame information
33 // string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object
34 // int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later
35 // int32 type # Type of object
36 // int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects
37 // geometry_msgs/Pose pose # Pose of the object
38 // geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)
39 // std_msgs/ColorRGBA color # Color [0.0-1.0]
40 // duration lifetime # How long the object should last before being automatically deleted. 0 means forever
41 // bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep
42 //
43 // #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
44 // geometry_msgs/Point[] points
45 // #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)
46 // #number of colors must either be 0 or equal to the number of points
47 // #NOTE: alpha is not yet used
48 // std_msgs/ColorRGBA[] colors
49 //
50 // # NOTE: only used for text markers
51 // string text
52 //
53 // # NOTE: only used for MESH_RESOURCE markers
54 // string mesh_resource
55 // bool mesh_use_embedded_materials
56 // Instances of this class can be read and written with YARP ports,
57 // using a ROS-compatible format.
58 
59 #ifndef YARP_ROSMSG_visualization_msgs_Marker_h
60 #define YARP_ROSMSG_visualization_msgs_Marker_h
61 
62 #include <yarp/os/Wire.h>
63 #include <yarp/os/Type.h>
64 #include <yarp/os/idl/WireTypes.h>
65 #include <string>
66 #include <vector>
73 
74 namespace yarp {
75 namespace rosmsg {
76 namespace visualization_msgs {
77 
79 {
80 public:
81  static const std::uint8_t ARROW = 0;
82  static const std::uint8_t CUBE = 1;
83  static const std::uint8_t SPHERE = 2;
84  static const std::uint8_t CYLINDER = 3;
85  static const std::uint8_t LINE_STRIP = 4;
86  static const std::uint8_t LINE_LIST = 5;
87  static const std::uint8_t CUBE_LIST = 6;
88  static const std::uint8_t SPHERE_LIST = 7;
89  static const std::uint8_t POINTS = 8;
90  static const std::uint8_t TEXT_VIEW_FACING = 9;
91  static const std::uint8_t MESH_RESOURCE = 10;
92  static const std::uint8_t TRIANGLE_LIST = 11;
93  static const std::uint8_t ADD = 0;
94  static const std::uint8_t MODIFY = 0;
95  static const std::uint8_t DELETE = 2;
96  static const std::uint8_t DELETEALL = 3;
98  std::string ns;
99  std::int32_t id;
100  std::int32_t type;
101  std::int32_t action;
107  std::vector<yarp::rosmsg::geometry_msgs::Point> points;
108  std::vector<yarp::rosmsg::std_msgs::ColorRGBA> colors;
109  std::string text;
110  std::string mesh_resource;
112 
113  Marker() :
114  header(),
115  ns(""),
116  id(0),
117  type(0),
118  action(0),
119  pose(),
120  scale(),
121  color(),
122  lifetime(),
123  frame_locked(false),
124  points(),
125  colors(),
126  text(""),
127  mesh_resource(""),
129  {
130  }
131 
132  void clear()
133  {
134  // *** ARROW ***
135 
136  // *** CUBE ***
137 
138  // *** SPHERE ***
139 
140  // *** CYLINDER ***
141 
142  // *** LINE_STRIP ***
143 
144  // *** LINE_LIST ***
145 
146  // *** CUBE_LIST ***
147 
148  // *** SPHERE_LIST ***
149 
150  // *** POINTS ***
151 
152  // *** TEXT_VIEW_FACING ***
153 
154  // *** MESH_RESOURCE ***
155 
156  // *** TRIANGLE_LIST ***
157 
158  // *** ADD ***
159 
160  // *** MODIFY ***
161 
162  // *** DELETE ***
163 
164  // *** DELETEALL ***
165 
166  // *** header ***
167  header.clear();
168 
169  // *** ns ***
170  ns = "";
171 
172  // *** id ***
173  id = 0;
174 
175  // *** type ***
176  type = 0;
177 
178  // *** action ***
179  action = 0;
180 
181  // *** pose ***
182  pose.clear();
183 
184  // *** scale ***
185  scale.clear();
186 
187  // *** color ***
188  color.clear();
189 
190  // *** lifetime ***
191  lifetime.clear();
192 
193  // *** frame_locked ***
194  frame_locked = false;
195 
196  // *** points ***
197  points.clear();
198 
199  // *** colors ***
200  colors.clear();
201 
202  // *** text ***
203  text = "";
204 
205  // *** mesh_resource ***
206  mesh_resource = "";
207 
208  // *** mesh_use_embedded_materials ***
210  }
211 
212  bool readBare(yarp::os::ConnectionReader& connection) override
213  {
214  // *** header ***
215  if (!header.read(connection)) {
216  return false;
217  }
218 
219  // *** ns ***
220  int len = connection.expectInt32();
221  ns.resize(len);
222  if (!connection.expectBlock((char*)ns.c_str(), len)) {
223  return false;
224  }
225 
226  // *** id ***
227  id = connection.expectInt32();
228 
229  // *** type ***
230  type = connection.expectInt32();
231 
232  // *** action ***
233  action = connection.expectInt32();
234 
235  // *** pose ***
236  if (!pose.read(connection)) {
237  return false;
238  }
239 
240  // *** scale ***
241  if (!scale.read(connection)) {
242  return false;
243  }
244 
245  // *** color ***
246  if (!color.read(connection)) {
247  return false;
248  }
249 
250  // *** lifetime ***
251  if (!lifetime.read(connection)) {
252  return false;
253  }
254 
255  // *** frame_locked ***
256  if (!connection.expectBlock((char*)&frame_locked, 1)) {
257  return false;
258  }
259 
260  // *** points ***
261  len = connection.expectInt32();
262  points.resize(len);
263  for (int i=0; i<len; i++) {
264  if (!points[i].read(connection)) {
265  return false;
266  }
267  }
268 
269  // *** colors ***
270  len = connection.expectInt32();
271  colors.resize(len);
272  for (int i=0; i<len; i++) {
273  if (!colors[i].read(connection)) {
274  return false;
275  }
276  }
277 
278  // *** text ***
279  len = connection.expectInt32();
280  text.resize(len);
281  if (!connection.expectBlock((char*)text.c_str(), len)) {
282  return false;
283  }
284 
285  // *** mesh_resource ***
286  len = connection.expectInt32();
287  mesh_resource.resize(len);
288  if (!connection.expectBlock((char*)mesh_resource.c_str(), len)) {
289  return false;
290  }
291 
292  // *** mesh_use_embedded_materials ***
293  if (!connection.expectBlock((char*)&mesh_use_embedded_materials, 1)) {
294  return false;
295  }
296 
297  return !connection.isError();
298  }
299 
300  bool readBottle(yarp::os::ConnectionReader& connection) override
301  {
302  connection.convertTextMode();
303  yarp::os::idl::WireReader reader(connection);
304  if (!reader.readListHeader(31)) {
305  return false;
306  }
307 
308  // *** header ***
309  if (!header.read(connection)) {
310  return false;
311  }
312 
313  // *** ns ***
314  if (!reader.readString(ns)) {
315  return false;
316  }
317 
318  // *** id ***
319  id = reader.expectInt32();
320 
321  // *** type ***
322  type = reader.expectInt32();
323 
324  // *** action ***
325  action = reader.expectInt32();
326 
327  // *** pose ***
328  if (!pose.read(connection)) {
329  return false;
330  }
331 
332  // *** scale ***
333  if (!scale.read(connection)) {
334  return false;
335  }
336 
337  // *** color ***
338  if (!color.read(connection)) {
339  return false;
340  }
341 
342  // *** lifetime ***
343  if (!lifetime.read(connection)) {
344  return false;
345  }
346 
347  // *** frame_locked ***
348  frame_locked = reader.expectInt8();
349 
350  // *** points ***
351  if (connection.expectInt32() != BOTTLE_TAG_LIST) {
352  return false;
353  }
354  int len = connection.expectInt32();
355  points.resize(len);
356  for (int i=0; i<len; i++) {
357  if (!points[i].read(connection)) {
358  return false;
359  }
360  }
361 
362  // *** colors ***
363  if (connection.expectInt32() != BOTTLE_TAG_LIST) {
364  return false;
365  }
366  len = connection.expectInt32();
367  colors.resize(len);
368  for (int i=0; i<len; i++) {
369  if (!colors[i].read(connection)) {
370  return false;
371  }
372  }
373 
374  // *** text ***
375  if (!reader.readString(text)) {
376  return false;
377  }
378 
379  // *** mesh_resource ***
380  if (!reader.readString(mesh_resource)) {
381  return false;
382  }
383 
384  // *** mesh_use_embedded_materials ***
386 
387  return !connection.isError();
388  }
389 
391  bool read(yarp::os::ConnectionReader& connection) override
392  {
393  return (connection.isBareMode() ? readBare(connection)
394  : readBottle(connection));
395  }
396 
397  bool writeBare(yarp::os::ConnectionWriter& connection) const override
398  {
399  // *** header ***
400  if (!header.write(connection)) {
401  return false;
402  }
403 
404  // *** ns ***
405  connection.appendInt32(ns.length());
406  connection.appendExternalBlock((char*)ns.c_str(), ns.length());
407 
408  // *** id ***
409  connection.appendInt32(id);
410 
411  // *** type ***
412  connection.appendInt32(type);
413 
414  // *** action ***
415  connection.appendInt32(action);
416 
417  // *** pose ***
418  if (!pose.write(connection)) {
419  return false;
420  }
421 
422  // *** scale ***
423  if (!scale.write(connection)) {
424  return false;
425  }
426 
427  // *** color ***
428  if (!color.write(connection)) {
429  return false;
430  }
431 
432  // *** lifetime ***
433  if (!lifetime.write(connection)) {
434  return false;
435  }
436 
437  // *** frame_locked ***
438  connection.appendBlock((char*)&frame_locked, 1);
439 
440  // *** points ***
441  connection.appendInt32(points.size());
442  for (size_t i=0; i<points.size(); i++) {
443  if (!points[i].write(connection)) {
444  return false;
445  }
446  }
447 
448  // *** colors ***
449  connection.appendInt32(colors.size());
450  for (size_t i=0; i<colors.size(); i++) {
451  if (!colors[i].write(connection)) {
452  return false;
453  }
454  }
455 
456  // *** text ***
457  connection.appendInt32(text.length());
458  connection.appendExternalBlock((char*)text.c_str(), text.length());
459 
460  // *** mesh_resource ***
461  connection.appendInt32(mesh_resource.length());
462  connection.appendExternalBlock((char*)mesh_resource.c_str(), mesh_resource.length());
463 
464  // *** mesh_use_embedded_materials ***
465  connection.appendBlock((char*)&mesh_use_embedded_materials, 1);
466 
467  return !connection.isError();
468  }
469 
470  bool writeBottle(yarp::os::ConnectionWriter& connection) const override
471  {
472  connection.appendInt32(BOTTLE_TAG_LIST);
473  connection.appendInt32(31);
474 
475  // *** header ***
476  if (!header.write(connection)) {
477  return false;
478  }
479 
480  // *** ns ***
481  connection.appendInt32(BOTTLE_TAG_STRING);
482  connection.appendInt32(ns.length());
483  connection.appendExternalBlock((char*)ns.c_str(), ns.length());
484 
485  // *** id ***
486  connection.appendInt32(BOTTLE_TAG_INT32);
487  connection.appendInt32(id);
488 
489  // *** type ***
490  connection.appendInt32(BOTTLE_TAG_INT32);
491  connection.appendInt32(type);
492 
493  // *** action ***
494  connection.appendInt32(BOTTLE_TAG_INT32);
495  connection.appendInt32(action);
496 
497  // *** pose ***
498  if (!pose.write(connection)) {
499  return false;
500  }
501 
502  // *** scale ***
503  if (!scale.write(connection)) {
504  return false;
505  }
506 
507  // *** color ***
508  if (!color.write(connection)) {
509  return false;
510  }
511 
512  // *** lifetime ***
513  if (!lifetime.write(connection)) {
514  return false;
515  }
516 
517  // *** frame_locked ***
518  connection.appendInt32(BOTTLE_TAG_INT8);
519  connection.appendInt8(frame_locked);
520 
521  // *** points ***
522  connection.appendInt32(BOTTLE_TAG_LIST);
523  connection.appendInt32(points.size());
524  for (size_t i=0; i<points.size(); i++) {
525  if (!points[i].write(connection)) {
526  return false;
527  }
528  }
529 
530  // *** colors ***
531  connection.appendInt32(BOTTLE_TAG_LIST);
532  connection.appendInt32(colors.size());
533  for (size_t i=0; i<colors.size(); i++) {
534  if (!colors[i].write(connection)) {
535  return false;
536  }
537  }
538 
539  // *** text ***
540  connection.appendInt32(BOTTLE_TAG_STRING);
541  connection.appendInt32(text.length());
542  connection.appendExternalBlock((char*)text.c_str(), text.length());
543 
544  // *** mesh_resource ***
545  connection.appendInt32(BOTTLE_TAG_STRING);
546  connection.appendInt32(mesh_resource.length());
547  connection.appendExternalBlock((char*)mesh_resource.c_str(), mesh_resource.length());
548 
549  // *** mesh_use_embedded_materials ***
550  connection.appendInt32(BOTTLE_TAG_INT8);
552 
553  connection.convertTextMode();
554  return !connection.isError();
555  }
556 
558  bool write(yarp::os::ConnectionWriter& connection) const override
559  {
560  return (connection.isBareMode() ? writeBare(connection)
561  : writeBottle(connection));
562  }
563 
564  // This class will serialize ROS style or YARP style depending on protocol.
565  // If you need to force a serialization style, use one of these classes:
568 
569  // The name for this message, ROS will need this
570  static constexpr const char* typeName = "visualization_msgs/Marker";
571 
572  // The checksum for this message, ROS will need this
573  static constexpr const char* typeChecksum = "4048c9de2a16f4ae8e0538085ebf1b97";
574 
575  // The source text for this message, ROS will need this
576  static constexpr const char* typeText = "\
577 # 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\
578 \n\
579 uint8 ARROW=0\n\
580 uint8 CUBE=1\n\
581 uint8 SPHERE=2\n\
582 uint8 CYLINDER=3\n\
583 uint8 LINE_STRIP=4\n\
584 uint8 LINE_LIST=5\n\
585 uint8 CUBE_LIST=6\n\
586 uint8 SPHERE_LIST=7\n\
587 uint8 POINTS=8\n\
588 uint8 TEXT_VIEW_FACING=9\n\
589 uint8 MESH_RESOURCE=10\n\
590 uint8 TRIANGLE_LIST=11\n\
591 \n\
592 uint8 ADD=0\n\
593 uint8 MODIFY=0\n\
594 uint8 DELETE=2\n\
595 uint8 DELETEALL=3\n\
596 \n\
597 Header header # header for time/frame information\n\
598 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
599 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
600 int32 type # Type of object\n\
601 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object, 3 deletes all objects\n\
602 geometry_msgs/Pose pose # Pose of the object\n\
603 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
604 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
605 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
606 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
607 \n\
608 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
609 geometry_msgs/Point[] points\n\
610 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
611 #number of colors must either be 0 or equal to the number of points\n\
612 #NOTE: alpha is not yet used\n\
613 std_msgs/ColorRGBA[] colors\n\
614 \n\
615 # NOTE: only used for text markers\n\
616 string text\n\
617 \n\
618 # NOTE: only used for MESH_RESOURCE markers\n\
619 string mesh_resource\n\
620 bool mesh_use_embedded_materials\n\
621 \n\
622 ================================================================================\n\
623 MSG: std_msgs/Header\n\
624 # Standard metadata for higher-level stamped data types.\n\
625 # This is generally used to communicate timestamped data \n\
626 # in a particular coordinate frame.\n\
627 # \n\
628 # sequence ID: consecutively increasing ID \n\
629 uint32 seq\n\
630 #Two-integer timestamp that is expressed as:\n\
631 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
632 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
633 # time-handling sugar is provided by the client library\n\
634 time stamp\n\
635 #Frame this data is associated with\n\
636 # 0: no frame\n\
637 # 1: global frame\n\
638 string frame_id\n\
639 \n\
640 ================================================================================\n\
641 MSG: geometry_msgs/Pose\n\
642 # A representation of pose in free space, composed of position and orientation. \n\
643 Point position\n\
644 Quaternion orientation\n\
645 \n\
646 ================================================================================\n\
647 MSG: geometry_msgs/Point\n\
648 # This contains the position of a point in free space\n\
649 float64 x\n\
650 float64 y\n\
651 float64 z\n\
652 \n\
653 ================================================================================\n\
654 MSG: geometry_msgs/Quaternion\n\
655 # This represents an orientation in free space in quaternion form.\n\
656 \n\
657 float64 x\n\
658 float64 y\n\
659 float64 z\n\
660 float64 w\n\
661 \n\
662 ================================================================================\n\
663 MSG: geometry_msgs/Vector3\n\
664 # This represents a vector in free space. \n\
665 # It is only meant to represent a direction. Therefore, it does not\n\
666 # make sense to apply a translation to it (e.g., when applying a \n\
667 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
668 # rotation). If you want your data to be translatable too, use the\n\
669 # geometry_msgs/Point message instead.\n\
670 \n\
671 float64 x\n\
672 float64 y\n\
673 float64 z\n\
674 ================================================================================\n\
675 MSG: std_msgs/ColorRGBA\n\
676 float32 r\n\
677 float32 g\n\
678 float32 b\n\
679 float32 a\n\
680 ";
681 
682  yarp::os::Type getType() const override
683  {
685  typ.addProperty("md5sum", yarp::os::Value(typeChecksum));
686  typ.addProperty("message_definition", yarp::os::Value(typeText));
687  return typ;
688  }
689 };
690 
691 } // namespace visualization_msgs
692 } // namespace rosmsg
693 } // namespace yarp
694 
695 #endif // YARP_ROSMSG_visualization_msgs_Marker_h
yarp::rosmsg::visualization_msgs::Marker::write
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
Definition: Marker.h:558
yarp::rosmsg::std_msgs::ColorRGBA::clear
void clear()
Definition: ColorRGBA.h:48
yarp::rosmsg::visualization_msgs::Marker::getType
yarp::os::Type getType() const override
Definition: Marker.h:682
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::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::Marker::writeBare
bool writeBare(yarp::os::ConnectionWriter &connection) const override
Definition: Marker.h:397
yarp::rosmsg::visualization_msgs::Marker
Definition: Marker.h:79
yarp::rosmsg::visualization_msgs::Marker::color
yarp::rosmsg::std_msgs::ColorRGBA color
Definition: Marker.h:104
yarp::rosmsg::visualization_msgs::Marker::typeName
static constexpr const char * typeName
Definition: Marker.h:570
yarp::rosmsg::visualization_msgs::Marker::scale
yarp::rosmsg::geometry_msgs::Vector3 scale
Definition: Marker.h:103
WireTypes.h
yarp::rosmsg::geometry_msgs::Pose
Definition: Pose.h:34
BOTTLE_TAG_LIST
#define BOTTLE_TAG_LIST
Definition: Bottle.h:30
TickDuration.h
yarp::rosmsg::geometry_msgs::Vector3
Definition: Vector3.h:38
yarp::rosmsg::visualization_msgs::Marker::type
std::int32_t type
Definition: Marker.h:100
yarp::rosmsg::geometry_msgs::Vector3::clear
void clear()
Definition: Vector3.h:51
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::Marker::pose
yarp::rosmsg::geometry_msgs::Pose pose
Definition: Marker.h:102
Header.h
yarp::rosmsg::visualization_msgs::Marker::readBare
bool readBare(yarp::os::ConnectionReader &connection) override
Definition: Marker.h:212
yarp::rosmsg::geometry_msgs::Pose::clear
void clear()
Definition: Pose.h:45
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::rosmsg::visualization_msgs::Marker::LINE_STRIP
static const std::uint8_t LINE_STRIP
Definition: Marker.h:85
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::geometry_msgs::Vector3::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: Vector3.h:98
Point.h
yarp::rosmsg::visualization_msgs::Marker::MESH_RESOURCE
static const std::uint8_t MESH_RESOURCE
Definition: Marker.h:91
BOTTLE_TAG_INT8
#define BOTTLE_TAG_INT8
Definition: Bottle.h:21
yarp::rosmsg::visualization_msgs::Marker::CYLINDER
static const std::uint8_t CYLINDER
Definition: Marker.h:84
yarp::rosmsg::visualization_msgs::Marker::lifetime
yarp::rosmsg::TickDuration lifetime
Definition: Marker.h:105
yarp::rosmsg::visualization_msgs::Marker::SPHERE
static const std::uint8_t SPHERE
Definition: Marker.h:83
BOTTLE_TAG_INT32
#define BOTTLE_TAG_INT32
Definition: Bottle.h:23
yarp::rosmsg::visualization_msgs::Marker::readBottle
bool readBottle(yarp::os::ConnectionReader &connection) override
Definition: Marker.h:300
yarp::rosmsg::visualization_msgs::Marker::DELETE
static const std::uint8_t DELETE
Definition: Marker.h:95
yarp::rosmsg::visualization_msgs::Marker::SPHERE_LIST
static const std::uint8_t SPHERE_LIST
Definition: Marker.h:88
ColorRGBA.h
yarp::rosmsg::TickDuration
Definition: TickDuration.h:30
yarp::os::ConnectionWriter::isError
virtual bool isError() const =0
yarp::rosmsg::visualization_msgs::Marker::DELETEALL
static const std::uint8_t DELETEALL
Definition: Marker.h:96
yarp::rosmsg::visualization_msgs::Marker::mesh_use_embedded_materials
bool mesh_use_embedded_materials
Definition: Marker.h:111
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
yarp::rosmsg::std_msgs::ColorRGBA::write
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
Definition: ColorRGBA.h:153
yarp::os::ConnectionWriter
An interface for writing to a network connection.
Definition: ConnectionWriter.h:40
yarp::rosmsg::std_msgs::ColorRGBA::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: ColorRGBA.h:104
yarp::rosmsg::std_msgs::ColorRGBA
Definition: ColorRGBA.h:33
yarp::rosmsg::visualization_msgs::Marker::bottleStyle
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::Marker > bottleStyle
Definition: Marker.h:567
yarp::os::ConnectionReader::isError
virtual bool isError() const =0
yarp::rosmsg::visualization_msgs::Marker::action
std::int32_t action
Definition: Marker.h:101
yarp::rosmsg::visualization_msgs::Marker::rosStyle
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::Marker > rosStyle
Definition: Marker.h:566
yarp::rosmsg::visualization_msgs::Marker::typeText
static constexpr const char * typeText
Definition: Marker.h:576
Vector3.h
yarp::rosmsg::visualization_msgs::Marker::MODIFY
static const std::uint8_t MODIFY
Definition: Marker.h:94
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::Marker::mesh_resource
std::string mesh_resource
Definition: Marker.h:110
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::Marker::ADD
static const std::uint8_t ADD
Definition: Marker.h:93
yarp::os::ConnectionWriter::isBareMode
virtual bool isBareMode() const =0
Check if the connection is bare mode.
yarp::rosmsg::visualization_msgs::Marker::writeBottle
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
Definition: Marker.h:470
yarp::rosmsg::visualization_msgs::Marker::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: Marker.h:391
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::Marker::clear
void clear()
Definition: Marker.h:132
yarp::rosmsg::visualization_msgs::Marker::ns
std::string ns
Definition: Marker.h:98
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::Marker::Marker
Marker()
Definition: Marker.h:113
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::rosmsg::visualization_msgs::Marker::LINE_LIST
static const std::uint8_t LINE_LIST
Definition: Marker.h:86
yarp::os::idl::BareStyle
Definition: BareStyle.h:22
yarp::os::idl::WireReader::expectInt32
std::int32_t expectInt32()
Definition: WireReader.h:99
yarp::rosmsg::visualization_msgs::Marker::CUBE_LIST
static const std::uint8_t CUBE_LIST
Definition: Marker.h:87
yarp::rosmsg::visualization_msgs::Marker::typeChecksum
static constexpr const char * typeChecksum
Definition: Marker.h:573
yarp::rosmsg::visualization_msgs::Marker::CUBE
static const std::uint8_t CUBE
Definition: Marker.h:82
yarp::rosmsg::TickDuration::clear
void clear()
Definition: TickDuration.h:78
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::Marker::points
std::vector< yarp::rosmsg::geometry_msgs::Point > points
Definition: Marker.h:107
yarp::os::idl::WireReader::expectInt8
std::int8_t expectInt8()
Definition: WireReader.h:87
yarp::rosmsg::visualization_msgs::Marker::TEXT_VIEW_FACING
static const std::uint8_t TEXT_VIEW_FACING
Definition: Marker.h:90
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
yarp::rosmsg::visualization_msgs::Marker::id
std::int32_t id
Definition: Marker.h:99
yarp::rosmsg::visualization_msgs::Marker::colors
std::vector< yarp::rosmsg::std_msgs::ColorRGBA > colors
Definition: Marker.h:108
yarp::rosmsg::visualization_msgs::Marker::POINTS
static const std::uint8_t POINTS
Definition: Marker.h:89
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::TickDuration::write
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
Definition: TickDuration.h:151
yarp::rosmsg::visualization_msgs::Marker::header
yarp::rosmsg::std_msgs::Header header
Definition: Marker.h:97
yarp::rosmsg::std_msgs::Header
Definition: Header.h:45
yarp::rosmsg::geometry_msgs::Vector3::write
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
Definition: Vector3.h:140
yarp::rosmsg::TickDuration::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: TickDuration.h:116
yarp::rosmsg::visualization_msgs::Marker::TRIANGLE_LIST
static const std::uint8_t TRIANGLE_LIST
Definition: Marker.h:92
yarp::rosmsg::visualization_msgs::Marker::frame_locked
bool frame_locked
Definition: Marker.h:106
yarp::rosmsg::visualization_msgs::Marker::ARROW
static const std::uint8_t ARROW
Definition: Marker.h:81
yarp::os::idl::WireReader::readListHeader
bool readListHeader()
Definition: WireReader.cpp:470
yarp::rosmsg::visualization_msgs::Marker::text
std::string text
Definition: Marker.h:109
yarp::os::idl::WirePortable::write
virtual bool write(const yarp::os::idl::WireWriter &writer) const
Definition: WirePortable.cpp:20