Visual Servoing Platform
version 3.2.0 under development (2019-01-22)
|
#include <visp3/robot/vpRingLight.h>
Public Member Functions | |
vpRingLight () | |
virtual | ~vpRingLight () |
void | pulse () |
void | pulse (double time) |
void | on () |
void | off () |
Ring light management under unix.
Here is an example showing how to synchronise the framegrabbing with the lighting system.
Here is an example showing how to turn on the lighting during 10 seconds.
Definition at line 110 of file vpRingLight.h.
vpRingLight::vpRingLight | ( | ) |
Constructor to acces to the ring light device connected to the parallel port.
Open and initialise the default parallel port device "/dev/parport0" to communicate with the ring light.
vpParallelPortException::opening | If the device used to access to the parallel port can't be opened. A possible reason is that you don't have write access. |
Turn the ring light off.
Definition at line 73 of file vpRingLight.cpp.
References off().
|
virtual |
Destructor to close the device.
Turn the ring light off.
vpParallelPortException::closing | If the device used to access to the parallel port can't be closed. |
Definition at line 83 of file vpRingLight.cpp.
References off().
void vpRingLight::off | ( | ) |
Turn the ring light off.
To turn the ring light on, see on().
Definition at line 199 of file vpRingLight.cpp.
References vpParallelPort::sendData().
Referenced by vpRingLight(), and ~vpRingLight().
void vpRingLight::on | ( | ) |
Turn the ring light on.
To turn the ring light off, see off().
Definition at line 173 of file vpRingLight.cpp.
References vpParallelPort::sendData().
void vpRingLight::pulse | ( | ) |
Activates the ring light by sending a pulse throw the parallel port.
The pulse width is 500 us. This pulse activates a NE555 which turns on on the light during 10ms.
Definition at line 92 of file vpRingLight.cpp.
References vpParallelPort::sendData().
void vpRingLight::pulse | ( | double | time | ) |
Activates the ring light by sending a pulse throw the parallel port during a specified duration.
time | : Duration in milli-second (ms) during while the light is turned on. |
Definition at line 135 of file vpRingLight.cpp.
References vpParallelPort::sendData().