#include <MultiSenseTypes.hh>
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:
throw std::runtime_error("Unable to query lighting configuration");
}
Example code to set a lighting configuration:
throw std::runtime_error("Unable to query lighting configuration");
}
throw std::runtime_error("Unable to set lighting configuration");
}
Definition at line 1659 of file MultiSenseTypes.hh.
crl::multisense::lighting::Config::Config |
( |
| ) |
|
|
inline |
Default constructor. Flashing is disabled and all lights are off
Definition at line 1738 of file MultiSenseTypes.hh.
float crl::multisense::lighting::Config::getDutyCycle |
( |
uint32_t |
i | ) |
const |
|
inline |
Get the current duty cycle in terms of percent for a specific light
- Parameters
-
i | The index of the light to query |
- Returns
- The current duty cycle setting for the light corresponding to index i
Definition at line 1728 of file MultiSenseTypes.hh.
bool crl::multisense::lighting::Config::getFlash |
( |
| ) |
const |
|
inline |
Get the current lighting flash setting.
- Returns
- A boolean flag corresponding to if flashing is enabled or disabled
Definition at line 1678 of file MultiSenseTypes.hh.
bool crl::multisense::lighting::Config::setDutyCycle |
( |
float |
percent | ) |
|
|
inline |
Set a sensors duty cycle in terms of percent for all the on-board lights
- Parameters
-
percent | The percent "on" to set all the on-board LED's [0.0, 100.0] |
- Returns
- If the given percent setting is valid
Definition at line 1688 of file MultiSenseTypes.hh.
bool crl::multisense::lighting::Config::setDutyCycle |
( |
uint32_t |
i, |
|
|
float |
percent |
|
) |
| |
|
inline |
Set a sensors duty cycle in terms of percent for a specific light based off its index
- Parameters
-
i | The index of the light to configure |
percent | The percent "on" to set all the on-board LED's [0.0, 100.0] |
- Returns
- If the given percent setting is valid
Definition at line 1709 of file MultiSenseTypes.hh.
void crl::multisense::lighting::Config::setFlash |
( |
bool |
onOff | ) |
|
|
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
- Parameters
-
onOff | A boolean flag to enable or disable flashing |
Definition at line 1670 of file MultiSenseTypes.hh.
std::vector<float> crl::multisense::lighting::Config::m_dutyCycle |
|
private |
bool crl::multisense::lighting::Config::m_flashEnabled |
|
private |
The documentation for this class was generated from the following file: