#include <calib_thread.h>
Inheritance diagram for KatanaCalibrationThread:
Public Member Functions | |
KatanaCalibrationThread (fawkes::RefPtr< CLMBase > katana, fawkes::Logger *logger) | |
Constructor. | |
virtual void | once () |
Execute an action exactly once. | |
Protected Member Functions | |
virtual void | run () |
Stub to see name in backtrace for easier debugging. |
This thread calibrates the arm when started and is finished when the calibration is done.
Definition at line 28 of file calib_thread.h.
KatanaCalibrationThread::KatanaCalibrationThread | ( | fawkes::RefPtr< CLMBase > | katana, | |
fawkes::Logger * | logger | |||
) |
Constructor.
katana | katana linear motion base class | |
logger | logger |
Definition at line 38 of file calib_thread.cpp.
void KatanaCalibrationThread::once | ( | ) | [virtual] |
Execute an action exactly once.
This code is executed once and only once right after the thread is started before loop() is called. This is useful if you want to implement an one-shot background job. Just implement once() and leave once() untouched. Start the thread and detach it and it will just do its job and then die automatically. If you use set_delete_on_exit(true) even the Thread instance will be automatically deleted.
Reimplemented from fawkes::Thread.
Definition at line 45 of file calib_thread.cpp.
References KatanaMotionThread::_error_code, KatanaMotionThread::_finished, KatanaMotionThread::_katana, KatanaMotionThread::_logger, fawkes::KatanaInterface::ERROR_CMD_START_FAILED, fawkes::Logger::log_debug(), fawkes::Logger::log_warn(), and fawkes::Thread::name().
virtual void KatanaCalibrationThread::run | ( | ) | [inline, protected, virtual] |
Stub to see name in backtrace for easier debugging.
Reimplemented from fawkes::Thread.
Definition at line 36 of file calib_thread.h.