LibMultiSense
LibMultiSense Documentation
|
Class used to store a specific lighting configuration. More...
#include <MultiSenseTypes.hh>
Public Member Functions | |
void | setFlash (bool onOff) |
Turn on/off light flashing. More... | |
bool | getFlash () const |
Get the current lighting flash setting. More... | |
bool | setDutyCycle (float percent) |
Set a sensors duty cycle in terms of percent for all the on-board lights. More... | |
bool | setDutyCycle (uint32_t i, float percent) |
Set a sensors duty cycle in terms of percent for a specific light based off its index. More... | |
float | getDutyCycle (uint32_t i) const |
Get the current duty cycle in terms of percent for a specific light. More... | |
uint32_t | getNumberOfPulses () const |
Get the number of pulses of the light per a single exposure This is used to trigger the light or output signal multiple times after a single exposure. More... | |
bool | setNumberOfPulses (const uint32_t numPulses) |
Set the number of pulses of the light within a single exposure This is used to trigger the light or output signal multiple times after a single exposure. More... | |
uint32_t | getStartupTime () const |
Get the startup time offset of the led in microseconds The LED or output trigger is triggered this many microseconds before the start of the image exposure. More... | |
bool | setStartupTime (uint32_t ledTransientResponse_us) |
Set the transient startup time of the led, for better synchronization. More... | |
bool | getInvertPulse () const |
Get whether or not the LED pulse is inverted. More... | |
bool | setInvertPulse (const bool invert) |
Invert the output signal that drives lighting. More... | |
bool | enableRollingShutterLedSynchronization (const bool enabled) |
bool | getRollingShutterLedSynchronizationStatus (void) const |
Get the setting of the rollingShutterSynchronization. More... | |
Config () | |
Default constructor. More... | |
Private Attributes | |
bool | m_flashEnabled |
std::vector< float > | m_dutyCycle |
uint32_t | m_numberPulses |
uint32_t | m_lightStartupOffset_us |
bool | m_invertPulse |
bool | m_rollingShutterLedEnabled |
Class used to store a specific lighting configuration.
Member of this class are set and queried via set and get methods. This class is used as an input to a channel object to query and set lighting parameters.
Example code to query a lighting configuration:
Example code to set a lighting configuration:
Definition at line 2257 of file MultiSenseTypes.hh.
|
inline |
Default constructor.
Flashing is disabled and all lights are off
Definition at line 2441 of file MultiSenseTypes.hh.
|
inline |
Definition at line 2422 of file MultiSenseTypes.hh.
|
inline |
Get the current duty cycle in terms of percent for a specific light.
i | The index of the light to query |
Definition at line 2326 of file MultiSenseTypes.hh.
|
inline |
Get the current lighting flash setting.
Definition at line 2276 of file MultiSenseTypes.hh.
|
inline |
Get whether or not the LED pulse is inverted.
True means the output will be low during the exposure. False means the output will be high during the exposure.
Definition at line 2393 of file MultiSenseTypes.hh.
|
inline |
Get the number of pulses of the light per a single exposure This is used to trigger the light or output signal multiple times after a single exposure.
For values greater than 1, pulses will occur between the exposures, not during. This can be used to leverage human persistence of vision to make the light appear as though it is not flashing
Definition at line 2341 of file MultiSenseTypes.hh.
|
inline |
Get the setting of the rollingShutterSynchronization.
Note: This feature is only available for Next Gen Stereo Cameras, with a rolling shutter imager.
Definition at line 2434 of file MultiSenseTypes.hh.
|
inline |
Get the startup time offset of the led in microseconds The LED or output trigger is triggered this many microseconds before the start of the image exposure.
Definition at line 2367 of file MultiSenseTypes.hh.
|
inline |
Set a sensors duty cycle in terms of percent for all the on-board lights.
percent | The percent "on" to set all the on-board LED's [0.0, 100.0] |
Definition at line 2286 of file MultiSenseTypes.hh.
|
inline |
Set a sensors duty cycle in terms of percent for a specific light based off its index.
i | The index of the light to configure |
percent | The percent "on" to set all the on-board LED's [0.0, 100.0] |
Definition at line 2307 of file MultiSenseTypes.hh.
|
inline |
Turn on/off light flashing.
During flashing lights are only on when the image sensor is exposing. This significantly reduces the sensor power consumption
onOff | A boolean flag to enable or disable flashing |
Definition at line 2268 of file MultiSenseTypes.hh.
|
inline |
Invert the output signal that drives lighting.
True means the output will be low during the exposure. False means the output will be high during the exposure. (Only supported for firmware >=5.21)
invert | Whether or not to invert the pulse signal |
Definition at line 2406 of file MultiSenseTypes.hh.
|
inline |
Set the number of pulses of the light within a single exposure This is used to trigger the light or output signal multiple times after a single exposure.
For values greater than 1, pulses will occur between the exposures, not during. This can be used to leverage human persistence of vision to make the light appear as though it is not flashing
Definition at line 2354 of file MultiSenseTypes.hh.
|
inline |
Set the transient startup time of the led, for better synchronization.
The LED or output trigger is triggered this many microseconds before the start of the image exposure
ledTransientResponse_us | The led transient time. |
Definition at line 2380 of file MultiSenseTypes.hh.
|
private |
Definition at line 2448 of file MultiSenseTypes.hh.
|
private |
Definition at line 2443 of file MultiSenseTypes.hh.
|
private |
Definition at line 2451 of file MultiSenseTypes.hh.
|
private |
Definition at line 2450 of file MultiSenseTypes.hh.
|
private |
Definition at line 2449 of file MultiSenseTypes.hh.
|
private |
Definition at line 2452 of file MultiSenseTypes.hh.