Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b3f4370
egocap: an ffmpeg encoder listed with no capability flag is one the c…
NVshawnhwang Dec 1, 2026
54e8972
egocap: the calibration requirement's help line describes the positio…
NVshawnhwang Dec 1, 2026
7d117b1
egocap: a settled session is known again by what its recorder wrote, …
NVshawnhwang Dec 1, 2026
6d65c9b
egocap: the late glove save's tests wait for the save's answer, not f…
NVshawnhwang Dec 1, 2026
2de9768
egocap: a copy that ends before the frame a test holds it at fails th…
NVshawnhwang Dec 1, 2026
52bcc37
egocap: a hand whose glove delivers nothing is not counted valid and …
NVshawnhwang Dec 1, 2026
e85af98
egocap: the session details name the cameras that arrive over LiveKit
NVshawnhwang Dec 1, 2026
6e2672b
egocap: the launcher's stop runs to its end, says what is left, and a…
NVshawnhwang Dec 1, 2026
43cb20b
egocap: a tracking device has one name in the checklist, the Station …
NVshawnhwang Dec 1, 2026
6fbd3fa
egocap: with no operator in use the glove calibration item says a tak…
NVshawnhwang Dec 1, 2026
c42c7eb
egocap: a warning in the Devices step says recording is not blocked
NVshawnhwang Dec 1, 2026
b39f140
egocap: the launcher passes the bridge's bitrate maximum and keyframe…
NVshawnhwang Dec 1, 2026
df0a247
egocap: an example three-camera profile for an Orin that captures thr…
NVshawnhwang Dec 1, 2026
3dd75fd
egocap: the guides say the tracking bindings are built for the exampl…
NVshawnhwang Dec 1, 2026
7f16011
egocap: a stop request cannot leave a child unregistered, and one tha…
NVshawnhwang Dec 1, 2026
be3def9
egocap: the launcher runs with its output closed, and its log holds a…
NVshawnhwang Dec 1, 2026
f99708b
egocap: the launcher's port check covers every port a start binds, on…
NVshawnhwang Dec 1, 2026
ea18485
egocap: the launcher's bridge flags take only what the bridge reads a…
NVshawnhwang Dec 1, 2026
387eca3
egocap: the launcher's guide says what its stop does not reach
NVshawnhwang Dec 1, 2026
59ae880
egocap: a recorder writes a last beat as it releases a session
NVshawnhwang Dec 1, 2026
5456a14
egocap: a lock file that is empty or a link is no value to know a ses…
NVshawnhwang Dec 1, 2026
c888115
egocap: tests for three parts of the session reader's rule that none …
NVshawnhwang Dec 1, 2026
519474a
egocap: the guides say what three cameras were run with, where the to…
NVshawnhwang Dec 1, 2026
f4849a0
egocap: a session just released is noted in a thread, not on the even…
NVshawnhwang Dec 1, 2026
d1fb9ff
Merge branch 'nvShawnHwang/egocap_station_fixes' into nvShawnHwang/eg…
NVshawnhwang Dec 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions examples/egocap/CALIBRATION_TOOLS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ item for a reader with the token, and by Record where calibration is required.

| When | The sentence |
| --- | --- |
| No operator name is set. | *no operator name is set, so no glove calibration is loaded; enter the operator name on the recording page* |
| Nobody is the operator in use: no take that names one has been asked for in this run. The backend hears an operator's name only with a take, whatever name the recording page shows. | *no take naming an operator has been asked for in this run yet, so no glove calibration is loaded; it is loaded for the operator named on the recording page when Record is pressed* |
| The name is too long to name files, or differs from another operator's only in capital and small letters on a disk that does not tell them apart. | The two sentences under "Whose files, and where they are kept". |
| Neither file is listed. | *there is no glove calibration for Alex; open Glove calibration under Settings, Devices to make one* |
| One file is listed. | *only the left glove has a calibration file for Alex, Alex_right.mcal is missing; calibrate the gloves again, the two files are made together* |
Expand Down Expand Up @@ -2659,13 +2659,15 @@ start its children with. What that leaves unknown:
the camera bridge. The step's rule, the table file and what the bridge tests without a GPU are described in
[`../camera_livekit_bridge/GPU_PROCESSING.md`](../camera_livekit_bridge/GPU_PROCESSING.md). The preview and the
offline copy follow that rule with OpenCV on the CPU; that the bridge's output equals them has not been seen.
- **Three cameras through the launcher have never been run on an Orin.** No Jetson, GMSL camera or CUDA GPU was
at hand: the three-stream start was run against stand-ins for the programs it starts, and
`configs/three-camera-settings.example.yaml` holds a placeholder for every station value. A first run must check
that each stream arrives as the camera its role says, that each corrected picture is corrected with its own
camera's calibration, the GPU's memory and load with three decode, remap and encode pipelines, the bitrate the
link between the Orin and the PC carries, that time sync settles for all three streams, and what happens when
one camera drops. [`CAMERA_SETTINGS.md`](CAMERA_SETTINGS.md#not-yet-verified-on-hardware) says how to check each.
- **Three cameras through the launcher have been run on an Orin once, in one way.** On one station, through the
Argus backend, at one frame rate, published as received (not corrected), from the launcher to the page.
Everything else of the three-stream start was run against stand-ins for the programs it starts, and both example
profiles hold a placeholder for every station value. Not yet run on hardware: three cameras corrected live, each
with its own camera's calibration; the SIPL backend with three cameras; a recording of three cameras, and with
it that their takes are time-aligned; and what happens when one camera drops. A station still checks for itself
which stream is which camera, what its GPU carries with three decode, remap and encode pipelines, and what its
link between the Orin and the PC carries. [`CAMERA_SETTINGS.md`](CAMERA_SETTINGS.md#not-yet-verified-on-hardware) says how
to check each.
- **No real board was captured.** How far towards the rim of a real wide-angle lens the board is still detected,
and so whether the reach the guide and the fisheye grade ask for can be had, is not measured; neither is the
fisheye solve on a real lens. The live guide judges blur by the board's size in the picture, not by where the
Expand Down
139 changes: 115 additions & 24 deletions examples/egocap/CAMERA_SETTINGS.md

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions examples/egocap/LIVEKIT_PREVIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ view therefore tells the backend, every two seconds, what its preview receives o

A stream that cannot be recorded at all still fails, as before. A report never fails the item and never holds a
take, and the page says so: a warning is listed as "Advisory: does not hold recording.", the Devices step reads
"takes are not held", and each sentence above names the recorder as what checks next. A report is one browser's
"recording is not blocked", and each sentence above names the recorder as what checks next. A report is one browser's
observation, and a browser can fail to receive video the recorder would receive (another network path, a codec
the browser lacks). What refuses a take is the recorder itself, which joins the room when the take starts and
gives up, with its reason, when a stream sends no frame within ten seconds.
Expand Down Expand Up @@ -191,13 +191,15 @@ corrected video is what the launcher is for.

## Not yet verified on hardware

- **Three cameras through the launcher have never been run on an Orin.** No Jetson, GMSL camera or CUDA GPU was
at hand: the three-stream start was run against stand-ins for the programs it starts, and
`configs/three-camera-settings.example.yaml` holds a placeholder for every station value. A first run must check
that each stream arrives as the camera its role says, that each corrected picture is corrected with its own
camera's calibration, the GPU's memory and load with three decode, remap and encode pipelines, the bitrate the
link between the Orin and the PC carries, that time sync settles for all three streams, and what happens when
one camera drops. [`CAMERA_SETTINGS.md`](CAMERA_SETTINGS.md#not-yet-verified-on-hardware) says how to check each.
- **Three cameras through the launcher have been run on an Orin once, in one way.** On one station, through the
Argus backend, at one frame rate, published as received (not corrected), from the launcher to the page.
Everything else of the three-stream start was run against stand-ins for the programs it starts, and both example
profiles hold a placeholder for every station value. Not yet run on hardware: three cameras corrected live, each
with its own camera's calibration; the SIPL backend with three cameras; a recording of three cameras, and with
it that their takes are time-aligned; and what happens when one camera drops. A station still checks for itself
which stream is which camera, what its GPU carries with three decode, remap and encode pipelines, and what its
link between the Orin and the PC carries. [`CAMERA_SETTINGS.md`](CAMERA_SETTINGS.md#not-yet-verified-on-hardware) says how
to check each.
With three cameras the checklist has an item for each camera the station's roles name, the page reports what
its preview receives of each, and a take is given up when any one of the three sends no frame within ten
seconds; none of that was seen with three real streams.
Expand Down
85 changes: 67 additions & 18 deletions examples/egocap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,32 +362,73 @@ says at its top when a station runs with the rule off or weakened.
uv run python tools/start_system.py --orin user@orin --deploy-script PATH --livekit-server PATH --bridge PATH --open
```

It prints the page URL and the recording control token. CaptureServer runs real acquisition, which needs a built
It prints the page URL and the recording control token, and writes what it and its helpers print to
`launcher.log` in its run directory, which its first line names; its output need not be piped into `tee` or a
file to be kept, and where it is piped all the same, the stop still runs to its end when the program at the other
end of the pipe ends first. CaptureServer runs real acquisition, which needs a built
IsaacCapture checkout (`ISAAC_ROOT`) and tracking hardware, and it opens only the cameras it is given with
`--capture-camera NAME=DEVICE_ID`. The default station file (`--station-config`) is the shipped example, which
requests three cameras, so the launcher refuses to start unless each one is given; use a station file whose
`video_sources` name no CaptureServer cameras when the video comes from the Orin through LiveKit.

`--mock` runs without hardware: CaptureServer gives synthetic tracking and cameras, and a local mock sender replaces
the Orin, so nothing real is started and `--orin` is refused. The mock sender is `camera_streamer`'s `mock_sender.py`.
It is not in this tree (it is added by the camera_streamer mock-sender change, PR #1476), so give its path with
the Orin, so nothing real is started and `--orin` is refused. The mock sender is `camera_streamer`'s `mock_sender.py`,
`examples/camera_streamer/mock_sender/mock_sender.py` in this repository; give its path with
`--mock-sender` or `EGOCAP_MOCK_SENDER`; it needs `ffmpeg` with `libx265`. With `--bridge`, `--livekit-server` and the
mock sender the mock video goes through the same receiver, bridge and page, with the frame-ready time as its
timestamp because the mock sender has no clock to measure. A recording made in this mode is synthetic data.

Without `--orin` or `--mock` only the PC side starts. `--skip-deploy` reuses the previous release. The sender runs
for `--seconds` (default one hour) and the launcher stops the whole stack when it ends, so a take in progress is
cut off; the launcher prints the stop time at startup. The sender release the profile describes, its deploy tool, the
timesync tool, the LiveKit server and the bridge are not in this tree's base, so pass their paths (or set
`EGOCAP_DEPLOY_SCRIPT`, `EGOCAP_TIMESYNC_TOOL`, `EGOCAP_LIVEKIT_SERVER`, `EGOCAP_BRIDGE`); `--orin` needs the timesync
tool and refuses to start without it. `--orin` also needs an IPv4 address, because the bridge finds the sender's chrony
cut off; the launcher prints the stop time at startup. The sender, its deploy tool, the mock sender, the bridge and
the timesync tool are all in this repository; a LiveKit server is not. The launcher is told where two programs are
that it cannot find by itself: the LiveKit server (`--livekit-server` or `EGOCAP_LIVEKIT_SERVER`) and the bridge,
which is built from `examples/camera_livekit_bridge` (`--bridge` or `EGOCAP_BRIDGE`). The deploy tool is
`examples/camera_streamer/argus_sender/deploy/deploy_sender.py`, named with `--deploy-script` (or
`EGOCAP_DEPLOY_SCRIPT`). The timesync tool is `src/core/timesync/tools/timesync_tool.py`, which the launcher uses
unless `--timesync-tool` (or `EGOCAP_TIMESYNC_TOOL`) names another; `--orin` needs it and refuses to start without it. `--orin` also needs an IPv4 address, because the bridge finds the sender's chrony
by it. After the bridge starts, the launcher runs time sync through `src/core/timesync/tools/timesync_tool.py` (see that
module's README): `ensure-local` (which may install chrony on this PC), an unprivileged chronyd on this PC that measures
the Orin's clock, and `configure-remote` on the Orin; each step has a timeout. These steps run before the page address
is printed, and a failure leaves the preview up with capture times unavailable (`--require-chrony` makes it fatal). For
the SIPL backend the launcher also stops `nvargus-daemon` on the Orin before starting the sender, since it holds the
cameras; it does not restart it.

**Stopping.** Ctrl-C once stops everything: the children last started first, each given its time to finish (the
backend closes a take that is being recorded), then the sender on the Orin. The stop is carried out to its end
whatever happens to the terminal. A second Ctrl-C does not abort it: it hurries it, so the children still running
are killed at once without their time to finish; any further one changes nothing. The launcher waits for each
child to be gone, asks the Orin's deploy tool to stop the sender and says `the Orin sender is stopped` once that is
confirmed. Whatever is not known to have stopped is named with the command that ends it, and the exit status is
then 1: a child by its process group, the sender with the deploy tool's `check` and `stop`.

What the stop does not reach:

- A program one of the children started and moved out of that child's process group is not the launcher's to
find: it is neither stopped nor reported.
- The launcher killed outright (`kill -9`) stops nothing: its children run in sessions of their own.
- The Orin is given 60 s to answer the request to stop its sender. An answer that never comes is cut off then and
reported as not confirmed; nothing pressed shortens that wait.
- Output piped into a program that stays alive and never reads blocks the launcher once the pipe is full, the
stop included, until that program reads or ends. `launcher.log` holds everything printed, so no pipe is needed.

**Before it starts anything** the launcher refuses a start while a port the stack is about to bind is taken. It
checks each port only when the program that binds it will be started, and on the address that program binds:

| Port | Whose | Checked when | On |
| --- | --- | --- | --- |
| `--backend-port`, 8010, TCP | the backend | always | loopback |
| 8082, TCP | CaptureServer | always | loopback |
| `EGOCAP_VISER_PORT`, 8085, TCP | the backend's 3D view | unless `EGOCAP_VISER_ENABLED` switches it off | `EGOCAP_VISER_HOST`, loopback unless set |
| 7880, TCP | LiveKit, signalling | with `--livekit-server` | loopback |
| 7881, TCP and 7882, UDP | LiveKit, media | with `--livekit-server` | every address of this PC, since LiveKit listens for media on the network interfaces' own addresses |
| the profile's `network.port`, TCP | the mock sender | with `--mock` and the camera chain | loopback |
| `--chrony-cmd-port`, 12301, UDP | the time-sync follower | with `--orin` | loopback |

The refusal names each port, whose it is and, where the system tells (`ss`, else `lsof`), the program that holds
it, which is usually a program an earlier run left behind. A port taken after the check is reported by the
program that fails to bind it, and the stack is stopped. A port outside 1 to 65535 is refused on the command line.

The page needs the frontend built once (`cd frontend && npm install && npm run build`); the launcher refuses to start
without `frontend/dist`. For the default receiver, the launcher runs the receiver's `setup.sh` (venv, requirements,
native decoder) when the venv or decoder is missing and the camera chain starts (`--orin`, or `--mock` with the
Expand All @@ -396,7 +437,8 @@ scripts.

The sender settings come from the checked-in profile `configs/default-camera-settings.yaml` (30 fps, 4 Mbit/s HEVC). Pass another file with `--sender-config`, or override single values with
`--fps`, `--bitrate-mbps` and `--sender-port`; the receiver, bridge and CaptureServer descriptor are
built from the same effective values. [`CAMERA_SETTINGS.md`](CAMERA_SETTINGS.md) says which component owns which
built from the same effective values. `--bridge-bitrate-mbps` and `--bridge-idr-period` pass the bridge its own
bitrate maximum and keyframe period for each LiveKit track; without them the bridge's defaults stand. [`CAMERA_SETTINGS.md`](CAMERA_SETTINGS.md) says which component owns which
setting and lists every key.

**All the station's cameras.** A profile may hold from one to three mono streams, one for each station camera:
Expand All @@ -416,8 +458,10 @@ The station file is part of the command: the default one requests CaptureServer
refuses to start without. `recording/egocap/stations/ego_stations.bridged.example.yaml` is a template for a
station whose cameras all arrive through the bridge.

`configs/three-camera-settings.example.yaml` shows such a profile, with a placeholder for every value that belongs
to one station; the launcher refuses it until each is filled in. The streams run at one frame rate, share the one
`configs/three-camera-settings.example.yaml` shows such a profile for an Orin with the SIPL API, and
`configs/three-camera-settings.argus.example.yaml` for one without it, which captures through Argus
([`CAMERA_SETTINGS.md`](CAMERA_SETTINGS.md#which-example-a-station-uses) says how to tell). Each has a placeholder
for every value that belongs to one station; the launcher refuses it until each is filled in. The streams run at one frame rate, share the one
link between the Orin and the PC, and `--fps` and `--bitrate-mbps` set every stream alike. See
[`CAMERA_SETTINGS.md`](CAMERA_SETTINGS.md#a-profile-for-three-cameras) for what the streams share, what the
station file and the station's roles on the page must then name, and the bitrate.
Expand All @@ -440,13 +484,15 @@ its [Limits](CALIBRATION_TOOLS.md#limits) for what of this has and has not been

Not yet verified on hardware:

- **Three cameras through the launcher have never been run on an Orin.** No Jetson, GMSL camera or CUDA GPU was
at hand: the three-stream start was run against stand-ins for the programs it starts, and
`configs/three-camera-settings.example.yaml` holds a placeholder for every station value. A first run must check
that each stream arrives as the camera its role says, that each corrected picture is corrected with its own
camera's calibration, the GPU's memory and load with three decode, remap and encode pipelines, the bitrate the
link between the Orin and the PC carries, that time sync settles for all three streams, and what happens when
one camera drops. [`CAMERA_SETTINGS.md`](CAMERA_SETTINGS.md#not-yet-verified-on-hardware) says how to check each.
- **Three cameras through the launcher have been run on an Orin once, in one way.** On one station, through the
Argus backend, at one frame rate, published as received (not corrected), from the launcher to the page.
Everything else of the three-stream start was run against stand-ins for the programs it starts, and both example
profiles hold a placeholder for every station value. Not yet run on hardware: three cameras corrected live, each
with its own camera's calibration; the SIPL backend with three cameras; a recording of three cameras, and with
it that their takes are time-aligned; and what happens when one camera drops. A station still checks for itself
which stream is which camera, what its GPU carries with three decode, remap and encode pipelines, and what its
link between the Orin and the PC carries. [`CAMERA_SETTINGS.md`](CAMERA_SETTINGS.md#not-yet-verified-on-hardware) says how
to check each.

### Integration boundary

Expand All @@ -462,7 +508,10 @@ recording admission, recovery and shutdown); until then it is the supported way

CaptureServer's real mode needs its own Python bindings built in an
[IsaacCapture](https://github.com/NVIDIA/IsaacCapture) checkout (`ISAAC_ROOT`, the checkout root)
for tracking, and the `oak` extra plus a camera's device ID for OAK-D cameras. See
for tracking, and the `oak` extra plus a camera's device ID for OAK-D cameras. The bindings have to be built for
this example's Python, 3.12: configure the checkout with `-DISAAC_TELEOP_PYTHON_VERSION=3.12`, since its default
is 3.11 and bindings built for another Python are not found when this example imports them. A build directory
that was already configured for another Python cannot be switched; remove it and configure again. See
[`capture_server/README.md`](capture_server/README.md) for exact setup and validated hardware.
The backend and frontends are unchanged between mock and real mode — CaptureServer is the only
process that differs.
Expand Down
Loading
Loading