![]() |
HemiStereo SDK
The C++ Software Development Kit for the HemiStereo 3D sensing device.
|
The Device class controls a single sensor device. More...
#include <osp/sdk/device.h>
Classes | |
| struct | Info |
| The Info struct holds some information about a device. More... | |
Public Types | |
| enum | CaptureMode { CaptureMode::RAW, CaptureMode::RGBD } |
| The capture modes. More... | |
| enum | StereoConfiguration { Binocular, Trinocular } |
| The stereo configuration modes. | |
Public Member Functions | |
| virtual | ~Device () |
| Destructor. | |
| Status | open (std::string uri) |
| Open device. More... | |
| void | close () |
| close Device | |
| Status | login (const PasswordCredentials &credentials) |
| Log in to device using password credentials. More... | |
| void | logout () |
| Log out from device. | |
| bool | setPasswordCredentials (const PasswordCredentials &credentials) |
| Set the password credentials for accessing the device. More... | |
| Info | info () |
| Get device infomation. More... | |
| bool | reboot () |
| Reboot the device. More... | |
| bool | poweroff () |
| Shutdown the device. More... | |
| Status | start () |
| Start processing of current mode. More... | |
| void | stop () |
| Stop processing. | |
| bool | running () |
| Check device running. More... | |
| std::unique_ptr< osp::Frame > | getFrame (std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
| Get a frame from the sensor. More... | |
| float | temperature (TemperatureSensor sensor) |
| Get temperature of the CPU. More... | |
| Camera | getCameraModel (CameraModelType type) |
| Request camera model params. More... | |
| void | setCameraModel (CameraModelType type, Camera model) |
| Set camera model params. More... | |
| void | saveCurrentCameraModelsAsDefault () |
| Set current camera model params as default. | |
| void | setExtrinsic (Extrinsic extrinsic) |
| Set extrinsic camera parameters. More... | |
| Extrinsic | getExtrinsic () |
| Request extrinsic camera parameters. More... | |
| CaptureMode | captureMode () const |
| Get current capture mode. More... | |
| Status | setCaptureMode (CaptureMode mode) |
| Set capture mode. More... | |
| bool | exposureAutoLock () |
| Check if auto exposure is locked. More... | |
| Range< uint64_t > | exposureRange () |
| Return exposure time range. More... | |
| float | exposureCompensation () |
| Return exposure compensation. More... | |
| Range< float > | gainRange () |
| Return analog gain range. More... | |
| Range< float > | digitalGainRange () |
| Return digital gain range. More... | |
| float | frameRate () |
| Return capture frame rate. More... | |
| bool | setExposureAutoLock (bool lock) |
| Lock/Unlock current exposure time. More... | |
| bool | setExposureRange (Range< uint64_t > range) |
| Set exposure time range. More... | |
| bool | setExposureCompensation (float ev) |
| Set exposure compensation. More... | |
| bool | setGainRange (Range< float > range) |
| Set analog gain range. More... | |
| bool | setDigitalGainRange (Range< float > range) |
| Set digital gain range. More... | |
| bool | setFrameRate (float frameRate) |
| Set capture frame rate. More... | |
| StereoConfiguration | stereoConfiguration () |
| Get current stereo configuration. More... | |
| bool | setStereoConfiguration (StereoConfiguration config) |
| Set stereo configuration. More... | |
| StereoMatchingMode | stereoMatchingMode () |
| Get current stereo matching mode. More... | |
| bool | setStereoMatchingMode (StereoMatchingMode mode) |
| Set stereo matching mode. More... | |
| osp::Size< size_t > | stereoMatchingResolution () |
| Get current stereo matching resolution. More... | |
| bool | setStereoMatchingResolution (const osp::Size< size_t > &resolution) |
| Set stereo matching resolution. More... | |
| StreamSettings | streamSettings () const |
| Get current settings for streaming between device and client. More... | |
| void | setStreamSettings (const StreamSettings &streamSettings) |
| Set settings for streaming between device and client. More... | |
| StereoMatchingParams | stereoMatchingParams () const |
| Get the current stereo matching parameters. More... | |
| bool | setStereoMatchingParams (const StereoMatchingParams &stereoMatchingParams) |
| Set the parameters for stereo matching. More... | |
The Device class controls a single sensor device.
|
strong |
| CaptureMode osp::Device::captureMode | ( | ) | const |
Get current capture mode.
| Range<float> osp::Device::digitalGainRange | ( | ) |
Return digital gain range.
| bool osp::Device::exposureAutoLock | ( | ) |
Check if auto exposure is locked.
| float osp::Device::exposureCompensation | ( | ) |
Return exposure compensation.
| Range<uint64_t> osp::Device::exposureRange | ( | ) |
Return exposure time range.
| float osp::Device::frameRate | ( | ) |
Return capture frame rate.
| Range<float> osp::Device::gainRange | ( | ) |
Return analog gain range.
| Camera osp::Device::getCameraModel | ( | CameraModelType | type | ) |
Request camera model params.
| type | Type of the camera model to be returned |
| Extrinsic osp::Device::getExtrinsic | ( | ) |
Request extrinsic camera parameters.
| std::unique_ptr<osp::Frame> osp::Device::getFrame | ( | std::chrono::milliseconds | timeout = std::chrono::milliseconds(0) | ) |
Get a frame from the sensor.
| timeout | Timeout for receiving the frame. If timeout expires, the return value will be empty. |
| Status osp::Device::login | ( | const PasswordCredentials & | credentials | ) |
Log in to device using password credentials.
| credentials | PasswordCredentials object containing the password |
| bool osp::Device::poweroff | ( | ) |
Shutdown the device.
| bool osp::Device::reboot | ( | ) |
Reboot the device.
| bool osp::Device::running | ( | ) |
Check device running.
| void osp::Device::setCameraModel | ( | CameraModelType | type, |
| Camera | model | ||
| ) |
Set camera model params.
| type | Type of the camera model to be set |
| model |
| Status osp::Device::setCaptureMode | ( | CaptureMode | mode | ) |
| bool osp::Device::setDigitalGainRange | ( | Range< float > | range | ) |
Set digital gain range.
| range | digital gain range [1...256] |
| bool osp::Device::setExposureAutoLock | ( | bool | lock | ) |
Lock/Unlock current exposure time.
| lock | If true, the current exposure time will be locked, otherwise the auto controls can change it. |
| bool osp::Device::setExposureCompensation | ( | float | ev | ) |
Set exposure compensation.
| ev | exposure compensation in ev [-10...10] |
| bool osp::Device::setExposureRange | ( | Range< uint64_t > | range | ) |
Set exposure time range.
| range | exposure time range in ns [30000...400000000] |
| void osp::Device::setExtrinsic | ( | Extrinsic | extrinsic | ) |
Set extrinsic camera parameters.
| extrinsic | Extrinsic parameters |
| bool osp::Device::setFrameRate | ( | float | frameRate | ) |
Set capture frame rate.
| frameRate | frames per second [1...30] |
| bool osp::Device::setGainRange | ( | Range< float > | range | ) |
Set analog gain range.
| range | analog gain range [1...251] |
| bool osp::Device::setPasswordCredentials | ( | const PasswordCredentials & | credentials | ) |
Set the password credentials for accessing the device.
| credentials | PasswordCredentials object containing the new password |
| bool osp::Device::setStereoConfiguration | ( | StereoConfiguration | config | ) |
Set stereo configuration.
| config | stereo configuration |
| bool osp::Device::setStereoMatchingMode | ( | StereoMatchingMode | mode | ) |
Set stereo matching mode.
| mode | stereo matching mode |
| bool osp::Device::setStereoMatchingParams | ( | const StereoMatchingParams & | stereoMatchingParams | ) |
Set the parameters for stereo matching.
| Stereo | matching parameters |
| bool osp::Device::setStereoMatchingResolution | ( | const osp::Size< size_t > & | resolution | ) |
Set stereo matching resolution.
| resolution | stereo matching resolution |
| void osp::Device::setStreamSettings | ( | const StreamSettings & | streamSettings | ) |
Set settings for streaming between device and client.
| Stream | settings object |
| StereoConfiguration osp::Device::stereoConfiguration | ( | ) |
Get current stereo configuration.
| StereoMatchingMode osp::Device::stereoMatchingMode | ( | ) |
Get current stereo matching mode.
| StereoMatchingParams osp::Device::stereoMatchingParams | ( | ) | const |
Get the current stereo matching parameters.
| osp::Size<size_t> osp::Device::stereoMatchingResolution | ( | ) |
Get current stereo matching resolution.
| StreamSettings osp::Device::streamSettings | ( | ) | const |
Get current settings for streaming between device and client.
| float osp::Device::temperature | ( | TemperatureSensor | sensor | ) |
Get temperature of the CPU.
| sensor | temperature sensor |