Changeset 140 in flair-src for trunk/lib/FlairSensorActuator/src/VrpnObject_impl.cpp
- Timestamp:
- 02/15/17 14:41:36 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/VrpnObject_impl.cpp
r139 r140 55 55 "identifiant pour la connexion Xbee ignore car pas en mode Xbee\n"); 56 56 } 57 57 58 58 // state 59 59 cvmatrix_descriptor *desc = new cvmatrix_descriptor(7, 1); … … 82 82 z_plot->AddCurve(output->Element(6)); 83 83 84 if(parent->IsRunning()) {85 self->Warn("adding VrpnObject on running VrpnClient can crash\n");86 }87 88 84 if (parent->UseXbee()) { 89 85 tracker = NULL; … … 93 89 tracker->register_change_handler(this, handle_pos); 94 90 tracker->shutup = true; 95 parent->pimpl_->AddTrackable( self);91 parent->pimpl_->AddTrackable(this); 96 92 } 93 97 94 } 98 95 99 96 VrpnObject_impl::~VrpnObject_impl(void) { 100 if (tracker != NULL) // normal 101 { 102 parent->pimpl_->RemoveTrackable(self); 97 parent->pimpl_->RemoveTrackable(this); 98 if (tracker != NULL) {// normal 103 99 tracker->unregister_change_handler(this, handle_pos); 104 100 delete tracker; 105 } else // xbee106 {107 parent->pimpl_->RemoveTrackable(this);108 101 } 109 102 delete plot_tab; 110 }111 112 void VrpnObject_impl::mainloop(void) {113 tracker->mainloop();114 103 } 115 104
Note:
See TracChangeset
for help on using the changeset viewer.