23 const std::string& description) :
32 description(description)
39 if (!read_map_id(reader)) {
42 if (!read_x(reader)) {
45 if (!read_y(reader)) {
48 if (!read_z(reader)) {
51 if (!read_roll(reader)) {
54 if (!read_pitch(reader)) {
57 if (!read_yaw(reader)) {
60 if (!read_description(reader)) {
85 if (!write_map_id(writer)) {
88 if (!write_x(writer)) {
91 if (!write_y(writer)) {
94 if (!write_z(writer)) {
97 if (!write_roll(writer)) {
100 if (!write_pitch(writer)) {
103 if (!write_yaw(writer)) {
106 if (!write_description(writer)) {
122 if (!
write(writer)) {
double yaw
orientation [deg] in the map reference frame
std::string toString() const
double y
y position of the location [m], expressed in the map reference frame
double pitch
orientation [deg] in the map reference frame
double roll
orientation [deg] in the map reference frame
std::string description
user defined string
bool write(const yarp::os::idl::WireWriter &writer) const override
bool read(yarp::os::idl::WireReader &reader) override
std::string map_id
name of the map
double z
z position of the location [m], expressed in the map reference frame
double x
x position of the location [m], expressed in the map reference frame
Map2DObjectData()=default
A simple collection of objects that can be described and transmitted in a portable way.
std::string toString() const override
Gives a human-readable textual representation of the bottle.
An interface for reading from a network connection.
An interface for writing to a network connection.
static bool copyPortable(const PortWriter &writer, PortReader &reader)
Copy one portable to another, via writing and reading.
IDL-friendly connection reader.
bool readString(std::string &str, bool *is_vocab=nullptr)
bool readFloat64(yarp::conf::float64_t &x)
IDL-friendly connection writer.
bool writeListHeader(int len) const
bool writeFloat64(yarp::conf::float64_t x, bool skip_tag=false) const
bool writeString(const std::string &str, bool skip_tag=false) const
For streams capable of holding different kinds of content, check what they actually have.