YARP
Yet Another Robot Platform
ImageMarker.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/ImageMarker" msg definition:
12 // uint8 CIRCLE=0
13 // uint8 LINE_STRIP=1
14 // uint8 LINE_LIST=2
15 // uint8 POLYGON=3
16 // uint8 POINTS=4
17 //
18 // uint8 ADD=0
19 // uint8 REMOVE=1
20 //
21 // Header header
22 // string ns # namespace, used with id to form a unique id
23 // int32 id # unique id within the namespace
24 // int32 type # CIRCLE/LINE_STRIP/etc.
25 // int32 action # ADD/REMOVE
26 // geometry_msgs/Point position # 2D, in pixel-coords
27 // float32 scale # the diameter for a circle, etc.
28 // std_msgs/ColorRGBA outline_color
29 // uint8 filled # whether to fill in the shape with color
30 // std_msgs/ColorRGBA fill_color # color [0.0-1.0]
31 // duration lifetime # How long the object should last before being automatically deleted. 0 means forever
32 //
33 //
34 // geometry_msgs/Point[] points # used for LINE_STRIP/LINE_LIST/POINTS/etc., 2D in pixel coords
35 // std_msgs/ColorRGBA[] outline_colors # a color for each line, point, etc.// Instances of this class can be read and written with YARP ports,
36 // using a ROS-compatible format.
37 
38 #ifndef YARP_ROSMSG_visualization_msgs_ImageMarker_h
39 #define YARP_ROSMSG_visualization_msgs_ImageMarker_h
40 
41 #include <yarp/os/Wire.h>
42 #include <yarp/os/Type.h>
43 #include <yarp/os/idl/WireTypes.h>
44 #include <string>
45 #include <vector>
50 
51 namespace yarp {
52 namespace rosmsg {
53 namespace visualization_msgs {
54 
56 {
57 public:
58  static const std::uint8_t CIRCLE = 0;
59  static const std::uint8_t LINE_STRIP = 1;
60  static const std::uint8_t LINE_LIST = 2;
61  static const std::uint8_t POLYGON = 3;
62  static const std::uint8_t POINTS = 4;
63  static const std::uint8_t ADD = 0;
64  static const std::uint8_t REMOVE = 1;
66  std::string ns;
67  std::int32_t id;
68  std::int32_t type;
69  std::int32_t action;
73  std::uint8_t filled;
76  std::vector<yarp::rosmsg::geometry_msgs::Point> points;
77  std::vector<yarp::rosmsg::std_msgs::ColorRGBA> outline_colors;
78 
80  header(),
81  ns(""),
82  id(0),
83  type(0),
84  action(0),
85  position(),
86  scale(0.0f),
87  outline_color(),
88  filled(0),
89  fill_color(),
90  lifetime(),
91  points(),
93  {
94  }
95 
96  void clear()
97  {
98  // *** CIRCLE ***
99 
100  // *** LINE_STRIP ***
101 
102  // *** LINE_LIST ***
103 
104  // *** POLYGON ***
105 
106  // *** POINTS ***
107 
108  // *** ADD ***
109 
110  // *** REMOVE ***
111 
112  // *** header ***
113  header.clear();
114 
115  // *** ns ***
116  ns = "";
117 
118  // *** id ***
119  id = 0;
120 
121  // *** type ***
122  type = 0;
123 
124  // *** action ***
125  action = 0;
126 
127  // *** position ***
128  position.clear();
129 
130  // *** scale ***
131  scale = 0.0f;
132 
133  // *** outline_color ***
135 
136  // *** filled ***
137  filled = 0;
138 
139  // *** fill_color ***
140  fill_color.clear();
141 
142  // *** lifetime ***
143  lifetime.clear();
144 
145  // *** points ***
146  points.clear();
147 
148  // *** outline_colors ***
149  outline_colors.clear();
150  }
151 
152  bool readBare(yarp::os::ConnectionReader& connection) override
153  {
154  // *** header ***
155  if (!header.read(connection)) {
156  return false;
157  }
158 
159  // *** ns ***
160  int len = connection.expectInt32();
161  ns.resize(len);
162  if (!connection.expectBlock((char*)ns.c_str(), len)) {
163  return false;
164  }
165 
166  // *** id ***
167  id = connection.expectInt32();
168 
169  // *** type ***
170  type = connection.expectInt32();
171 
172  // *** action ***
173  action = connection.expectInt32();
174 
175  // *** position ***
176  if (!position.read(connection)) {
177  return false;
178  }
179 
180  // *** scale ***
181  scale = connection.expectFloat32();
182 
183  // *** outline_color ***
184  if (!outline_color.read(connection)) {
185  return false;
186  }
187 
188  // *** filled ***
189  filled = connection.expectInt8();
190 
191  // *** fill_color ***
192  if (!fill_color.read(connection)) {
193  return false;
194  }
195 
196  // *** lifetime ***
197  if (!lifetime.read(connection)) {
198  return false;
199  }
200 
201  // *** points ***
202  len = connection.expectInt32();
203  points.resize(len);
204  for (int i=0; i<len; i++) {
205  if (!points[i].read(connection)) {
206  return false;
207  }
208  }
209 
210  // *** outline_colors ***
211  len = connection.expectInt32();
212  outline_colors.resize(len);
213  for (int i=0; i<len; i++) {
214  if (!outline_colors[i].read(connection)) {
215  return false;
216  }
217  }
218 
219  return !connection.isError();
220  }
221 
222  bool readBottle(yarp::os::ConnectionReader& connection) override
223  {
224  connection.convertTextMode();
225  yarp::os::idl::WireReader reader(connection);
226  if (!reader.readListHeader(20)) {
227  return false;
228  }
229 
230  // *** header ***
231  if (!header.read(connection)) {
232  return false;
233  }
234 
235  // *** ns ***
236  if (!reader.readString(ns)) {
237  return false;
238  }
239 
240  // *** id ***
241  id = reader.expectInt32();
242 
243  // *** type ***
244  type = reader.expectInt32();
245 
246  // *** action ***
247  action = reader.expectInt32();
248 
249  // *** position ***
250  if (!position.read(connection)) {
251  return false;
252  }
253 
254  // *** scale ***
255  scale = reader.expectFloat32();
256 
257  // *** outline_color ***
258  if (!outline_color.read(connection)) {
259  return false;
260  }
261 
262  // *** filled ***
263  filled = reader.expectInt8();
264 
265  // *** fill_color ***
266  if (!fill_color.read(connection)) {
267  return false;
268  }
269 
270  // *** lifetime ***
271  if (!lifetime.read(connection)) {
272  return false;
273  }
274 
275  // *** points ***
276  if (connection.expectInt32() != BOTTLE_TAG_LIST) {
277  return false;
278  }
279  int len = connection.expectInt32();
280  points.resize(len);
281  for (int i=0; i<len; i++) {
282  if (!points[i].read(connection)) {
283  return false;
284  }
285  }
286 
287  // *** outline_colors ***
288  if (connection.expectInt32() != BOTTLE_TAG_LIST) {
289  return false;
290  }
291  len = connection.expectInt32();
292  outline_colors.resize(len);
293  for (int i=0; i<len; i++) {
294  if (!outline_colors[i].read(connection)) {
295  return false;
296  }
297  }
298 
299  return !connection.isError();
300  }
301 
303  bool read(yarp::os::ConnectionReader& connection) override
304  {
305  return (connection.isBareMode() ? readBare(connection)
306  : readBottle(connection));
307  }
308 
309  bool writeBare(yarp::os::ConnectionWriter& connection) const override
310  {
311  // *** header ***
312  if (!header.write(connection)) {
313  return false;
314  }
315 
316  // *** ns ***
317  connection.appendInt32(ns.length());
318  connection.appendExternalBlock((char*)ns.c_str(), ns.length());
319 
320  // *** id ***
321  connection.appendInt32(id);
322 
323  // *** type ***
324  connection.appendInt32(type);
325 
326  // *** action ***
327  connection.appendInt32(action);
328 
329  // *** position ***
330  if (!position.write(connection)) {
331  return false;
332  }
333 
334  // *** scale ***
335  connection.appendFloat32(scale);
336 
337  // *** outline_color ***
338  if (!outline_color.write(connection)) {
339  return false;
340  }
341 
342  // *** filled ***
343  connection.appendInt8(filled);
344 
345  // *** fill_color ***
346  if (!fill_color.write(connection)) {
347  return false;
348  }
349 
350  // *** lifetime ***
351  if (!lifetime.write(connection)) {
352  return false;
353  }
354 
355  // *** points ***
356  connection.appendInt32(points.size());
357  for (size_t i=0; i<points.size(); i++) {
358  if (!points[i].write(connection)) {
359  return false;
360  }
361  }
362 
363  // *** outline_colors ***
364  connection.appendInt32(outline_colors.size());
365  for (size_t i=0; i<outline_colors.size(); i++) {
366  if (!outline_colors[i].write(connection)) {
367  return false;
368  }
369  }
370 
371  return !connection.isError();
372  }
373 
374  bool writeBottle(yarp::os::ConnectionWriter& connection) const override
375  {
376  connection.appendInt32(BOTTLE_TAG_LIST);
377  connection.appendInt32(20);
378 
379  // *** header ***
380  if (!header.write(connection)) {
381  return false;
382  }
383 
384  // *** ns ***
385  connection.appendInt32(BOTTLE_TAG_STRING);
386  connection.appendInt32(ns.length());
387  connection.appendExternalBlock((char*)ns.c_str(), ns.length());
388 
389  // *** id ***
390  connection.appendInt32(BOTTLE_TAG_INT32);
391  connection.appendInt32(id);
392 
393  // *** type ***
394  connection.appendInt32(BOTTLE_TAG_INT32);
395  connection.appendInt32(type);
396 
397  // *** action ***
398  connection.appendInt32(BOTTLE_TAG_INT32);
399  connection.appendInt32(action);
400 
401  // *** position ***
402  if (!position.write(connection)) {
403  return false;
404  }
405 
406  // *** scale ***
407  connection.appendInt32(BOTTLE_TAG_FLOAT32);
408  connection.appendFloat32(scale);
409 
410  // *** outline_color ***
411  if (!outline_color.write(connection)) {
412  return false;
413  }
414 
415  // *** filled ***
416  connection.appendInt32(BOTTLE_TAG_INT8);
417  connection.appendInt8(filled);
418 
419  // *** fill_color ***
420  if (!fill_color.write(connection)) {
421  return false;
422  }
423 
424  // *** lifetime ***
425  if (!lifetime.write(connection)) {
426  return false;
427  }
428 
429  // *** points ***
430  connection.appendInt32(BOTTLE_TAG_LIST);
431  connection.appendInt32(points.size());
432  for (size_t i=0; i<points.size(); i++) {
433  if (!points[i].write(connection)) {
434  return false;
435  }
436  }
437 
438  // *** outline_colors ***
439  connection.appendInt32(BOTTLE_TAG_LIST);
440  connection.appendInt32(outline_colors.size());
441  for (size_t i=0; i<outline_colors.size(); i++) {
442  if (!outline_colors[i].write(connection)) {
443  return false;
444  }
445  }
446 
447  connection.convertTextMode();
448  return !connection.isError();
449  }
450 
452  bool write(yarp::os::ConnectionWriter& connection) const override
453  {
454  return (connection.isBareMode() ? writeBare(connection)
455  : writeBottle(connection));
456  }
457 
458  // This class will serialize ROS style or YARP style depending on protocol.
459  // If you need to force a serialization style, use one of these classes:
462 
463  // The name for this message, ROS will need this
464  static constexpr const char* typeName = "visualization_msgs/ImageMarker";
465 
466  // The checksum for this message, ROS will need this
467  static constexpr const char* typeChecksum = "1de93c67ec8858b831025a08fbf1b35c";
468 
469  // The source text for this message, ROS will need this
470  static constexpr const char* typeText = "\
471 uint8 CIRCLE=0\n\
472 uint8 LINE_STRIP=1\n\
473 uint8 LINE_LIST=2\n\
474 uint8 POLYGON=3\n\
475 uint8 POINTS=4\n\
476 \n\
477 uint8 ADD=0\n\
478 uint8 REMOVE=1\n\
479 \n\
480 Header header\n\
481 string ns # namespace, used with id to form a unique id\n\
482 int32 id # unique id within the namespace\n\
483 int32 type # CIRCLE/LINE_STRIP/etc.\n\
484 int32 action # ADD/REMOVE\n\
485 geometry_msgs/Point position # 2D, in pixel-coords\n\
486 float32 scale # the diameter for a circle, etc.\n\
487 std_msgs/ColorRGBA outline_color\n\
488 uint8 filled # whether to fill in the shape with color\n\
489 std_msgs/ColorRGBA fill_color # color [0.0-1.0]\n\
490 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
491 \n\
492 \n\
493 geometry_msgs/Point[] points # used for LINE_STRIP/LINE_LIST/POINTS/etc., 2D in pixel coords\n\
494 std_msgs/ColorRGBA[] outline_colors # a color for each line, point, etc.\n\
495 ================================================================================\n\
496 MSG: std_msgs/Header\n\
497 # Standard metadata for higher-level stamped data types.\n\
498 # This is generally used to communicate timestamped data \n\
499 # in a particular coordinate frame.\n\
500 # \n\
501 # sequence ID: consecutively increasing ID \n\
502 uint32 seq\n\
503 #Two-integer timestamp that is expressed as:\n\
504 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
505 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
506 # time-handling sugar is provided by the client library\n\
507 time stamp\n\
508 #Frame this data is associated with\n\
509 # 0: no frame\n\
510 # 1: global frame\n\
511 string frame_id\n\
512 \n\
513 ================================================================================\n\
514 MSG: geometry_msgs/Point\n\
515 # This contains the position of a point in free space\n\
516 float64 x\n\
517 float64 y\n\
518 float64 z\n\
519 \n\
520 ================================================================================\n\
521 MSG: std_msgs/ColorRGBA\n\
522 float32 r\n\
523 float32 g\n\
524 float32 b\n\
525 float32 a\n\
526 ";
527 
528  yarp::os::Type getType() const override
529  {
531  typ.addProperty("md5sum", yarp::os::Value(typeChecksum));
532  typ.addProperty("message_definition", yarp::os::Value(typeText));
533  return typ;
534  }
535 };
536 
537 } // namespace visualization_msgs
538 } // namespace rosmsg
539 } // namespace yarp
540 
541 #endif // YARP_ROSMSG_visualization_msgs_ImageMarker_h
yarp::rosmsg::std_msgs::ColorRGBA::clear
void clear()
Definition: ColorRGBA.h:48
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::visualization_msgs::ImageMarker::points
std::vector< yarp::rosmsg::geometry_msgs::Point > points
Definition: ImageMarker.h:76
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::ImageMarker::lifetime
yarp::rosmsg::TickDuration lifetime
Definition: ImageMarker.h:75
yarp::rosmsg::visualization_msgs::ImageMarker::LINE_STRIP
static const std::uint8_t LINE_STRIP
Definition: ImageMarker.h:59
yarp::rosmsg::visualization_msgs::ImageMarker::outline_color
yarp::rosmsg::std_msgs::ColorRGBA outline_color
Definition: ImageMarker.h:72
WireTypes.h
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
TickDuration.h
yarp::rosmsg::visualization_msgs::ImageMarker::writeBottle
bool writeBottle(yarp::os::ConnectionWriter &connection) const override
Definition: ImageMarker.h:374
yarp::os::idl::BottleStyle
Definition: BottleStyle.h:22
yarp::rosmsg::visualization_msgs::ImageMarker::ImageMarker
ImageMarker()
Definition: ImageMarker.h:79
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::ImageMarker::filled
std::uint8_t filled
Definition: ImageMarker.h:73
yarp::rosmsg::geometry_msgs::Point
Definition: Point.h:33
yarp::rosmsg::visualization_msgs::ImageMarker::position
yarp::rosmsg::geometry_msgs::Point position
Definition: ImageMarker.h:70
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.
yarp::rosmsg::std_msgs::Header::clear
void clear()
Definition: Header.h:58
yarp::rosmsg::visualization_msgs::ImageMarker::outline_colors
std::vector< yarp::rosmsg::std_msgs::ColorRGBA > outline_colors
Definition: ImageMarker.h:77
BOTTLE_TAG_STRING
#define BOTTLE_TAG_STRING
Definition: Bottle.h:28
Wire.h
yarp::rosmsg::visualization_msgs::ImageMarker::typeText
static constexpr const char * typeText
Definition: ImageMarker.h:470
yarp::rosmsg::visualization_msgs::ImageMarker::readBottle
bool readBottle(yarp::os::ConnectionReader &connection) override
Definition: ImageMarker.h:222
Point.h
BOTTLE_TAG_INT8
#define BOTTLE_TAG_INT8
Definition: Bottle.h:21
yarp::rosmsg::visualization_msgs::ImageMarker::scale
yarp::conf::float32_t scale
Definition: ImageMarker.h:71
yarp::os::ConnectionReader::expectInt8
virtual std::int8_t expectInt8()=0
Read a 8-bit integer from the network connection.
yarp::rosmsg::visualization_msgs::ImageMarker::typeName
static constexpr const char * typeName
Definition: ImageMarker.h:464
BOTTLE_TAG_INT32
#define BOTTLE_TAG_INT32
Definition: Bottle.h:23
yarp::rosmsg::visualization_msgs::ImageMarker
Definition: ImageMarker.h:56
yarp::rosmsg::visualization_msgs::ImageMarker::clear
void clear()
Definition: ImageMarker.h:96
yarp::rosmsg::visualization_msgs::ImageMarker::CIRCLE
static const std::uint8_t CIRCLE
Definition: ImageMarker.h:58
ColorRGBA.h
yarp::rosmsg::visualization_msgs::ImageMarker::readBare
bool readBare(yarp::os::ConnectionReader &connection) override
Definition: ImageMarker.h:152
yarp::rosmsg::TickDuration
Definition: TickDuration.h:30
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
yarp::rosmsg::visualization_msgs::ImageMarker::POINTS
static const std::uint8_t POINTS
Definition: ImageMarker.h:62
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::ImageMarker::bottleStyle
yarp::os::idl::BottleStyle< yarp::rosmsg::visualization_msgs::ImageMarker > bottleStyle
Definition: ImageMarker.h:461
yarp::rosmsg::visualization_msgs::ImageMarker::getType
yarp::os::Type getType() const override
Definition: ImageMarker.h:528
yarp::os::ConnectionReader::isError
virtual bool isError() const =0
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::ImageMarker::POLYGON
static const std::uint8_t POLYGON
Definition: ImageMarker.h:61
yarp::rosmsg::visualization_msgs::ImageMarker::action
std::int32_t action
Definition: ImageMarker.h:69
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
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::conf::float32_t
float float32_t
Definition: numeric.h:50
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::geometry_msgs::Point::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: Point.h:93
yarp::rosmsg::geometry_msgs::Point::write
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
Definition: Point.h:135
yarp::os::idl::WireReader::expectInt32
std::int32_t expectInt32()
Definition: WireReader.h:99
yarp::rosmsg::visualization_msgs::ImageMarker::ADD
static const std::uint8_t ADD
Definition: ImageMarker.h:63
yarp::rosmsg::visualization_msgs::ImageMarker::LINE_LIST
static const std::uint8_t LINE_LIST
Definition: ImageMarker.h:60
yarp::rosmsg::TickDuration::clear
void clear()
Definition: TickDuration.h:78
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::rosmsg::visualization_msgs::ImageMarker::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: ImageMarker.h:303
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::ImageMarker::REMOVE
static const std::uint8_t REMOVE
Definition: ImageMarker.h:64
yarp::os::idl::WireReader::expectInt8
std::int8_t expectInt8()
Definition: WireReader.h:87
yarp::rosmsg::visualization_msgs::ImageMarker::rosStyle
yarp::os::idl::BareStyle< yarp::rosmsg::visualization_msgs::ImageMarker > rosStyle
Definition: ImageMarker.h:460
yarp::rosmsg::visualization_msgs::ImageMarker::id
std::int32_t id
Definition: ImageMarker.h:67
yarp::rosmsg::visualization_msgs::ImageMarker::type
std::int32_t type
Definition: ImageMarker.h:68
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::ImageMarker::ns
std::string ns
Definition: ImageMarker.h:66
yarp::os::ConnectionReader::expectBlock
virtual bool expectBlock(char *data, size_t len)=0
Read a block of data from the network connection.
yarp::rosmsg::visualization_msgs::ImageMarker::typeChecksum
static constexpr const char * typeChecksum
Definition: ImageMarker.h:467
yarp::rosmsg::visualization_msgs::ImageMarker::fill_color
yarp::rosmsg::std_msgs::ColorRGBA fill_color
Definition: ImageMarker.h:74
yarp::os::Value
A single value (typically within a Bottle).
Definition: Value.h:47
yarp::rosmsg::visualization_msgs::ImageMarker::write
bool write(yarp::os::ConnectionWriter &connection) const override
Write this object to a network connection.
Definition: ImageMarker.h:452
yarp::rosmsg::visualization_msgs::ImageMarker::header
yarp::rosmsg::std_msgs::Header header
Definition: ImageMarker.h:65
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::std_msgs::Header
Definition: Header.h:45
yarp::rosmsg::visualization_msgs::ImageMarker::writeBare
bool writeBare(yarp::os::ConnectionWriter &connection) const override
Definition: ImageMarker.h:309
yarp::rosmsg::TickDuration::read
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
Definition: TickDuration.h:116
yarp::rosmsg::geometry_msgs::Point::clear
void clear()
Definition: Point.h:46
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