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

 

         

robot2d/netthread.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 NETWORK_THREAD_H
00012 #define NETWORK_THREAD_H
00013 
00014 #include <orcaice/subsystemthread.h>
00015 #include <orcaice/context.h>
00016 #include <gbxsickacfr/gbxiceutilacfr/notify.h>
00017 
00018 #include <orcaifaceimpl/odometry2d.h>
00019 #include <orcaifaceimpl/velocitycontrol2d.h>
00020 #include "hwthread.h"
00021 
00022 namespace robot2d
00023 {
00024 
00025 //
00026 // Handles network interface
00027 //
00028 class NetThread : public orcaice::SubsystemThread,
00029                   public gbxiceutilacfr::NotifyHandler<orca::VelocityControl2dData>
00030 {
00031 public:
00032 
00033     NetThread( HwThread                      &HwThread,
00034                 const orca::VehicleDescription &descr,
00035                 const orcaice::Context         &context );
00036 
00037     // from NotifyHandler
00038     virtual void handleData(const orca::VelocityControl2dData& obj);
00039 
00040 private:
00041     // from SubsystemThread
00042     virtual void initialise();
00043     virtual void work();
00044 
00045     void limit( hydrointerfaces::Robot2d::Command &cmd );
00046 
00047     // external interfaces
00048     orcaifaceimpl::Odometry2dImplPtr           odometry2dI_;
00049     orcaifaceimpl::VelocityControl2dImplPtr    velocityControl2dI_;
00050 
00051     HwThread &HwThread_;
00052 
00053     orca::VehicleDescription descr_;
00054 
00055     double maxSpeed_;
00056     double maxTurnrate_;
00057 
00058     // component current context
00059     orcaice::Context context_;
00060 };
00061 
00062 } // namespace
00063 
00064 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5