#include <yarp/dev/Map2DLocation.h>
Inheritance diagram for yarp::dev::Nav2D::Map2DLocation:Public Member Functions | |
| Map2DLocation (const std::string &map_name, const double &inX, const double &inY, const double &inT) | |
| Constructor. More... | |
| 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. More... | |
| Map2DLocation () | |
| Default constructor: the map name is empty, coordinates are set to zero. More... | |
| std::string | toString () const |
| Returns text representation of the location. More... | |
| bool | operator!= (const Map2DLocation &r) const |
| Compares two Map2DLocations. More... | |
| bool | operator== (const Map2DLocation &r) const |
| Compares two Map2DLocations. More... | |
| bool | is_near_to (const Map2DLocation &other_loc, double linear_tolerance, double angular_tolerance) const |
| Compares two Map2DLocations. More... | |
| bool | read (yarp::os::idl::WireReader &reader) override |
| Serialization methods. More... | |
| bool | write (const yarp::os::idl::WireWriter &writer) const override |
| bool | read (yarp::os::ConnectionReader &reader) override |
| Read this object from a network connection. More... | |
| bool | write (yarp::os::ConnectionWriter &writer) const override |
| Write this object to a network connection. More... | |
Public Member Functions inherited from yarp::dev::Map2DLocationData | |
| Map2DLocationData () | |
| Map2DLocationData (const std::string &map_id, const double x, const double y, const double theta) | |
| std::string | toString () const |
Public Member Functions inherited from yarp::os::idl::WirePortable | |
| virtual bool | readBare (yarp::os::ConnectionReader &reader) |
| virtual bool | writeBare (yarp::os::ConnectionWriter &writer) const |
| virtual bool | readBottle (yarp::os::ConnectionReader &reader) |
| virtual bool | writeBottle (yarp::os::ConnectionWriter &writer) const |
Public Member Functions inherited from yarp::os::Portable | |
| virtual Type | getType () const |
Public Member Functions inherited from yarp::os::PortReader | |
| virtual | ~PortReader () |
| Destructor. More... | |
| virtual Type | getReadType () const |
Public Member Functions inherited from yarp::os::PortWriter | |
| virtual | ~PortWriter () |
| Destructor. More... | |
| virtual void | onCompletion () const |
| This is called when the port has finished all writing operations. More... | |
| virtual void | onCommencement () const |
| This is called when the port is about to begin writing operations. More... | |
| virtual yarp::os::Type | getWriteType () const |
Additional Inherited Members | |
Public Types inherited from yarp::dev::Map2DLocationData | |
| typedef yarp::os::idl::Unwrapped< Map2DLocationData > | unwrapped |
Static Public Member Functions inherited from yarp::os::Portable | |
| static bool | copyPortable (const PortWriter &writer, PortReader &reader) |
| Copy one portable to another, via writing and reading. More... | |
Public Attributes inherited from yarp::dev::Map2DLocationData | |
| std::string | map_id |
| double | x |
| double | y |
| double | theta |
Definition at line 29 of file Map2DLocation.h.
|
inline |
Constructor.
| map_name | the name of the map the location refers to. |
| inX | location coordinates w.r.t. map reference frame (expressed in meters) |
| inY | location coordinates w.r.t. map reference frame (expressed in meters) |
| inT | location orientation w.r.t. map reference frame (expressed in degrees) |
Definition at line 38 of file Map2DLocation.h.
|
inline |
A constructor which accepts a yarp::math::Vec2D, defining the location by its x,y coordinates.
The orientation is set to 0 by default.
| map_name | the name of the map the location refers to. |
| inX | location coordinates w.r.t. map reference frame (expressed in meters) |
| inY | location coordinates w.r.t. map reference frame (expressed in meters) |
| inT | location orientation w.r.t. map reference frame (expressed in degrees) |
Definition at line 54 of file Map2DLocation.h.
|
inline |
Default constructor: the map name is empty, coordinates are set to zero.
Definition at line 65 of file Map2DLocation.h.
| bool Map2DLocation::is_near_to | ( | const Map2DLocation & | other_loc, |
| double | linear_tolerance, | ||
| double | angular_tolerance | ||
| ) | const |
Compares two Map2DLocations.
Definition at line 19 of file Map2DLocation.cpp.
|
inline |
Compares two Map2DLocations.
Definition at line 90 of file Map2DLocation.h.
|
inline |
Compares two Map2DLocations.
Definition at line 108 of file Map2DLocation.h.
|
inlineoverridevirtual |
Read this object from a network connection.
Override this for your particular class.
| reader | an interface to the network connection for reading |
Reimplemented from yarp::dev::Map2DLocationData.
Definition at line 133 of file Map2DLocation.h.
|
inlineoverridevirtual |
Serialization methods.
Reimplemented from yarp::dev::Map2DLocationData.
Definition at line 131 of file Map2DLocation.h.
|
inline |
Returns text representation of the location.
Definition at line 77 of file Map2DLocation.h.
|
inlineoverridevirtual |
Reimplemented from yarp::dev::Map2DLocationData.
Definition at line 132 of file Map2DLocation.h.
|
inlineoverridevirtual |
Write this object to a network connection.
Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write
| writer | an interface to the network connection for writing |
Reimplemented from yarp::dev::Map2DLocationData.
Definition at line 134 of file Map2DLocation.h.