KatanaCalibrationThread Class Reference
Katana calibration thread. More...
#include <calib_thread.h>

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. | |
Detailed Description
Katana calibration thread.This thread calibrates the arm when started and is finished when the calibration is done.
Definition at line 28 of file calib_thread.h.
Constructor & Destructor Documentation
| KatanaCalibrationThread::KatanaCalibrationThread | ( | fawkes::RefPtr< CLMBase > | katana, | |
| fawkes::Logger * | logger | |||
| ) |
Constructor.
- Parameters:
-
katana katana linear motion base class logger logger
Definition at line 38 of file calib_thread.cpp.
Member Function Documentation
| 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.
- See also:
- Thread::run()
Reimplemented from fawkes::Thread.
Definition at line 36 of file calib_thread.h.
The documentation for this class was generated from the following files:
- src/plugins/katana/calib_thread.h
- src/plugins/katana/calib_thread.cpp

