navigation2D_nwc_yarp
: A device which allows a client application to perform navigation tasks, such as commanding the robot to reach a specific location in a map.
More...
#include <navigation2D_nwc_yarp/Navigation2D_nwc_yarp.h>
Public Member Functions | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. More... | |
bool | close () override |
Close the DeviceDriver. More... | |
bool | parse_respond_string (const yarp::os::Bottle &command, yarp::os::Bottle &reply) |
virtual bool | read (yarp::os::ConnectionReader &connection) override |
Read this object from a network connection. More... | |
bool | checkInsideArea (yarp::dev::Nav2D::Map2DArea area) override |
Check if the robot is currently inside the specified area. More... | |
bool | checkInsideArea (std::string area_name) override |
Check if the robot is currently inside the specified area. More... | |
bool | checkNearToLocation (yarp::dev::Nav2D::Map2DLocation loc, double linear_tolerance, double angular_tolerance=std::numeric_limits< double >::infinity()) override |
Check if the robot is currently near to the specified area. More... | |
bool | checkNearToLocation (std::string location_name, double linear_tolerance, double angular_tolerance=std::numeric_limits< double >::infinity()) override |
Check if the robot is currently near to the specified area. More... | |
bool | storeCurrentPosition (std::string location_name) override |
Store the current location of the robot. More... | |
bool | getNavigationStatus (yarp::dev::Nav2D::NavigationStatusEnum &status) override |
Gets the current status of the navigation task. More... | |
bool | recomputeCurrentNavigationPath () override |
Forces the navigation system to recompute the path from the current robot position to the current goal. More... | |
bool | stopNavigation () override |
Terminates the current navigation task. More... | |
bool | suspendNavigation (const double time_s) override |
Ask to the robot to suspend the current navigation task for a defined amount of time. More... | |
bool | resumeNavigation () override |
Resume a previously suspended navigation task. More... | |
bool | getAllNavigationWaypoints (yarp::dev::Nav2D::TrajectoryTypeEnum trajectory_type, yarp::dev::Nav2D::Map2DPath &waypoints) override |
Returns the list of waypoints generated by the navigation algorithm. More... | |
bool | getCurrentNavigationWaypoint (yarp::dev::Nav2D::Map2DLocation &curr_waypoint) override |
Returns the current waypoint pursued by the navigation algorithm. More... | |
bool | getCurrentNavigationMap (yarp::dev::Nav2D::NavigationMapTypeEnum map_type, yarp::dev::Nav2D::MapGrid2D &map) override |
Returns the current navigation map processed by the navigation algorithm. More... | |
bool | gotoTargetByAbsoluteLocation (yarp::dev::Nav2D::Map2DLocation loc) override |
Ask the robot to reach a position defined in the world reference frame. More... | |
bool | gotoTargetByLocationName (std::string location_name) override |
Ask the robot to reach a previously stored location/area. More... | |
bool | gotoTargetByRelativeLocation (double x, double y, double theta) override |
Ask the robot to reach a position defined in the robot reference frame. More... | |
bool | gotoTargetByRelativeLocation (double x, double y) override |
Ask the robot to reach a position defined in the robot reference frame. More... | |
bool | getAbsoluteLocationOfCurrentTarget (yarp::dev::Nav2D::Map2DLocation &loc) override |
Gets the last navigation target in the world reference frame. More... | |
bool | getNameOfCurrentTarget (std::string &location_name) override |
Gets the name of the current target, if available (set by gotoTargetByLocationName) More... | |
bool | getRelativeLocationOfCurrentTarget (double &x, double &y, double &theta) override |
Gets the last navigation target in the robot reference frame. More... | |
bool | applyVelocityCommand (double x_vel, double y_vel, double theta_vel, double timeout=0.1) override |
Apply a velocity command. More... | |
bool | getLastVelocityCommand (double &x_vel, double &y_vel, double &theta_vel) override |
Returns the last applied velocity command. More... | |
bool | getCurrentPosition (yarp::dev::Nav2D::Map2DLocation &loc) override |
Gets the current position of the robot w.r.t world reference frame. More... | |
bool | getEstimatedOdometry (yarp::dev::OdometryData &odom) override |
Gets the estimated odometry the robot, including its velocity expressed in the world and in the local reference frame. More... | |
bool | setInitialPose (const yarp::dev::Nav2D::Map2DLocation &loc) override |
Sets the initial pose for the localization algorithm which estimates the current position of the robot w.r.t world reference frame. More... | |
bool | getLocalizationStatus (yarp::dev::Nav2D::LocalizationStatusEnum &status) override |
Gets the current status of the localization task. More... | |
bool | getEstimatedPoses (std::vector< yarp::dev::Nav2D::Map2DLocation > &poses) override |
Gets a set of pose estimates computed by the localization algorithm. More... | |
bool | setInitialPose (const yarp::dev::Nav2D::Map2DLocation &loc, const yarp::sig::Matrix &cov) override |
Sets the initial pose for the localization algorithm which estimates the current position of the robot w.r.t world reference frame. More... | |
bool | getCurrentPosition (yarp::dev::Nav2D::Map2DLocation &loc, yarp::sig::Matrix &cov) override |
Gets the current position of the robot w.r.t world reference frame, plus the covariance. More... | |
bool | startLocalizationService () override |
Starts the localization service. More... | |
bool | stopLocalizationService () override |
Stops the localization service. More... | |
bool | storeLocation (std::string location_name, yarp::dev::Nav2D::Map2DLocation loc) override |
Store a location specified by the user in the world reference frame. More... | |
bool | storeArea (std::string location_name, yarp::dev::Nav2D::Map2DArea area) override |
Store an area. More... | |
bool | storePath (std::string path_name, yarp::dev::Nav2D::Map2DPath path) override |
Store a path. More... | |
bool | getLocation (std::string location_name, yarp::dev::Nav2D::Map2DLocation &loc) override |
Retrieves a location specified by the user in the world reference frame. More... | |
bool | getArea (std::string location_name, yarp::dev::Nav2D::Map2DArea &area) override |
Retrieves an area. More... | |
bool | getPath (std::string path_name, yarp::dev::Nav2D::Map2DPath &path) override |
Retrieves a path. More... | |
bool | renameLocation (std::string original_name, std::string new_name) override |
Searches for a location and renames it. More... | |
bool | renameArea (std::string original_name, std::string new_name) override |
Searches for an area and renames it. More... | |
bool | renamePath (std::string original_name, std::string new_name) override |
Searches for a path and renames it. More... | |
bool | deleteLocation (std::string location_name) override |
Delete a location. More... | |
bool | deleteArea (std::string location_name) override |
Delete an area. More... | |
bool | deletePath (std::string path_name) override |
Delete a path. More... | |
bool | getLocationsList (std::vector< std::string > &locations) override |
Get a list of the names of all stored locations. More... | |
bool | getAreasList (std::vector< std::string > &locations) override |
Get a list of the names of all stored areas. More... | |
bool | getPathsList (std::vector< std::string > &paths) override |
Get a list of the names of all stored paths. More... | |
bool | getAllLocations (std::vector< yarp::dev::Nav2D::Map2DLocation > &locations) override |
Get a list of all stored locations. More... | |
bool | getAllAreas (std::vector< yarp::dev::Nav2D::Map2DArea > &areas) override |
Get a list of all stored areas. More... | |
bool | getAllPaths (std::vector< yarp::dev::Nav2D::Map2DPath > &paths) override |
Get a list of all stored paths. More... | |
bool | clearAllLocations () override |
Delete all stored locations. More... | |
bool | clearAllAreas () override |
Delete all stored areas. More... | |
bool | clearAllPaths () override |
Delete all stored paths. More... | |
bool | clearAllMaps () override |
Removes all the registered maps from the server. More... | |
bool | remove_map (std::string map_name) override |
Removes a map from the map server. More... | |
bool | store_map (const yarp::dev::Nav2D::MapGrid2D &map) override |
Stores a map into the map server. More... | |
bool | get_map (std::string map_name, yarp::dev::Nav2D::MapGrid2D &map) override |
Gets a map from the map server. More... | |
bool | get_map_names (std::vector< std::string > &map_names) override |
Gets a list containing the names of all registered maps. More... | |
bool | clearAllMapsTemporaryFlags () override |
Clear all temporary flags from all stored maps. More... | |
bool | clearMapTemporaryFlags (std::string map_name) override |
Clear all temporary flags from a specific map. More... | |
bool | saveMapsCollection (std::string maps_collection_file) override |
Save a collection of maps to disk. More... | |
bool | loadMapsCollection (std::string maps_collection_file) override |
Load a collection of maps from disk. More... | |
bool | saveLocationsAndExtras (std::string locations_collection_file) override |
Save a collection of locations/area/paths etc to disk. More... | |
bool | loadLocationsAndExtras (std::string locations_collection_file) override |
Load a collection of locations/areas/paths etc from disk. More... | |
bool | saveMapToDisk (std::string map_name, std::string file_name) override |
Save a map to disk. More... | |
bool | loadMapFromDisk (std::string file_name) override |
Load a map from disk. More... | |
bool | enableMapsCompression (bool enable) override |
99999999999 More... | |
![]() | |
DeviceDriver () | |
DeviceDriver (const DeviceDriver &other)=delete | |
DeviceDriver (DeviceDriver &&other) noexcept=delete | |
DeviceDriver & | operator= (const DeviceDriver &other)=delete |
DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
~DeviceDriver () override | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. More... | |
bool | close () override |
Close the DeviceDriver. More... | |
virtual std::string | id () const |
Return the id assigned to the PolyDriver. More... | |
virtual void | setId (const std::string &id) |
Set the id for this device. More... | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. More... | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. More... | |
![]() | |
virtual | ~IConfig () |
Destructor. More... | |
virtual bool | open (Searchable &config) |
Initialize the object. More... | |
virtual bool | close () |
Shut the object down. More... | |
virtual bool | configure (Searchable &config) |
Change online parameters. More... | |
![]() | |
virtual | ~INavigation2D () |
Destructor. More... | |
![]() | |
virtual | ~INavigation2DTargetActions () |
Destructor. More... | |
virtual bool | gotoTargetByAbsoluteLocation (yarp::dev::Nav2D::Map2DLocation loc)=0 |
Ask the robot to reach a position defined in the world reference frame. More... | |
virtual bool | getAbsoluteLocationOfCurrentTarget (yarp::dev::Nav2D::Map2DLocation &loc)=0 |
Gets the last navigation target in the world reference frame. More... | |
virtual bool | gotoTargetByRelativeLocation (double x, double y)=0 |
Ask the robot to reach a position defined in the robot reference frame. More... | |
virtual bool | gotoTargetByRelativeLocation (double x, double y, double theta)=0 |
Ask the robot to reach a position defined in the robot reference frame. More... | |
virtual bool | getRelativeLocationOfCurrentTarget (double &x, double &y, double &theta)=0 |
Gets the last navigation target in the robot reference frame. More... | |
![]() | |
virtual | ~INavigation2DControlActions () |
Destructor. More... | |
virtual bool | getNavigationStatus (NavigationStatusEnum &status)=0 |
Gets the current status of the navigation task. More... | |
virtual bool | stopNavigation ()=0 |
Terminates the current navigation task. More... | |
virtual bool | suspendNavigation (const double time_s=std::numeric_limits< double >::infinity())=0 |
Ask to the robot to suspend the current navigation task for a defined amount of time. More... | |
virtual bool | resumeNavigation ()=0 |
Resume a previously suspended navigation task. More... | |
virtual bool | recomputeCurrentNavigationPath ()=0 |
Forces the navigation system to recompute the path from the current robot position to the current goal. More... | |
virtual bool | getAllNavigationWaypoints (yarp::dev::Nav2D::TrajectoryTypeEnum trajectory_type, yarp::dev::Nav2D::Map2DPath &waypoints)=0 |
Returns the list of waypoints generated by the navigation algorithm. More... | |
virtual bool | getCurrentNavigationWaypoint (yarp::dev::Nav2D::Map2DLocation &curr_waypoint)=0 |
Returns the current waypoint pursued by the navigation algorithm. More... | |
virtual bool | getCurrentNavigationMap (yarp::dev::Nav2D::NavigationMapTypeEnum map_type, yarp::dev::Nav2D::MapGrid2D &map)=0 |
Returns the current navigation map processed by the navigation algorithm. More... | |
![]() | |
virtual | ~INavigation2DVelocityActions () |
Destructor. More... | |
virtual bool | applyVelocityCommand (double x_vel, double y_vel, double theta_vel, double timeout=0.1)=0 |
Apply a velocity command. More... | |
virtual bool | getLastVelocityCommand (double &x_vel, double &y_vel, double &theta_vel)=0 |
Returns the last applied velocity command. More... | |
![]() | |
virtual bool | gotoTargetByLocationName (std::string location_or_area_name)=0 |
Ask the robot to reach a previously stored location/area. More... | |
virtual bool | checkInsideArea (std::string area_name)=0 |
Check if the robot is currently inside the specified area. More... | |
virtual bool | checkInsideArea (Nav2D::Map2DArea area)=0 |
Check if the robot is currently inside the specified area. More... | |
virtual bool | checkNearToLocation (Nav2D::Map2DLocation loc, double linear_tolerance, double angular_tolerance=std::numeric_limits< double >::infinity())=0 |
Check if the robot is currently near to the specified area. More... | |
virtual bool | checkNearToLocation (std::string location_name, double linear_tolerance, double angular_tolerance=std::numeric_limits< double >::infinity())=0 |
Check if the robot is currently near to the specified area. More... | |
virtual bool | getNameOfCurrentTarget (std::string &location_name)=0 |
Gets the name of the current target, if available (set by gotoTargetByLocationName) More... | |
virtual bool | storeCurrentPosition (std::string location_name)=0 |
Store the current location of the robot. More... | |
virtual | ~INavigation2DExtraActions () |
Destructor. More... | |
![]() | |
virtual | ~IMap2D () |
Destructor. More... | |
virtual bool | clearAllMaps ()=0 |
Removes all the registered maps from the server. More... | |
virtual bool | store_map (const yarp::dev::Nav2D::MapGrid2D &map)=0 |
Stores a map into the map server. More... | |
virtual bool | get_map (std::string map_name, yarp::dev::Nav2D::MapGrid2D &map)=0 |
Gets a map from the map server. More... | |
virtual bool | get_map_names (std::vector< std::string > &map_names)=0 |
Gets a list containing the names of all registered maps. More... | |
virtual bool | remove_map (std::string map_name)=0 |
Removes a map from the map server. More... | |
virtual bool | storeLocation (std::string location_name, yarp::dev::Nav2D::Map2DLocation loc)=0 |
Store a location specified by the user in the world reference frame. More... | |
virtual bool | storeArea (std::string area_name, yarp::dev::Nav2D::Map2DArea area)=0 |
Store an area. More... | |
virtual bool | storePath (std::string path_name, yarp::dev::Nav2D::Map2DPath path)=0 |
Store a path. More... | |
virtual bool | getLocation (std::string location_name, yarp::dev::Nav2D::Map2DLocation &loc)=0 |
Retrieves a location specified by the user in the world reference frame. More... | |
virtual bool | getArea (std::string area_name, yarp::dev::Nav2D::Map2DArea &area)=0 |
Retrieves an area. More... | |
virtual bool | getPath (std::string path_name, yarp::dev::Nav2D::Map2DPath &path)=0 |
Retrieves a path. More... | |
virtual bool | getLocationsList (std::vector< std::string > &locations)=0 |
Get a list of the names of all stored locations. More... | |
virtual bool | getAreasList (std::vector< std::string > &areas)=0 |
Get a list of the names of all stored areas. More... | |
virtual bool | getPathsList (std::vector< std::string > &paths)=0 |
Get a list of the names of all stored paths. More... | |
virtual bool | getAllLocations (std::vector< yarp::dev::Nav2D::Map2DLocation > &locations)=0 |
Get a list of all stored locations. More... | |
virtual bool | getAllAreas (std::vector< yarp::dev::Nav2D::Map2DArea > &areas)=0 |
Get a list of all stored areas. More... | |
virtual bool | getAllPaths (std::vector< yarp::dev::Nav2D::Map2DPath > &paths)=0 |
Get a list of all stored paths. More... | |
virtual bool | renameLocation (std::string original_name, std::string new_name)=0 |
Searches for a location and renames it. More... | |
virtual bool | deleteLocation (std::string location_name)=0 |
Delete a location. More... | |
virtual bool | deletePath (std::string path_name)=0 |
Delete a path. More... | |
virtual bool | renameArea (std::string original_name, std::string new_name)=0 |
Searches for an area and renames it. More... | |
virtual bool | renamePath (std::string original_name, std::string new_name)=0 |
Searches for a path and renames it. More... | |
virtual bool | deleteArea (std::string area_name)=0 |
Delete an area. More... | |
virtual bool | clearAllLocations ()=0 |
Delete all stored locations. More... | |
virtual bool | clearAllAreas ()=0 |
Delete all stored areas. More... | |
virtual bool | clearAllPaths ()=0 |
Delete all stored paths. More... | |
virtual bool | clearAllMapsTemporaryFlags ()=0 |
Clear all temporary flags from all stored maps. More... | |
virtual bool | clearMapTemporaryFlags (std::string map_name)=0 |
Clear all temporary flags from a specific map. More... | |
virtual bool | saveMapToDisk (std::string map_name, std::string file_name)=0 |
Save a map to disk. More... | |
virtual bool | loadMapFromDisk (std::string file_name)=0 |
Load a map from disk. More... | |
virtual bool | saveMapsCollection (std::string file_name)=0 |
Save a collection of maps to disk. More... | |
virtual bool | loadMapsCollection (std::string file_name)=0 |
Load a collection of maps from disk. More... | |
virtual bool | saveLocationsAndExtras (std::string file_name)=0 |
Save a collection of locations/area/paths etc to disk. More... | |
virtual bool | loadLocationsAndExtras (std::string file_name)=0 |
Load a collection of locations/areas/paths etc from disk. More... | |
virtual bool | enableMapsCompression (bool enable)=0 |
99999999999 More... | |
![]() | |
virtual | ~ILocalization2D () |
Destructor. More... | |
virtual bool | startLocalizationService ()=0 |
Starts the localization service. More... | |
virtual bool | stopLocalizationService ()=0 |
Stops the localization service. More... | |
virtual bool | getLocalizationStatus (LocalizationStatusEnum &status)=0 |
Gets the current status of the localization task. More... | |
virtual bool | getEstimatedPoses (std::vector< yarp::dev::Nav2D::Map2DLocation > &poses)=0 |
Gets a set of pose estimates computed by the localization algorithm. More... | |
virtual bool | getCurrentPosition (yarp::dev::Nav2D::Map2DLocation &loc)=0 |
Gets the current position of the robot w.r.t world reference frame. More... | |
virtual bool | getCurrentPosition (yarp::dev::Nav2D::Map2DLocation &loc, yarp::sig::Matrix &cov)=0 |
Gets the current position of the robot w.r.t world reference frame, plus the covariance. More... | |
virtual bool | getEstimatedOdometry (yarp::dev::OdometryData &odom)=0 |
Gets the estimated odometry the robot, including its velocity expressed in the world and in the local reference frame. More... | |
virtual bool | setInitialPose (const yarp::dev::Nav2D::Map2DLocation &loc)=0 |
Sets the initial pose for the localization algorithm which estimates the current position of the robot w.r.t world reference frame. More... | |
virtual bool | setInitialPose (const yarp::dev::Nav2D::Map2DLocation &loc, const yarp::sig::Matrix &cov)=0 |
Sets the initial pose for the localization algorithm which estimates the current position of the robot w.r.t world reference frame. More... | |
![]() | |
virtual | ~PortReader () |
Destructor. More... | |
virtual bool | read (ConnectionReader &reader)=0 |
Read this object from a network connection. More... | |
virtual Type | getReadType () const |
Protected Attributes | |
IMap2DMsgs | m_map_RPC |
ILocalization2DMsgs | m_loc_RPC |
INavigation2DMsgs | m_nav_RPC |
std::mutex | m_mutex |
yarp::os::Port | m_rpc_port_to_navigation_server |
yarp::os::Port | m_rpc_port_to_Map2DServer |
yarp::os::Port | m_rpc_port_to_localization_server |
yarp::os::Port | m_rpc_port_user_commands |
std::string | m_local_name |
std::string | m_navigation_server_name |
std::string | m_map_locations_server_name |
std::string | m_localization_server_name |
int | m_period |
navigation2D_nwc_yarp
: A device which allows a client application to perform navigation tasks, such as commanding the robot to reach a specific location in a map.
Parameters required by this device are:
Parameter name | SubParameter | Type | Units | Default Value | Required | Description | Notes |
---|---|---|---|---|---|---|---|
local | - | string | - | - | Yes | Full port name opened by the Navigation2D_nwc_yarp device. | |
navigation_server | - | string | - | - | Yes | Full port name of the port remotely opened by the Navigation server, to which the Navigation2D_nwc_yarp connects to. | |
map_locations_server | - | string | - | - | Yes | Full port name of the port remotely opened by the Map2DServer, to which the Navigation2D_nwc_yarp connects to. | |
localization_server | - | string | - | - | Yes | Full port name of the port remotely opened by the Localization server, to which the Navigation2D_nwc_yarp connects to. |
Definition at line 42 of file Navigation2D_nwc_yarp.h.
|
overridevirtual |
Apply a velocity command.
Velocities are expressed in the robot reference frame.
x | [m/s] |
y | [m/s] |
theta | [deg/s] |
timeout | The velocity command expires after the specified amount of time (by default 0.1 seconds) |
Implements yarp::dev::Nav2D::INavigation2DVelocityActions.
Definition at line 42 of file Navigation2D_nwc_yarp_iVelActs.cpp.
|
overridevirtual |
Check if the robot is currently inside the specified area.
area_name | the name of an area previously saved |
Implements yarp::dev::Nav2D::INavigation2DExtraActions.
Definition at line 217 of file Navigation2D_nwc_yarp.cpp.
|
overridevirtual |
Check if the robot is currently inside the specified area.
area | the area to be checked |
Implements yarp::dev::Nav2D::INavigation2DExtraActions.
Definition at line 199 of file Navigation2D_nwc_yarp.cpp.
|
overridevirtual |
Check if the robot is currently near to the specified area.
location_name | the name of the location: it will be searched in the server |
linear_tolerance | linear tolerance [m] |
angular_tolerance | [deg] |
Implements yarp::dev::Nav2D::INavigation2DExtraActions.
Definition at line 180 of file Navigation2D_nwc_yarp.cpp.
|
overridevirtual |
Check if the robot is currently near to the specified area.
loc | the location to be checked |
linear_tolerance | linear tolerance [m] |
angular_tolerance | [deg 0-360] |
Implements yarp::dev::Nav2D::INavigation2DExtraActions.
Definition at line 168 of file Navigation2D_nwc_yarp.cpp.
|
overridevirtual |
Delete all stored areas.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 248 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Delete all stored locations.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 242 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Removes all the registered maps from the server.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 46 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Clear all temporary flags from all stored maps.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 254 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Delete all stored paths.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 266 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Clear all temporary flags from a specific map.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 260 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 154 of file Navigation2D_nwc_yarp.cpp.
|
overridevirtual |
Delete an area.
area_name | the name of the area |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 218 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Delete a location.
location_name | the name of the location |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 206 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Delete a path.
path_name | the name of the path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 224 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
99999999999
enable |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 308 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Gets a map from the map server.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 33 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Gets a list containing the names of all registered maps.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 52 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Gets the last navigation target in the world reference frame.
loc | the location of the robot |
Implements yarp::dev::Nav2D::INavigation2DTargetActions.
Definition at line 45 of file Navigation2D_nwc_yarp_iNav2DTarget.cpp.
|
overridevirtual |
Get a list of all stored areas.
the | returned list of areas |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 141 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Get a list of all stored locations.
the | returned list of locations |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 128 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Returns the list of waypoints generated by the navigation algorithm.
trajectory_type | specifies if we are requesting the waypoints of the global trajectory or the waypoints of the local trajectory |
waypoints | the list of waypoints generated by the navigation algorithm |
Implements yarp::dev::Nav2D::INavigation2DControlActions.
Definition at line 64 of file Navigation2D_nwc_yarp_iNav2DCtrl.cpp.
|
overridevirtual |
Get a list of all stored paths.
the | returned list of paths |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 154 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Retrieves an area.
area_name | the name of the area |
area | the area |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 180 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Get a list of the names of all stored areas.
the | returned list of areas names |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 102 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Returns the current navigation map processed by the navigation algorithm.
map_type | the map to be requested (e.g. global, local, etc.) |
map | the map, currently used by the navigation algorithm |
Implements yarp::dev::Nav2D::INavigation2DControlActions.
Definition at line 90 of file Navigation2D_nwc_yarp_iNav2DCtrl.cpp.
|
overridevirtual |
Returns the current waypoint pursued by the navigation algorithm.
curr_waypoint | the current waypoint pursued by the navigation algorithm |
Implements yarp::dev::Nav2D::INavigation2DControlActions.
Definition at line 77 of file Navigation2D_nwc_yarp_iNav2DCtrl.cpp.
|
overridevirtual |
Gets the current position of the robot w.r.t world reference frame.
loc | the location of the robot |
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 72 of file Navigation2D_nwc_yarp_iLocalization2D.cpp.
|
overridevirtual |
Gets the current position of the robot w.r.t world reference frame, plus the covariance.
loc | the location of the robot |
cov | the 3x3 covariance matrix |
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 45 of file Navigation2D_nwc_yarp_iLocalization2D.cpp.
|
overridevirtual |
Gets the estimated odometry the robot, including its velocity expressed in the world and in the local reference frame.
loc | the estimated odometry. |
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 59 of file Navigation2D_nwc_yarp_iLocalization2D.cpp.
|
overridevirtual |
Gets a set of pose estimates computed by the localization algorithm.
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 98 of file Navigation2D_nwc_yarp_iLocalization2D.cpp.
|
overridevirtual |
Returns the last applied velocity command.
x | [m/s] |
y | [m/s] |
theta | [deg/s] |
Implements yarp::dev::Nav2D::INavigation2DVelocityActions.
Definition at line 27 of file Navigation2D_nwc_yarp_iVelActs.cpp.
|
overridevirtual |
Gets the current status of the localization task.
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 85 of file Navigation2D_nwc_yarp_iLocalization2D.cpp.
|
overridevirtual |
Retrieves a location specified by the user in the world reference frame.
location_name | the name of the location |
loc | the location |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 167 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Get a list of the names of all stored locations.
the | returned list of locations names |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 89 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Gets the name of the current target, if available (set by gotoTargetByLocationName)
location_name | the name of the current target |
Implements yarp::dev::Nav2D::INavigation2DExtraActions.
Definition at line 274 of file Navigation2D_nwc_yarp.cpp.
|
overridevirtual |
Gets the current status of the navigation task.
Implements yarp::dev::Nav2D::INavigation2DControlActions.
Definition at line 27 of file Navigation2D_nwc_yarp_iNav2DCtrl.cpp.
|
overridevirtual |
Retrieves a path.
path_name | the name of the path |
path | the path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 193 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Get a list of the names of all stored paths.
the | returned list of paths names |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 115 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Gets the last navigation target in the robot reference frame.
x | |
y | |
theta |
Implements yarp::dev::Nav2D::INavigation2DTargetActions.
Definition at line 58 of file Navigation2D_nwc_yarp_iNav2DTarget.cpp.
|
overridevirtual |
Ask the robot to reach a position defined in the world reference frame.
loc | the location to be reached |
Implements yarp::dev::Nav2D::INavigation2DTargetActions.
Definition at line 27 of file Navigation2D_nwc_yarp_iNav2DTarget.cpp.
|
overridevirtual |
Ask the robot to reach a previously stored location/area.
location_name | the name of a location/area previously saved |
Implements yarp::dev::Nav2D::INavigation2DExtraActions.
Definition at line 242 of file Navigation2D_nwc_yarp.cpp.
|
overridevirtual |
Ask the robot to reach a position defined in the robot reference frame.
The final orientation of the goal is unspecified.
x | |
y |
Implements yarp::dev::Nav2D::INavigation2DTargetActions.
Definition at line 33 of file Navigation2D_nwc_yarp_iNav2DTarget.cpp.
|
overridevirtual |
Ask the robot to reach a position defined in the robot reference frame.
x | |
y | |
theta |
Implements yarp::dev::Nav2D::INavigation2DTargetActions.
Definition at line 39 of file Navigation2D_nwc_yarp_iNav2DTarget.cpp.
|
overridevirtual |
Load a collection of locations/areas/paths etc from disk.
file_name | file name with full path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 290 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Load a map from disk.
file_name | file name with full path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 302 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Load a collection of maps from disk.
file_name | file name with full path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 278 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Open the DeviceDriver.
config | is a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 27 of file Navigation2D_nwc_yarp.cpp.
bool Navigation2D_nwc_yarp::parse_respond_string | ( | const yarp::os::Bottle & | command, |
yarp::os::Bottle & | reply | ||
) |
|
overridevirtual |
Read this object from a network connection.
Override this for your particular class.
reader | an interface to the network connection for reading |
Implements yarp::os::PortReader.
Definition at line 162 of file Navigation2D_nwc_yarp.cpp.
|
overridevirtual |
Forces the navigation system to recompute the path from the current robot position to the current goal.
If no goal has been set, the command has no effect.
Implements yarp::dev::Nav2D::INavigation2DControlActions.
Definition at line 40 of file Navigation2D_nwc_yarp_iNav2DCtrl.cpp.
|
overridevirtual |
Removes a map from the map server.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 65 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Searches for an area and renames it.
original_name | the name of the area |
new_name | the new name of the area |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 230 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Searches for a location and renames it.
original_name | the name of the area |
new_name | the new name of the area |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 212 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Searches for a path and renames it.
original_name | the name of the path |
new_name | the new name of the path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 236 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Resume a previously suspended navigation task.
Implements yarp::dev::Nav2D::INavigation2DControlActions.
Definition at line 58 of file Navigation2D_nwc_yarp_iNav2DCtrl.cpp.
|
overridevirtual |
Save a collection of locations/area/paths etc to disk.
file_name | file name with full path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 284 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Save a collection of maps to disk.
file_name | file name with full path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 272 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Save a map to disk.
map_name | the name of the area |
file_name | file name with full path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 296 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Sets the initial pose for the localization algorithm which estimates the current position of the robot w.r.t world reference frame.
loc | the location of the robot |
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 27 of file Navigation2D_nwc_yarp_iLocalization2D.cpp.
|
overridevirtual |
Sets the initial pose for the localization algorithm which estimates the current position of the robot w.r.t world reference frame.
loc | the location of the robot |
cov | the 3x3 covariance matrix |
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 33 of file Navigation2D_nwc_yarp_iLocalization2D.cpp.
|
overridevirtual |
Starts the localization service.
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 111 of file Navigation2D_nwc_yarp_iLocalization2D.cpp.
|
overridevirtual |
Stops the localization service.
Implements yarp::dev::Nav2D::ILocalization2D.
Definition at line 117 of file Navigation2D_nwc_yarp_iLocalization2D.cpp.
|
overridevirtual |
Terminates the current navigation task.
Cannot be resumed.
Implements yarp::dev::Nav2D::INavigation2DControlActions.
Definition at line 52 of file Navigation2D_nwc_yarp_iNav2DCtrl.cpp.
|
overridevirtual |
Stores a map into the map server.
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 27 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Store an area.
area_name | the name of the area |
area | the area |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 77 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Store the current location of the robot.
location_name | the name of the location |
Implements yarp::dev::Nav2D::INavigation2DExtraActions.
Definition at line 287 of file Navigation2D_nwc_yarp.cpp.
|
overridevirtual |
Store a location specified by the user in the world reference frame.
location_name | the name of the location |
loc | the location of the robot |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 71 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Store a path.
path_name | the name of the path |
path | the path |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 83 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Ask to the robot to suspend the current navigation task for a defined amount of time.
Can be resumed by resume().
time_s |
Implements yarp::dev::Nav2D::INavigation2DControlActions.
Definition at line 46 of file Navigation2D_nwc_yarp_iNav2DCtrl.cpp.
|
protected |
Definition at line 50 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 59 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 62 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 61 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 49 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 54 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 51 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 60 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 63 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 57 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 56 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 55 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 58 of file Navigation2D_nwc_yarp.h.