diff org/vision.org @ 337:fdc98824d69b

working on problem with vision.
author Robert McIntyre <rlm@mit.edu>
date Fri, 20 Jul 2012 13:14:22 -0500
parents 5dcd44576cbc
children d37ccb6c888f
line wrap: on
line diff
     1.1 --- a/org/vision.org	Fri Jul 20 13:04:25 2012 -0500
     1.2 +++ b/org/vision.org	Fri Jul 20 13:14:22 2012 -0500
     1.3 @@ -562,7 +562,7 @@
     1.4    ([record?] 
     1.5       (let [the-worm (doto (worm)(body!))
     1.6             vision (vision! the-worm)
     1.7 -           vision-display (view-vision)
     1.8 +           ;;vision-display (view-vision)
     1.9             fix-display (gen-fix-display)
    1.10             me (sphere 0.5 :color ColorRGBA/Blue :physical? false)
    1.11             x-axis
    1.12 @@ -584,9 +584,9 @@
    1.13            "key-g" (colored-cannon-ball ColorRGBA/Green))
    1.14          (fn [world]
    1.15            (light-up-everything world)
    1.16 -          (speed-up world)
    1.17 +          ;;(speed-up world)
    1.18            (.setTimer world timer)
    1.19 -          (display-dilated-time world timer)
    1.20 +          ;;(display-dilated-time world timer)
    1.21            ;; add a view from the worm's perspective
    1.22            (if record?
    1.23              (Capture/captureVideo
    1.24 @@ -609,16 +609,16 @@
    1.25          
    1.26          (fn [world _ ]
    1.27            (.setLocalTranslation me (.getLocation (.getCamera world)))
    1.28 -          (vision-display
    1.29 -           (map #(% world) vision)
    1.30 -           (if record?
    1.31 -             (File. "/home/r/proj/cortex/render/worm-vision")))
    1.32 +          ;; (vision-display
    1.33 +          ;;  (map #(% world) vision)
    1.34 +          ;;  (if record?
    1.35 +          ;;    (File. "/home/r/proj/cortex/render/worm-vision")))
    1.36            (fix-display world)
    1.37            )))))
    1.38  #+end_src
    1.39  
    1.40  #+RESULTS: test-2
    1.41 -|   | #'cortex.test.vision/test-worm-vision |
    1.42 +: #'cortex.test.vision/test-worm-vision
    1.43  
    1.44  
    1.45  The world consists of the worm and a flat gray floor. I can shoot red,