Ignore:
Timestamp:
Dec 10, 2015, 10:49:18 AM (9 years ago)
Author:
nguyenhu
Message:

I/O for DbtPlyVtgManager, add classes to compile, fixed DbtPlyCPT by adding type Pose3D from previous version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StdDbtPlayerComponents/DbtPlyVtgManager.cpp

    r82 r109  
    44//
    55// author:     Elie Al Alam & Gerald Dherbomez
    6 // 
     6//
    77// version:    $Id: DbtPlyVtgManager.cpp 676 2008-06-26 10:33:57Z gdherbom $
    88//
     
    2222// Construction de la fabrique de composant DbtPlyVtgManager
    2323//////////////////////////////////////////////////////////////////////////
    24 static ComponentFactory<DbtPlyVtgManager> sFactory("DbtPlyVtgManager"); 
     24static ComponentFactory<DbtPlyVtgManager> sFactory("DbtPlyVtgManager");
    2525
    2626// double dist1[2];
     
    3737
    3838//////////////////////////////////////////////////////////////////////////
    39 // Destructor 
     39// Destructor
    4040DbtPlyVtgManager::~DbtPlyVtgManager()
    4141{
     
    4545//////////////////////////////////////////////////////////////////////////
    4646// Processes data
    47 void DbtPlyVtgManager::processData(road_time_t /*t*/, road_timerange_t /*tr*/ , void * buf)
     47void DbtPlyVtgManager::processData(road_time_t t, road_timerange_t tr , void * buf)
    4848{
    4949    val = (trame_vtg*)(buf);
     50
     51    // make local copy of VTG frame
     52    memcpy(&mVtg.frame, val, sizeof(trame_vtg));
     53    mVtg.time = t;
     54    mVtg.timerange = tr;
     55
     56    // send VTG data to output
     57    checkedSend(outVtg, mVtg);
    5058
    5159}
     
    5967
    6068void DbtPlyVtgManager::startActivity()
    61 { 
     69{
    6270  DbtPlyFileManager::startActivity();
    63   // user interface
     71  outVtg = getTypedOutput<TimestampedVtgFrame, DbtPlyVtgManager>("vtg");
     72  // user interface
    6473}
    6574
     
    6978}
    7079
     80
     81/************************************************************************
     82 * Called by the framework at initialization
     83 ************************************************************************/
     84void DbtPlyVtgManager::addInputs()
     85{
     86  // uncomment to add an input
     87}
     88
     89
     90/************************************************************************
     91 * Called by the framework at initialization
     92 ************************************************************************/
     93void DbtPlyVtgManager::addOutputs()
     94{
     95  // empty: no output
     96  addOutput<TimestampedVtgFrame, DbtPlyVtgManager>("vtg");
     97}
    7198} // namespace pacpus
Note: See TracChangeset for help on using the changeset viewer.