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 <networkWrappers/navigation2D_nwc_yarp/Navigation2D_nwc_yarp.h>
Public Member Functions | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. | |
bool | close () override |
Close the DeviceDriver. | |
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. | |
yarp::dev::ReturnValue | checkInsideArea (yarp::dev::Nav2D::Map2DArea area, bool &is_inside) override |
Check if the robot is currently inside the specified area. | |
yarp::dev::ReturnValue | checkInsideArea (std::string area_name, bool &is_inside) override |
Check if the robot is currently inside the specified area. | |
yarp::dev::ReturnValue | checkNearToLocation (yarp::dev::Nav2D::Map2DLocation loc, bool &is_near, double linear_tolerance, double angular_tolerance=std::numeric_limits< double >::infinity()) override |
Check if the robot is currently near to the specified area. | |
yarp::dev::ReturnValue | checkNearToLocation (std::string location_name, bool &is_near, double linear_tolerance, double angular_tolerance=std::numeric_limits< double >::infinity()) override |
Check if the robot is currently near to the specified area. | |
yarp::dev::ReturnValue | storeCurrentPosition (std::string location_name) override |
Store the current location of the robot. | |
yarp::dev::ReturnValue | getNavigationStatus (yarp::dev::Nav2D::NavigationStatusEnum &status) override |
Gets the current status of the navigation task. | |
yarp::dev::ReturnValue | recomputeCurrentNavigationPath () override |
Forces the navigation system to recompute the path from the current robot position to the current goal. | |
yarp::dev::ReturnValue | stopNavigation () override |
Terminates the current navigation task. | |
yarp::dev::ReturnValue | suspendNavigation (const double time_s) override |
Ask to the robot to suspend the current navigation task for a defined amount of time. | |
yarp::dev::ReturnValue | resumeNavigation () override |
Resume a previously suspended navigation task. | |
yarp::dev::ReturnValue | getAllNavigationWaypoints (yarp::dev::Nav2D::TrajectoryTypeEnum trajectory_type, yarp::dev::Nav2D::Map2DPath &waypoints) override |
Returns the list of waypoints generated by the navigation algorithm. | |
yarp::dev::ReturnValue | getCurrentNavigationWaypoint (yarp::dev::Nav2D::Map2DLocation &curr_waypoint) override |
Returns the current waypoint pursued by the navigation algorithm. | |
yarp::dev::ReturnValue | getCurrentNavigationMap (yarp::dev::Nav2D::NavigationMapTypeEnum map_type, yarp::dev::Nav2D::MapGrid2D &map) override |
Returns the current navigation map processed by the navigation algorithm. | |
yarp::dev::ReturnValue | gotoTargetByAbsoluteLocation (yarp::dev::Nav2D::Map2DLocation loc) override |
Ask the robot to reach a position defined in the world reference frame. | |
yarp::dev::ReturnValue | gotoTargetByLocationName (std::string location_name) override |
Ask the robot to reach a previously stored location/area. | |
yarp::dev::ReturnValue | gotoTargetByRelativeLocation (double x, double y, double theta) override |
Ask the robot to reach a position defined in the robot reference frame. | |
yarp::dev::ReturnValue | gotoTargetByRelativeLocation (double x, double y) override |
Ask the robot to reach a position defined in the robot reference frame. | |
yarp::dev::ReturnValue | followPath (const yarp::dev::Nav2D::Map2DPath &locs) override |
Ask the robot to navigate through a set of locations defined in the world reference frame. | |
yarp::dev::ReturnValue | getAbsoluteLocationOfCurrentTarget (yarp::dev::Nav2D::Map2DLocation &loc) override |
Gets the last navigation target in the world reference frame. | |
yarp::dev::ReturnValue | getNameOfCurrentTarget (std::string &location_name) override |
Gets the name of the current target, if available (set by gotoTargetByLocationName) | |
yarp::dev::ReturnValue | getRelativeLocationOfCurrentTarget (double &x, double &y, double &theta) override |
Gets the last navigation target in the robot reference frame. | |
yarp::dev::ReturnValue | applyVelocityCommand (double x_vel, double y_vel, double theta_vel, double timeout=0.1) override |
Apply a velocity command. | |
yarp::dev::ReturnValue | getLastVelocityCommand (double &x_vel, double &y_vel, double &theta_vel) override |
Returns the last applied velocity command. | |
yarp::dev::ReturnValue | getCurrentPosition (yarp::dev::Nav2D::Map2DLocation &loc) override |
Gets the current position of the robot w.r.t world reference frame. | |
yarp::dev::ReturnValue | 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. | |
yarp::dev::ReturnValue | 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. | |
yarp::dev::ReturnValue | getLocalizationStatus (yarp::dev::Nav2D::LocalizationStatusEnum &status) override |
Gets the current status of the localization task. | |
yarp::dev::ReturnValue | getEstimatedPoses (std::vector< yarp::dev::Nav2D::Map2DLocation > &poses) override |
Gets a set of pose estimates computed by the localization algorithm. | |
yarp::dev::ReturnValue | 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. | |
yarp::dev::ReturnValue | 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. | |
yarp::dev::ReturnValue | startLocalizationService () override |
Starts the localization service. | |
yarp::dev::ReturnValue | stopLocalizationService () override |
Stops the localization service. | |
yarp::dev::ReturnValue | storeLocation (std::string location_name, yarp::dev::Nav2D::Map2DLocation loc) override |
Store a location specified by the user in the world reference frame. | |
yarp::dev::ReturnValue | storeArea (std::string location_name, yarp::dev::Nav2D::Map2DArea area) override |
Store an area. | |
yarp::dev::ReturnValue | storePath (std::string path_name, yarp::dev::Nav2D::Map2DPath path) override |
Store a path. | |
yarp::dev::ReturnValue | getLocation (std::string location_name, yarp::dev::Nav2D::Map2DLocation &loc) override |
Retrieves a location specified by the user in the world reference frame. | |
yarp::dev::ReturnValue | getArea (std::string location_name, yarp::dev::Nav2D::Map2DArea &area) override |
Retrieves an area. | |
yarp::dev::ReturnValue | getPath (std::string path_name, yarp::dev::Nav2D::Map2DPath &path) override |
Retrieves a path. | |
yarp::dev::ReturnValue | renameLocation (std::string original_name, std::string new_name) override |
Searches for a location and renames it. | |
yarp::dev::ReturnValue | renameArea (std::string original_name, std::string new_name) override |
Searches for an area and renames it. | |
yarp::dev::ReturnValue | renamePath (std::string original_name, std::string new_name) override |
Searches for a path and renames it. | |
yarp::dev::ReturnValue | deleteLocation (std::string location_name) override |
Delete a location. | |
yarp::dev::ReturnValue | deleteArea (std::string location_name) override |
Delete an area. | |
yarp::dev::ReturnValue | deletePath (std::string path_name) override |
Delete a path. | |
yarp::dev::ReturnValue | getLocationsList (std::vector< std::string > &locations) override |
Get a list of the names of all stored locations. | |
yarp::dev::ReturnValue | getAreasList (std::vector< std::string > &locations) override |
Get a list of the names of all stored areas. | |
yarp::dev::ReturnValue | getPathsList (std::vector< std::string > &paths) override |
Get a list of the names of all stored paths. | |
yarp::dev::ReturnValue | getAllLocations (std::vector< yarp::dev::Nav2D::Map2DLocation > &locations) override |
Get a list of all stored locations. | |
yarp::dev::ReturnValue | getAllAreas (std::vector< yarp::dev::Nav2D::Map2DArea > &areas) override |
Get a list of all stored areas. | |
yarp::dev::ReturnValue | getAllPaths (std::vector< yarp::dev::Nav2D::Map2DPath > &paths) override |
Get a list of all stored paths. | |
yarp::dev::ReturnValue | clearAllLocations () override |
Delete all stored locations. | |
yarp::dev::ReturnValue | clearAllAreas () override |
Delete all stored areas. | |
yarp::dev::ReturnValue | clearAllPaths () override |
Delete all stored paths. | |
yarp::dev::ReturnValue | clearAllMaps () override |
Removes all the registered maps from the server. | |
yarp::dev::ReturnValue | remove_map (std::string map_name) override |
Removes a map from the map server. | |
yarp::dev::ReturnValue | store_map (const yarp::dev::Nav2D::MapGrid2D &map) override |
Stores a map into the map server. | |
yarp::dev::ReturnValue | get_map (std::string map_name, yarp::dev::Nav2D::MapGrid2D &map) override |
Gets a map from the map server. | |
yarp::dev::ReturnValue | get_map_names (std::vector< std::string > &map_names) override |
Gets a list containing the names of all registered maps. | |
yarp::dev::ReturnValue | clearAllMapsTemporaryFlags () override |
Clear all temporary flags from all stored maps. | |
yarp::dev::ReturnValue | clearMapTemporaryFlags (std::string map_name) override |
Clear all temporary flags from a specific map. | |
yarp::dev::ReturnValue | saveMapsCollection (std::string maps_collection_file) override |
Save a collection of maps to disk. | |
yarp::dev::ReturnValue | loadMapsCollection (std::string maps_collection_file) override |
Load a collection of maps from disk. | |
yarp::dev::ReturnValue | saveLocationsAndExtras (std::string locations_collection_file) override |
Save a collection of locations/area/paths etc to disk. | |
yarp::dev::ReturnValue | loadLocationsAndExtras (std::string locations_collection_file) override |
Load a collection of locations/areas/paths etc from disk. | |
yarp::dev::ReturnValue | saveMapToDisk (std::string map_name, std::string file_name) override |
Save a map to disk. | |
yarp::dev::ReturnValue | loadMapFromDisk (std::string file_name) override |
Load a map from disk. | |
yarp::dev::ReturnValue | enableMapsCompression (bool enable) override |
Enable/disables maps compression over the network. | |
![]() | |
DeviceDriver () | |
DeviceDriver (const DeviceDriver &other)=delete | |
DeviceDriver (DeviceDriver &&other) noexcept=delete | |
DeviceDriver & | operator= (const DeviceDriver &other)=delete |
DeviceDriver & | operator= (DeviceDriver &&other) noexcept=delete |
virtual | ~DeviceDriver () |
virtual std::string | id () const |
Return the id assigned to the PolyDriver. | |
virtual void | setId (const std::string &id) |
Set the id for this device. | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. | |
![]() | |
virtual | ~INavigation2D () |
Destructor. | |
![]() | |
virtual | ~INavigation2DTargetActions () |
Destructor. | |
![]() | |
virtual | ~INavigation2DControlActions () |
Destructor. | |
![]() | |
virtual | ~INavigation2DVelocityActions () |
Destructor. | |
![]() | |
virtual | ~INavigation2DExtraActions () |
Destructor. | |
![]() | |
virtual | ~IMap2D () |
Destructor. | |
![]() | |
virtual | ~ILocalization2D () |
Destructor. | |
![]() | |
virtual | ~PortReader () |
Destructor. | |
virtual Type | getReadType () const |
![]() | |
Navigation2D_nwc_yarp_ParamsParser () | |
~Navigation2D_nwc_yarp_ParamsParser () override=default | |
bool | parseParams (const yarp::os::Searchable &config) override |
Parse the DeviceDriver parameters. | |
std::string | getDeviceClassName () const override |
Get the name of the DeviceDriver class. | |
std::string | getDeviceName () const override |
Get the name of the device (i.e. | |
std::string | getDocumentationOfDeviceParams () const override |
Get the documentation of the DeviceDriver's parameters. | |
std::vector< std::string > | getListOfParams () const override |
Return a list of all params used by the device. | |
bool | getParamValue (const std::string ¶mName, std::string ¶mValue) const override |
Return the value (represented as a string) of the requested parameter. | |
std::string | getConfiguration () const override |
Return the configuration of the device. | |
![]() | |
virtual | ~IDeviceDriverParams () |
Additional Inherited Members | |
![]() | |
const std::string | m_device_classname = {"Navigation2D_nwc_yarp"} |
const std::string | m_device_name = {"navigation2D_nwc_yarp"} |
bool | m_parser_is_strict = false |
const parser_version_type | m_parser_version = {} |
std::string | m_provided_configuration |
const std::string | m_local_defaultValue = {""} |
const std::string | m_navigation_server_defaultValue = {""} |
const std::string | m_map_locations_server_defaultValue = {""} |
const std::string | m_localization_server_defaultValue = {""} |
std::string | m_local = {} |
std::string | m_navigation_server = {} |
std::string | m_map_locations_server = {} |
std::string | m_localization_server = {} |
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 shown in class: Navigation2D_nwc_yarp_ParamsParser
Definition at line 38 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 236 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 221 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 198 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 183 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 127 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 |
Enable/disables maps compression over the network.
enable |
Implements yarp::dev::Nav2D::IMap2D.
Definition at line 308 of file Navigation2D_nwc_yarp_iMap2D.cpp.
|
overridevirtual |
Ask the robot to navigate through a set of locations defined in the world reference frame.
path | the locations to be reached |
Implements yarp::dev::Nav2D::INavigation2DTargetActions.
Definition at line 73 of file Navigation2D_nwc_yarp_iNav2DTarget.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 303 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 259 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 28 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 136 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 316 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 47 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 46 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 51 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 48 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 54 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 53 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 52 of file Navigation2D_nwc_yarp.h.
|
protected |
Definition at line 55 of file Navigation2D_nwc_yarp.h.