User Tools

Site Tools


guides:example-programs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
guides:example-programs [2023/11/02 15:04] osnrguides:example-programs [2026/03/22 22:56] (current) – [Frame image] osnr
Line 9: Line 9:
 </code> </code>
  
-=== Metrics ===+{{ notes:slice.gif?600 }}
  
-<code> 
-When $::thisNode has step count /c/ { 
-  Wish $this is labelled [string trim " 
- 
-Metrics 
----- 
-step count: $c 
-step time: $::stepTime 
-camera time: $::cameraTime 
-AprilTag time: $::aprilTime 
-display time: $::displayTime 
- 
-"] 
-} 
-Wish $this is outlined skyblue 
-</code> 
  
 === Points up === === Points up ===
Line 36: Line 20:
 </code> </code>
  
-=== Frame image === 
  
-<code> 
-When the camera frame is /im/ { 
-  Wish the web server handles route "/frame-image/$" with handler [list apply {{im} { 
-    set filename "/tmp/web-image-frame.jpg" 
-    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 "HTTP/1.1 200 OK\nConnection: close\nContent-Type: image/jpeg\nContent-Length: $fsize\n\n" body $body 
-  }} $im] 
-} 
-</code> 
guides/example-programs.1698937479.txt.gz · Last modified: by osnr

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki