INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

hydrodrivers/hydropathplanner2dacfr/driver.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2009 Alex Brooks
00005  *
00006  * This distribution is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 #ifndef PATHPLANNER2DACFR_DRIVER_H
00011 #define PATHPLANNER2DACFR_DRIVER_H
00012 
00013 #include <hydrointerfaces/pathplanner2d.h>
00014 #include <hydropathplan/ipathplanner2d.h>
00015 #include <memory>
00016 
00017 namespace pathplanner2dacfr
00018 {
00019 
00020 //
00021 // @brief A wrapper for all the path planners in the hydropathplan library
00022 //
00023 // @author Alex Brooks
00024 //
00025 class Driver : public hydrointerfaces::PathPlanner2d
00026 {
00027 
00028 public: 
00029 
00030     Driver( const hydrointerfaces::PathPlanner2d::Config &config,
00031             const hydroutil::Context                     &context );
00032 
00033     std::vector<hydrointerfaces::PathPlanner2d::Point>
00034     computePath( const Point &start,
00035                  const Point &goal );
00036 
00037 private: 
00038 
00039     std::auto_ptr<hydropathplan::IPathPlanner2d> algorithm_;
00040 
00041     hydroogmap::OgMap ogMap_;
00042 
00043 //    hydroutil::Context context_;
00044 };
00045 
00046 // Used for dynamically loading driver
00047 class Factory : public hydrointerfaces::PathPlanner2dFactory
00048 {
00049 public:
00050     hydrointerfaces::PathPlanner2d*
00051     createDriver( const hydrointerfaces::PathPlanner2d::Config &config,
00052                   const hydroutil::Context                     &context ) const
00053     {
00054         return new Driver( config, context );
00055     }
00056 };
00057 
00058 } // namespace
00059 
00060 // Used for dynamically loading driver
00061 extern "C" {
00062     hydrointerfaces::PathPlanner2dFactory *createPathPlanner2dDriverFactory();
00063 }
00064 
00065 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5