Time-of-Flight Library(ToF) 3.13.3
|
|
DEPRECATED, use KeaCamera. More...
#include <gige_interface.hpp>
Public Member Functions | |
GigeInterface (tof_gige_interface_t ptr) | |
Construct from pointer. | |
GigeInterface (uint16_t port=0) | |
Create an instance of the gige interface. | |
std::vector< DiscoveryMessage > | discover () |
Detect all the cameras on the network. | |
DiscoveryMessage | discover_one () |
Returns a message of the first camera that responded. | |
DiscoveryMessage | find (StringView serial) |
Detect a specific camera on the network, will throw an error if it can't find the camera. | |
void | connect (const DiscoveryMessage &message) |
Connect to the camera and gain exclusive access. | |
void | disconnect () |
Disconnect from the camera. | |
bool | is_connected () const |
Check whether a connection is still maintained with the camera. | |
uint16_t | get_stream_packet_size () const |
Get stream packet size. | |
void | set_stream_packet_size (uint16_t packet_size) |
Set stream packet size. | |
bool | test_stream_packet_size (uint16_t port=0) |
Test whether using the set packet size works. | |
uint32_t | get_delay () const |
Get delay between network packets. | |
void | set_delay (uint32_t delay) |
Set delay between network packets. | |
CameraConfig | download_configuration (uint16_t port=0) |
Download camera configuration from the camera. | |
Calibration | download_calibration (uint16_t port=0) |
Download calibration from the camera. | |
void | upload_configuration (const CameraConfig &config, uint16_t port=0) |
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, uint16_t port=0) |
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 (uint16_t port=0) |
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. | |
bool | persistent_ip_capable () const |
Get whether the camera is persistent ip capable. | |
PersistentIp | get_persistent_ip () const |
Get the current persistent ip settings. | |
void | set_persistent_ip (const PersistentIp &persistent_ip) |
Set the persistent ip settings. | |
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 gige interface
Definition at line 127 of file gige_interface.hpp.
|
inline |
Construct from pointer.
Definition at line 130 of file gige_interface.hpp.
|
inline |
Create an instance of the gige interface.
port | The port to use for GVCP communication, if 0 is specified it will use an OS assigned port |
Definition at line 138 of file gige_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 431 of file gige_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 418 of file gige_interface.hpp.
|
inline |
Connect to the camera and gain exclusive access.
message | Discovery message of the camera to connect to |
Definition at line 181 of file gige_interface.hpp.
|
inline |
Check whether this camera is capable of streaming the specified type.
stream | Depth stream type |
Definition at line 270 of file gige_interface.hpp.
|
inline |
Disconnect from the camera.
Definition at line 187 of file gige_interface.hpp.
|
inline |
Detect all the cameras on the network.
Definition at line 145 of file gige_interface.hpp.
|
inline |
Returns a message of the first camera that responded.
Definition at line 159 of file gige_interface.hpp.
|
inline |
Download calibration from the camera.
port | Port to download configuration on |
Definition at line 251 of file gige_interface.hpp.
|
inline |
Download camera configuration from the camera.
port | Port to download configuration on |
Definition at line 240 of file gige_interface.hpp.
|
inline |
Detect a specific camera on the network, will throw an error if it can't find the camera.
serial | Serial number of camera to find |
Definition at line 171 of file gige_interface.hpp.
|
inline |
Get delay between network packets.
Definition at line 224 of file gige_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 364 of file gige_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 349 of file gige_interface.hpp.
|
inline |
Get the current persistent ip settings.
Definition at line 381 of file gige_interface.hpp.
|
inline |
|
inline |
Get the capacity for amount of user pointers that can be registered.
Definition at line 399 of file gige_interface.hpp.
|
inline |
Returns true if a depth frame is available.
Definition at line 291 of file gige_interface.hpp.
|
inline |
Check whether image frame is available.
Definition at line 328 of file gige_interface.hpp.
|
inline |
Check whether camera supports an image stream.
Definition at line 308 of file gige_interface.hpp.
|
inline |
Check whether a connection is still maintained with the camera.
Definition at line 194 of file gige_interface.hpp.
|
inline |
Get whether the camera is persistent ip capable.
Definition at line 374 of file gige_interface.hpp.
|
inline |
Set delay between network packets.
delay | The delay, depending on the camera software it is in nanoseconds or in cpu instruction |
Definition at line 232 of file gige_interface.hpp.
|
inline |
Set the persistent ip settings.
The persistent ip settings will be active on next reboot.
persistent_ip | The persistent ip |
Definition at line 392 of file gige_interface.hpp.
|
inline |
Set stream packet size.
packet_size | The packet size |
Definition at line 208 of file gige_interface.hpp.
|
inline |
Set the capacity for amount of user pointers that can be registered.
capacity | User pointer capacity |
Definition at line 406 of file gige_interface.hpp.
|
inline |
Software trigger the camera.
Definition at line 451 of file gige_interface.hpp.
|
inline |
Check whether the camera is capable of software trigger.
Definition at line 445 of file gige_interface.hpp.
|
inline |
Start the depth stream.
stream | Depth stream type |
port | Port to receive depth data on |
Definition at line 278 of file gige_interface.hpp.
|
inline |
Start image stream.
port | Port to receive image data on |
Definition at line 315 of file gige_interface.hpp.
|
inline |
Stop the depth stream.
Definition at line 284 of file gige_interface.hpp.
|
inline |
Stop image stream.
Definition at line 321 of file gige_interface.hpp.
|
inline |
Test whether using the set packet size works.
port | Port to send test packets to |
Definition at line 216 of file gige_interface.hpp.
|
inline |
Upload camera configuration to the camera.
config | Camera configuration |
port | Port to download configuration on |
Definition at line 262 of file gige_interface.hpp.
|
inline |
Get the tof library version running on the camera.
Definition at line 438 of file gige_interface.hpp.