Public Member Functions | Public Attributes
crl::multisense::lighting::SensorStatus Class Reference

#include <MultiSenseTypes.hh>

List of all members.

Public Member Functions

 SensorStatus ()

Public Attributes

float ambientLightPercentage

Detailed Description

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.


Constructor & Destructor Documentation

Definition at line 1668 of file MultiSenseTypes.hh.


Member Data Documentation

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.


The documentation for this class was generated from the following file:


multisense_lib
Author(s):
autogenerated on Fri Apr 5 2019 02:28:24