20 const std::string& description) :
26 description(description)
33 if (!read_map_id(reader)) {
36 if (!read_x(reader)) {
39 if (!read_y(reader)) {
42 if (!read_theta(reader)) {
45 if (!read_description(reader)) {
70 if (!write_map_id(writer)) {
73 if (!write_x(writer)) {
76 if (!write_y(writer)) {
79 if (!write_theta(writer)) {
82 if (!write_description(writer)) {
std::string map_id
name of the map
bool read(yarp::os::idl::WireReader &reader) override
double theta
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
Map2DLocationData()=default
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool write(const yarp::os::idl::WireWriter &writer) const override
std::string description
user defined string
double x
x position of the location [m], expressed in the map reference frame
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.