|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
42 yCDebug(FAKENAVIGATION) <<
"config configuration: \n" << config.
toString().c_str();
44 std::string context_name =
"robotGoto";
45 std::string file_name =
"robotGoto_cer.ini";
55 std::string configFile = rf.
findFile(
"from");
57 yCDebug(FAKENAVIGATION) <<
"robotGotoDev configuration: \n" << p.
toString().c_str();
65 if (!navThread->start())
91 yCInfo(FAKENAVIGATION) <<
"gotoTargetByAbsoluteLocation not yet implemented";
97 yCInfo(FAKENAVIGATION) <<
"gotoTargetByRelativeLocation not yet implemented";
103 yCInfo(FAKENAVIGATION) <<
"gotoTargetByRelativeLocation not yet implemented";
109 yCInfo(FAKENAVIGATION) <<
"applyVelocityCommand not yet implemented";
115 yCInfo(FAKENAVIGATION) <<
"stopNavigation not yet implemented";
121 yCInfo(FAKENAVIGATION) <<
"suspendNavigation not yet implemented";
127 yCInfo(FAKENAVIGATION) <<
"resumeNavigation not yet implemented";
133 yCInfo(FAKENAVIGATION) <<
"getAllNavigationWaypoints not yet implemented";
139 yCInfo(FAKENAVIGATION) <<
"getCurrentNavigationWaypoint not yet implemented";
145 yCInfo(FAKENAVIGATION) <<
"getCurrentNavigationMap not yet implemented";
151 yCInfo(FAKENAVIGATION) <<
"getNavigationStatus not yet implemented";
157 yCInfo(FAKENAVIGATION) <<
"getAbsoluteLocationOfCurrentTarget not yet implemented";
163 yCInfo(FAKENAVIGATION) <<
"recomputeCurrentNavigationPath not yet implemented";
169 yCInfo(FAKENAVIGATION) <<
"getRelativeLocationOfCurrentTarget not yet implemented";
bool resumeNavigation() override
//Resumes a previously paused navigation task.
A base class for nested structures that can be searched.
virtual void threadRelease() override
Release method.
bool stopNavigation() override
//Stops the current navigation task.
virtual std::string toString() const =0
Return a standard text representation of the content of the object.
void fromString(const std::string &txt, bool wipe=true)
Interprets a string as a list of properties.
bool getAbsoluteLocationOfCurrentTarget(yarp::dev::Nav2D::Map2DLocation &target) override
//Gets the last target set through a setNewAbsTarget() command.
#define YARP_LOG_COMPONENT(name,...)
virtual bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
define control board standard interfaces
An interface for the device drivers.
virtual void run() override
Loop function.
std::string findFile(const std::string &name)
Find the full path to a file.
bool setDefaultContext(const std::string &contextName)
Sets the context for the current ResourceFinder object.
virtual bool threadInit() override
Initialization method.
bool recomputeCurrentNavigationPath() override
Forces the navigation system to recompute the path from the current robot position to the current goa...
std::string toString() const override
Return a standard text representation of the content of the object.
bool gotoTargetByAbsoluteLocation(yarp::dev::Nav2D::Map2DLocation loc) override
Sets a new navigation target, expressed in the absolute (map) coordinate frame.
bool getCurrentNavigationMap(yarp::dev::Nav2D::NavigationMapTypeEnum map_type, yarp::dev::Nav2D::MapGrid2D &map) override
Returns the current navigation map processed by the navigation algorithm.
virtual std::string asString() const
Get string value.
virtual bool check(const std::string &key) const =0
Check if there exists a property of the given name.
virtual Value & find(const std::string &key) const =0
Gets a value corresponding to a given keyword.
bool suspendNavigation(double time) override
//Pauses the current navigation task.
bool getNavigationStatus(yarp::dev::Nav2D::NavigationStatusEnum &status) override
//Gets the status of the current navigation task.
virtual bool close() override
Close the DeviceDriver.
fakeNavigationThread(double _period, yarp::os::Searchable &_cfg)
bool gotoTargetByRelativeLocation(double x, double y, double theta) override
//Sets a new relative target, expressed in local (robot) coordinate frame.
bool getAllNavigationWaypoints(yarp::dev::Nav2D::TrajectoryTypeEnum trajectory_type, yarp::dev::Nav2D::Map2DPath &waypoints) override
Returns the list of waypoints generated by the navigation algorithm.
bool getCurrentNavigationWaypoint(yarp::dev::Nav2D::Map2DLocation &curr_waypoint) override
Returns the current waypoint pursued by the navigation algorithm.
bool fromConfigFile(const std::string &fname, bool wipe=true)
Interprets a file as a list of properties.
#define yCInfo(component,...)
#define yCDebug(component,...)
bool setDefaultConfigFile(const std::string &fname)
Provide a default value for the configuration file (can be overridden from command line with the –fro...
bool getRelativeLocationOfCurrentTarget(double &x, double &y, double &theta) override
//Gets the last target set through a setNewRelTarget command, expressed in absolute coordinates.
virtual bool applyVelocityCommand(double x_vel, double y_vel, double theta_vel, double timeout=0.1) override
Apply a velocity command.
A class for storing options and configuration information.
Helper class for finding config files and other external resources.