Ignore:
Timestamp:
01/09/19 15:38:32 (3 years ago)
Author:
Sanahuja Guillaume
Message:

vrpn modifs

File:
1 edited

Legend:

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

    r232 r294  
    3939    : Thread(getFrameworkManager(), name, priority) {
    4040        if (singleton != NULL) {
    41     Err("VrpnClient must be instanced only one time\n");
    42     return;
     41    SimpleWarn("VrpnClient should be instanced only one time!\n");
     42    SimpleWarn("Next calls to GetVrpnClient() will return the first created VrpnClient (%s)\n",singleton->ObjectName().c_str());
     43  } else {
     44    singleton = this;
    4345  }
    4446
    45   singleton = this;
    4647  pimpl_ = new VrpnClient_impl(this, name, address);
    4748}
     
    5253    : Thread(getFrameworkManager(), name, priority) {
    5354        if (singleton != NULL) {
    54     Err("VrpnClient must be instanced only one time\n");
    55     return;
     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;
    5659  }
    57 
    58   singleton = this;
     60 
    5961  pimpl_ = new VrpnClient_impl(this, name, serialport, us_period);
    6062}
Note: See TracChangeset for help on using the changeset viewer.