Time-of-Flight Library(ToF) 3.13.4
|
|
DEPRECATED, use KeaCamera. More...
#include <usb_interface.hpp>
Public Member Functions | |
UsbInterface (tof_usb_interface_t ptr=nullptr) | |
Construct from pointer. | |
UsbInterface (UsbDevice &usb_device) | |
Create USB camera from a usb device. | |
bool | is_connected () const |
Check whether a connection is still maintained with the camera. | |
double | test_stream_speed () |
Tests the connection speed of the USB port. | |
CameraConfig | download_configuration () |
Download camera configuration from the camera. | |
Calibration | download_calibration () |
Download calibration from the camera. | |
void | upload_configuration (const CameraConfig &config) |
Upload camera configuration to the camera. | |
bool | depth_stream_capable (DepthStreamType stream) const |
Check whether this camera is capable of streaming the specified type. | |
void | start_depth_stream (DepthStreamType stream) |
Start the depth stream. | |
void | stop_depth_stream () |
Stop the depth stream. | |
bool | has_depth_data () const |
Returns true if a depth frame is available. | |
Data | get_depth_data () |
Get a depth frame. | |
bool | image_stream_capable () const |
Check whether camera supports an image stream. | |
void | start_image_stream () |
Start image stream. | |
void | stop_image_stream () |
Stop image stream. | |
bool | has_image_data () const |
Check whether image frame is available. | |
Data | get_image_data () |
Get image frame. | |
Data | get_image_data_into_pointer (uint8_t *pointer, size_t capacity, user_pointer_destructed_fn &callback) |
Get the image frame into the supplied pointer. | |
Data | get_image_data_into_pointer (uint8_t *pointer, size_t capacity, tof_user_pointer_destructed_t callback, void *callback_user_data) |
Get the image frame into the supplied pointer. | |
size_t | get_user_pointer_capacity () const |
Get the capacity for amount of user pointers that can be registered. | |
void | set_user_pointer_capacity (size_t capacity) |
Set the capacity for amount of user pointers that can be registered. | |
void | add_depth_user_pointer (uint8_t *pointer, size_t capacity, user_pointer_destructed_fn &callback) |
Add a pointer that will be filled with depth data. | |
void | add_depth_user_pointer (uint8_t *pointer, size_t capacity, tof_user_pointer_destructed_t callback, void *callback_user_data) |
Add a pointer that will be filled with depth data. | |
const char * | version () |
Get the tof library version running on the camera. | |
bool | software_trigger_capable () |
Check whether the camera is capable of software trigger. | |
void | software_trigger () |
Software trigger the camera. | |
DEPRECATED, use KeaCamera.
Connect to a camera directly using the USB interface
Definition at line 35 of file usb_interface.hpp.
|
inline |
Construct from pointer.
Definition at line 38 of file usb_interface.hpp.
|
inline |
Create USB camera from a usb device.
usb_device | USB device |
Definition at line 45 of file usb_interface.hpp.
|
inline |
Add a pointer that will be filled with depth data.
This method allows you to fill data straight into your own data structure without any additional copying.
pointer | The pointer to the data to write into |
capacity | The amount of data the pointer can hold |
callback | Callback that will be called when pointer is no longer in use |
callback_user_data | User data that will be passed back when the function pointer is called |
Definition at line 230 of file usb_interface.hpp.
|
inline |
Add a pointer that will be filled with depth data.
This method allows you to fill data straight into your own data structure without any additional copying.
pointer | The pointer to the data to write into |
capacity | The amount of data the pointer can hold |
callback | Callback that will be called when pointer is no longer in use |
Definition at line 217 of file usb_interface.hpp.
|
inline |
Check whether this camera is capable of streaming the specified type.
stream | Depth stream type |
Definition at line 96 of file usb_interface.hpp.
|
inline |
Download calibration from the camera.
Definition at line 78 of file usb_interface.hpp.
|
inline |
Download camera configuration from the camera.
Definition at line 68 of file usb_interface.hpp.
|
inline |
|
inline |
|
inline |
Get the image frame into the supplied pointer.
pointer | The pointer to the data to write into |
capacity | The amount of data the pointer can hold |
callback | Callback that will be called when pointer is no longer in use |
callback_user_data | User data that will be passed back when the function pointer is called |
Definition at line 188 of file usb_interface.hpp.
|
inline |
Get the image frame into the supplied pointer.
pointer | The pointer to the data to write into |
capacity | The amount of data the pointer can hold |
callback | Callback that will be called when pointer is no longer in use |
Definition at line 173 of file usb_interface.hpp.
|
inline |
Get the capacity for amount of user pointers that can be registered.
Definition at line 198 of file usb_interface.hpp.
|
inline |
Returns true if a depth frame is available.
Definition at line 116 of file usb_interface.hpp.
|
inline |
Check whether image frame is available.
Definition at line 152 of file usb_interface.hpp.
|
inline |
Check whether camera supports an image stream.
Definition at line 133 of file usb_interface.hpp.
|
inline |
Check whether a connection is still maintained with the camera.
Definition at line 52 of file usb_interface.hpp.
|
inline |
Set the capacity for amount of user pointers that can be registered.
capacity | User pointer capacity |
Definition at line 205 of file usb_interface.hpp.
|
inline |
Software trigger the camera.
Definition at line 250 of file usb_interface.hpp.
|
inline |
Check whether the camera is capable of software trigger.
Definition at line 244 of file usb_interface.hpp.
|
inline |
Start the depth stream.
stream | Depth stream type |
Definition at line 103 of file usb_interface.hpp.
|
inline |
Start image stream.
Definition at line 139 of file usb_interface.hpp.
|
inline |
Stop the depth stream.
Definition at line 109 of file usb_interface.hpp.
|
inline |
Stop image stream.
Definition at line 145 of file usb_interface.hpp.
|
inline |
Tests the connection speed of the USB port.
This is useful to check whether a hub or USB port works well. The maximum speed that the camera is able to transmit is ~3.0 Gbps.
Definition at line 61 of file usb_interface.hpp.
|
inline |
Upload camera configuration to the camera.
config | Camera configuration |
Definition at line 88 of file usb_interface.hpp.
|
inline |
Get the tof library version running on the camera.
Definition at line 237 of file usb_interface.hpp.