|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
19 #ifndef YARP_DEV_NAVIGATION2DCLIENT_H
20 #define YARP_DEV_NAVIGATION2DCLIENT_H
33 #define DEFAULT_THREAD_PERIOD 20 //ms
70 std::string m_current_goal_name;
71 bool reset_current_goal_name();
72 bool set_current_goal_name(
const std::string& name);
73 bool get_current_goal_name(std::string& name);
76 double normalize_angle(
double angle);
82 bool close()
override;
92 virtual bool checkNearToLocation(std::string location_name,
double linear_tolerance,
double angular_tolerance = std::numeric_limits<double>::infinity())
override;
98 bool applyVelocityCommand(
double x_vel,
double y_vel,
double theta_vel,
double timeout = 0.1)
override;
109 bool getEstimatedPoses(std::vector<yarp::dev::Nav2D::Map2DLocation>& poses)
override;
132 #endif // YARP_DEV_NAVIGATION2DCLIENT_H
A simple collection of objects that can be described and transmitted in a portable way.
bool gotoTargetByAbsoluteLocation(yarp::dev::Nav2D::Map2DLocation loc) override
Ask the robot to reach a position defined in the world reference frame.
bool getNavigationStatus(yarp::dev::Nav2D::NavigationStatusEnum &status) override
Gets the current status of the navigation task.
bool getAbsoluteLocationOfCurrentTarget(yarp::dev::Nav2D::Map2DLocation &loc) override
Gets the last navigation target in the world reference frame.
A base class for nested structures that can be searched.
std::string m_map_locations_server_name
contains the definition of a Vector type
bool getRelativeLocationOfCurrentTarget(double &x, double &y, double &theta) override
Gets the last navigation target in the robot reference frame.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool storeLocation(std::string location_name, yarp::dev::Nav2D::Map2DLocation loc) override
Store a location specified by the user in the world reference frame.
bool suspendNavigation(const double time_s) override
Ask to the robot to suspend the current navigation task for a defined amount of time.
bool stopLocalizationService() override
Stops the localization service.
bool recomputeCurrentNavigationPath() override
Forces the navigation system to recompute the path from the current robot position to the current goa...
bool getAllNavigationWaypoints(yarp::dev::Nav2D::TrajectoryTypeEnum trajectory_type, yarp::dev::Nav2D::Map2DPath &waypoints) override
Returns the list of waypoints generated by the navigation algorithm.
Interface implemented by all device drivers.
yarp::os::Port m_rpc_port_map_locations_server
An interface to control the navigation of a mobile robot in a 2D environment.
virtual bool checkInsideArea(yarp::dev::Nav2D::Map2DArea area) override
Check if the robot is currently inside the specified area.
bool getEstimatedPoses(std::vector< yarp::dev::Nav2D::Map2DLocation > &poses) override
Gets a set of pose estimates computed by the localization algorithm.
bool parse_respond_string(const yarp::os::Bottle &command, yarp::os::Bottle &reply)
bool gotoTargetByLocationName(std::string location_name) override
Ask the robot to reach a previously stored location/area.
bool getLocation(std::string location_name, yarp::dev::Nav2D::Map2DLocation &loc) override
Retrieves a location previously stored by the user.
define control board standard interfaces
navigation2DClient: A device which allows a client application to perform navigation tasks,...
yarp::os::Port m_rpc_port_user_commands
bool applyVelocityCommand(double x_vel, double y_vel, double theta_vel, double timeout=0.1) override
Apply a velocity command.
bool getCurrentNavigationMap(yarp::dev::Nav2D::NavigationMapTypeEnum map_type, yarp::dev::Nav2D::MapGrid2D &map) override
Returns the current navigation map processed by the navigation algorithm.
bool getLocationsList(std::vector< std::string > &locations) override
Get a list of all stored locations.
bool stopNavigation() override
Terminates the current navigation task.
bool setInitialPose(const yarp::dev::Nav2D::Map2DLocation &loc) override
Sets the initial pose for the localization algorithm which estimates the current position of the robo...
A mini-server for network communication.
bool getLocalizationStatus(yarp::dev::Nav2D::LocalizationStatusEnum &status) override
Gets the current status of the localization task.
std::string m_navigation_server_name
yarp::os::Port m_rpc_port_navigation_server
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
bool gotoTargetByRelativeLocation(double x, double y, double theta) override
Ask the robot to reach a position defined in the robot reference frame.
bool getEstimatedOdometry(yarp::dev::OdometryData &odom) override
Gets the estimated odometry the robot, including its velocity expressed in the world and in the local...
yarp::os::Port m_rpc_port_localization_server
virtual bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool close() override
Close the DeviceDriver.
bool deleteLocation(std::string location_name) override
Delete a location.
An interface for reading from a network connection.
bool storeCurrentPosition(std::string location_name) override
Store the current location of the robot.
bool startLocalizationService() override
Starts the localization service.
virtual 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.
bool getArea(std::string area_name, yarp::dev::Nav2D::Map2DArea &area) override
Retrieves an area previously stored by the user.
bool getCurrentPosition(yarp::dev::Nav2D::Map2DLocation &loc) override
Gets the current position of the robot w.r.t world reference frame.
bool getNameOfCurrentTarget(std::string &location_name) override
Gets the name of the current target, if available (set by gotoTargetByLocationName)
bool clearAllLocations() override
Delete all stored locations.
std::string m_localization_server_name
bool resumeNavigation() override
Resume a previously suspended navigation task.
bool getCurrentNavigationWaypoint(yarp::dev::Nav2D::Map2DLocation &curr_waypoint) override
Returns the current waypoint pursued by the navigation algorithm.