guides:example-programs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| guides:example-programs [2025/04/01 02:37] – Add camera slice example GIF admin | guides:example-programs [2026/03/22 22:56] (current) – [Frame image] osnr | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| {{ notes: | {{ notes: | ||
| - | === Metrics === | ||
| - | |||
| - | < | ||
| - | When $::thisNode has step count /c/ { | ||
| - | Wish $this is labelled [string trim " | ||
| - | |||
| - | Metrics | ||
| - | ---- | ||
| - | step count: $c | ||
| - | step time: $::stepTime | ||
| - | camera time: $:: | ||
| - | AprilTag time: $:: | ||
| - | display time: $:: | ||
| - | |||
| - | "] | ||
| - | } | ||
| - | Wish $this is outlined skyblue | ||
| - | </ | ||
| === Points up === | === Points up === | ||
| Line 38: | Line 20: | ||
| </ | </ | ||
| - | === Frame image === | ||
| - | < | ||
| - | When the camera frame is /im/ { | ||
| - | Wish the web server handles route "/ | ||
| - | set filename "/ | ||
| - | image saveAsJpeg $im $filename | ||
| - | set fsize [file size $filename] | ||
| - | set fd [open $filename r] | ||
| - | fconfigure $fd -encoding binary -translation binary | ||
| - | set body [read $fd $fsize] | ||
| - | close $fd | ||
| - | dict create statusAndHeaders " | ||
| - | }} $im] | ||
| - | } | ||
| - | </ | ||
guides/example-programs.1743475070.txt.gz · Last modified: by admin
