orca-robotics


INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

REPOSITORY
Interfaces
Components
Libraries
Utilities
Software Map

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard
Wiki
login/pass: orca/orca

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

examples/reactivewalker/mainthread.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This copy of Orca is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010  
00011 #ifndef ALGORITHM_HANDLER_H
00012 #define ALGORITHM_HANDLER_H
00013 
00014 #include <orcaice/subsystemthread.h>
00015 #include <orcaice/context.h>
00016 #include <orca/velocitycontrol2d.h>
00017 #include <orcaifaceimpl/rangescanner2d.h>
00018 #include <orcaifaceimpl/odometry2d.h>
00019 
00020 #include "algodriver.h"
00021 
00022 namespace reactivewalker
00023 {
00024 
00025 class MainThread : public orcaice::SubsystemThread
00026 {
00027 
00028 public: 
00029 
00030     MainThread( const orcaice::Context& context );
00031     virtual ~MainThread();
00032 
00033 private:
00034 
00035     // from SubsystemThread
00036     virtual void initialise();
00037     virtual void work();
00038 
00039     // utilities    
00040     void initNetwork();
00041     void initDriver();
00042 
00043     // generic inerface to the algorithm
00044     AlgoDriver* driver_;
00045 
00046     // local access to remote interfaces
00047     orcaifaceimpl::BufferedRangeScanner2dConsumerImplPtr laser_;
00048     orcaifaceimpl::StoringOdometry2dConsumerImplPtr odometry_;
00049     // remote command interface
00050     orca::VelocityControl2dPrx commandPrx_;
00051     
00052     orcaice::Context context_;
00053 };
00054 
00055 } // namespace
00056 
00057 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5