|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_MAP2DLOCATION_H
10 #define YARP_DEV_MAP2DLOCATION_H
38 Map2DLocation(
const std::string& map_name,
const double& inX,
const double& inY,
const double& inT)
79 std::ostringstream stringStream;
80 stringStream.precision(-1);
81 stringStream.width(-1);
82 stringStream << std::string(
"map_id:") << map_id << std::string(
" x:") << x << std::string(
" y:") << y << std::string(
" theta:") << theta;
83 return stringStream.str();
126 bool is_near_to(
const Map2DLocation& other_loc,
double linear_tolerance,
double angular_tolerance)
const;
140 #endif // YARP_DEV_MAP2DLOCATION_H
bool write(yarp::os::ConnectionWriter &writer) const override
Write this object to a network connection.
bool read(yarp::os::idl::WireReader &reader) override
Map2DLocation(const std::string &map_name, yarp::dev::Nav2D::XYWorld location)
A constructor which accepts a yarp::math::Vec2D, defining the location by its x,y coordinates.
bool operator!=(const Map2DLocation &r) const
Compares two Map2DLocations.
bool write(const yarp::os::idl::WireWriter &writer) const override
std::string toString() const
Returns text representation of the location.
bool write(const yarp::os::idl::WireWriter &writer) const override
bool read(yarp::os::idl::WireReader &reader) override
Serialization methods.
IDL-friendly connection writer.
contains definitions for common types used in navigation interfaces
An interface for writing to a network connection.
Map2DLocation(const std::string &map_name, const double &inX, const double &inY, const double &inT)
Constructor.
IDL-friendly connection reader.
An interface for reading from a network connection.
The main, catch-all namespace for YARP.
bool operator==(const Map2DLocation &r) const
Compares two Map2DLocations.
Map2DLocation()
Default constructor: the map name is empty, coordinates are set to zero.
bool read(yarp::os::ConnectionReader &reader) override
Read this object from a network connection.