Ignore:
Timestamp:
Mar 13, 2019, 4:40:18 PM (6 years ago)
Author:
Sanahuja Guillaume
Message:

vrpnlite support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/VrpnClient.cpp

    r294 r309  
    4444    singleton = this;
    4545  }
    46 
     46 
    4747  pimpl_ = new VrpnClient_impl(this, name, address);
    4848}
    4949
     50
     51VrpnClient::VrpnClient(std::string name,
     52             uint16_t port,  uint8_t priority)
     53  : Thread(getFrameworkManager(), name, priority) {
     54        if (singleton != NULL) {
     55    SimpleWarn("VrpnClient should be instanced only one time!\n");
     56    SimpleWarn("Next calls to GetVrpnClient() will return the first created VrpnClient (%s)\n",singleton->ObjectName().c_str());
     57  } else {
     58    singleton = this;
     59  }
     60
     61  pimpl_ = new VrpnClient_impl(this, name, port);
     62}             
     63             
    5064VrpnClient::VrpnClient(string name,
    5165                       SerialPort *serialport, uint16_t us_period,
     
    6983}
    7084
     85VrpnClient::ConnectionType_t VrpnClient::ConnectionType(void) const {
     86  return pimpl_->connectionType;
     87}
     88
    7189Layout *VrpnClient::GetLayout(void) const {
    7290  return (Layout *)(pimpl_->setup_tab);
     
    7593TabWidget *VrpnClient::GetTabWidget(void) const { return pimpl_->tab; }
    7694
    77 bool VrpnClient::UseXbee(void) const { return pimpl_->UseXbee(); }
    78 
    7995void VrpnClient::Run(void) { pimpl_->Run(); }
    8096
Note: See TracChangeset for help on using the changeset viewer.