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

 

         

examples/reactivewalker/mainthread.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2009 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 MAIN_THREAD_H
00012 #define MAIN_THREAD_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 #include <memory>
00020 
00021 #include "algodriver.h"
00022 
00023 namespace reactivewalker
00024 {
00025 
00026 class MainThread : public orcaice::SubsystemThread
00027 {
00028 
00029 public: 
00030 
00031     MainThread( const orcaice::Context& context );
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     std::auto_ptr<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