Add overload to maintain backward compatibility with existing code
that uses local USB cameras or SVO files.
New API:
// For network stream cameras
open(const std::string& ip, int port, Trigger* ref, int sdk_gpu_id)
// For local cameras (USB, SVO, etc.) - backward compatible
open(sl::InputType input, Trigger* ref, int sdk_gpu_id)
This allows the same ClientPublisher class to work with both:
- Remote cameras via streaming (new use case)
- Local cameras via USB/SVO (original use case)
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
BREAKING CHANGE: ClientPublisher::open() signature changed from
open(sl::InputType input, Trigger* ref, int sdk_gpu_id)
to
open(const std::string& ip, int port, Trigger* ref, int sdk_gpu_id)
The ClientPublisher now receives camera streams over network using
setFromStream() instead of opening local USB cameras. This allows the
host to receive video from edge devices running enableStreaming().
Changes:
- Use init_parameters.input.setFromStream(ip, port) for stream input
- Keep body tracking and Fusion publishing (INTRA_PROCESS) unchanged
- Add getSerialNumber() getter for logging/debugging
- Improve error messages with context (ip:port)
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>