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

 

         

libs/orcapublish/localise2dpublisher.h

00001 #ifndef ORCAPUBLISH_LOCALISE2DPUBLISHER_H
00002 #define ORCAPUBLISH_LOCALISE2DPUBLISHER_H
00003 
00004 #include <orcaifaceimpl/localise2d.h>
00005 #include <hydropublish/localise2dpublisher.h>
00006 
00007 namespace orcapublish {
00008 
00009 //
00010 // @author Alex Brooks
00011 //
00012 class Localise2dPublisher : public hydropublish::Localise2dPublisher
00013 {
00014 public: 
00015 
00016     Localise2dPublisher( const orca::VehicleGeometryDescriptionPtr &geom,
00017                          const orcaice::Context                    &context, 
00018                          const std::string                         &name );
00019 
00020     Localise2dPublisher( const orcaice::Context &context, 
00021                          const std::string      &name );
00022 
00023     void init() { impl_->initInterface(); }
00024     void localSetAndSend( const hydronavutil::Gmm &gmm,
00025                           const hydrotime::Time   &timeStamp );
00026     void localSetAndSend( const hydronavutil::Pose &pose,
00027                           const hydrotime::Time    &time = hydrotime::Time(0,0) );
00028                           
00029 
00030 private: 
00031 
00032     orcaifaceimpl::Localise2dImplPtr impl_;
00033     orca::Localise2dData             orcaLocalise2d_;
00034 };
00035 
00036 class Localise2dPublisherFactory : public hydropublish::Localise2dPublisherFactory
00037 {
00038 public:
00039     Localise2dPublisherFactory( const orcaice::Context &context )
00040         : context_(context)
00041         {}
00042 
00043     hydropublish::Localise2dPublisherPtr createPublisher( 
00044         const hydronavutil::CylindricalGeometryDescription &cylindricalDescription,
00045         const std::string                                  &name );
00046 
00047     hydropublish::Localise2dPublisherPtr createPublisher( const std::string &name );
00048 
00049 private:
00050 
00051     orcaice::Context context_;
00052 };
00053 
00054 }
00055 
00056 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5