#include <MultiSenseTypes.hh>
Public Member Functions | |
| SensorStatus () | |
Public Attributes | |
| float | ambientLightPercentage |
A external sensor status. This is only supported by external LED attachements for S21 devices
Example code to query the lighting sensor status :
{.cpp}
//
// Instantiate a channel connecting to a sensor at the factory default
// IP address
crl::multisense::Channel* channel;
channel = crl::multisense::Channel::Create("10.66.171.21");
channel->setMtu(7200);
//
// Create a lightingConfig instance to store our queried lighting configuration
crl::multisense::lighting::SensorStatus lightingSensors;
//
// Query the lighting configuration from the Channel instance
crl::multisense::Status status = channel->getLightingSensorStatus(lightingSensors);
//
// Check to see if the lighting sensor query was successful
if(crl::multisense::Status_Ok != status) {
throw std::runtime_error("Unable to query lighting sensor status");
}
//
// Use the lighting sensor status...
//
// Destroy the channel instance
crl::multisense::Channel::Destroy(channel);
Definition at line 1658 of file MultiSenseTypes.hh.
Definition at line 1668 of file MultiSenseTypes.hh.
This represents the percentage of light the ambient sensor currently sees. External ambient sensors are only available on S21 units with the external lighting attachement. This value ranges between 0 and 100
Definition at line 1666 of file MultiSenseTypes.hh.