3 Commits

Author SHA1 Message Date
0a08411709 feat: add backward-compatible open() overload for local cameras
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>
2026-02-04 03:27:22 +00:00
435ea09451 refactor: change ClientPublisher to accept camera streams instead of local USB
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>
2026-02-04 03:25:21 +00:00
53a443d120 x 2026-02-04 03:03:16 +00:00