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 [2023/11/02 15:04] – osnr | guides:example-programs [2026/03/22 22:56] (current) – [Frame image] osnr | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| </ | </ | ||
| - | === Metrics === | + | {{ notes: |
| - | < | ||
| - | 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 36: | 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.1698937479.txt.gz · Last modified: by osnr
