Visual Servoing Platform
version 3.5.1 under development (2023-09-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 105 of file vpRingLight.h.
vpRingLight::vpRingLight | ( | ) |
Constructor to access 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 70 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 80 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 196 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 170 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 89 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 132 of file vpRingLight.cpp.
References vpParallelPort::sendData().