diff org/test-creature.org @ 155:95bf55614211

moved goals and deleted old test
author Robert McIntyre <rlm@mit.edu>
date Fri, 03 Feb 2012 06:04:30 -0700
parents bb235258f835
children e8df6e76c3e5
line wrap: on
line diff
     1.1 --- a/org/test-creature.org	Fri Feb 03 06:01:22 2012 -0700
     1.2 +++ b/org/test-creature.org	Fri Feb 03 06:04:30 2012 -0700
     1.3 @@ -8,104 +8,6 @@
     1.4  
     1.5  
     1.6  
     1.7 -* Brainstorming different sensors and effectors.
     1.8 -
     1.9 -Every sense that we have should have an effector that changes what
    1.10 -that sense (or others who have that sense) experiences.
    1.11 -
    1.12 -** Classic Senses
    1.13 -| Sense                        | Effector                        |
    1.14 -|------------------------------+---------------------------------|
    1.15 -| Vision                       | Variable Coloration             |
    1.16 -| Hearing                      | Speech                          |
    1.17 -| Proprioception               | Movement                        |
    1.18 -| Smell/Taste (Chemoreception) | Pheremones                      |
    1.19 -| Touch                        | Movement / Controllable Texture |
    1.20 -| Acceleration                 | Movement                        |
    1.21 -| Balance (sense gravity)      | Movement                        |
    1.22 -|                              |                                 |
    1.23 -
    1.24 -- New Senses/Effectors
    1.25 -- Levitation
    1.26 -- Telekenesis
    1.27 -- control of gravity within a certain radius
    1.28 -- speed up/slow time
    1.29 -- object creation/destruction
    1.30 -
    1.31 -- Symbol Sense
    1.32 -   Where objects in the world can be queried for description /
    1.33 -   symbols.
    1.34 -
    1.35 -- Symbol Marking
    1.36 -   The ability to mark objects in the world with your own descriptions
    1.37 -   and symbols.
    1.38 -
    1.39 -- Vision 
    1.40 -  Distinguish the polarization of light
    1.41 -  Color
    1.42 -  Movement
    1.43 -
    1.44 -* project ideas
    1.45 - - HACKER for writing muscle-control programs : Presented with
    1.46 -   low-level muscle control/ sense API, generate higher level programs
    1.47 -   for accomplishing various stated goals. Example goals might be
    1.48 -   "extend all your fingers" or "move your hand into the area with
    1.49 -   blue light" or "decrease the angle of this joint".  It would be
    1.50 -   like Sussman's HACKER, except it would operate with much more data
    1.51 -   in a more realistic world.  Start off with "calestanthics" to
    1.52 -   develop subrouitines over the motor control API.  This would be the
    1.53 -   "spinal chord" of a more intelligent creature.  The low level
    1.54 -   programming code might be a turning machine that could develop
    1.55 -   programs to iterate over a "tape" where each entry in the tape
    1.56 -   could control recruitment of the fibers in a muscle.
    1.57 - - Make a virtual computer in the virtual world which with which the
    1.58 -   creature interacts using its fingers to press keys on a virtual
    1.59 -   keyboard.  The creature can access the internet, watch videos, take
    1.60 -   over the world, anything it wants.
    1.61 - - Make virtual insturments like pianos, drumbs, etc that it learns to
    1.62 -   play.
    1.63 - - make a joint that figures out what type of joint it is (range of
    1.64 -   motion)
    1.65 -
    1.66 -   
    1.67 -
    1.68 -
    1.69 -
    1.70 -* goals
    1.71 -
    1.72 -** have to get done before winston
    1.73 - - [ ] write an explination for why greyscale bitmaps for senses is
    1.74 -       appropiate -- 1/2 day
    1.75 - - [X] muscle control -- day
    1.76 - - [X] proprioception sensor map in the style of the other senses -- day
    1.77 - - [ ] refactor integration code to distribute to each of the senses
    1.78 -       -- day
    1.79 - - [ ] create video showing all the senses for Winston -- 2 days
    1.80 - - [ ] send package to friends for critiques -- 2 days
    1.81 - - [ ] write summary of project for Winston            \
    1.82 - - [ ] project proposals for Winston                    \
    1.83 - - [ ] additional senses to be implemented for Winston   |  -- 2 days 
    1.84 - - [ ] send Winston package                             /
    1.85 -
    1.86 -** would be cool to get done before winston
    1.87 - - [X] enable greyscale bitmaps for touch -- 2 hours 
    1.88 - - [X] use sawfish to auto-tile sense windows -- 6 hours
    1.89 - - [X] sawfish keybinding to automatically delete all sense windows
    1.90 - - [ ] directly change the UV-pixels to show sensor activation -- 2
    1.91 -       days
    1.92 - - [ ] proof of concept C sense manipulation  -- 2 days 
    1.93 - - [ ] proof of concept GPU sense manipulation -- week
    1.94 - - [ ] fourier view of sound -- 2 or 3 days 
    1.95 - - [ ] dancing music listener -- 1 day, depends on fourier
    1.96 -
    1.97 -** don't have to get done before winston
    1.98 - - [ ] write tests for integration -- 3 days
    1.99 - - [ ] usertime/gametime clock HUD display -- day 
   1.100 - - [ ] find papers for each of the senses justifying my own
   1.101 -       representation -- week
   1.102 - - [ ] show sensor maps in HUD display? -- 4 days
   1.103 - - [ ] show sensor maps in AWT display? -- 2 days
   1.104 -
   1.105  
   1.106  * Intro 
   1.107  So far, I've made the following senses -- 
   1.108 @@ -934,64 +836,6 @@
   1.109     ;;      (println-repl (float (/ @timer 60))))))
   1.110     ))))
   1.111  
   1.112 -
   1.113 -
   1.114 -
   1.115 -
   1.116 -
   1.117 -
   1.118 -
   1.119 -
   1.120 -;;; experiments in collisions
   1.121 -
   1.122 -
   1.123 -
   1.124 -(defn collision-test []
   1.125 -  (let [b-radius 1
   1.126 -        b-position (Vector3f. 0 0 0)
   1.127 -        obj-b (box 1 1 1 :color ColorRGBA/Blue
   1.128 -                      :position b-position
   1.129 -                      :mass 0)
   1.130 -        node (nodify [obj-b])
   1.131 -        bounds-b
   1.132 -        (doto (Picture.)
   1.133 -          (.setHeight 50)
   1.134 -          (.setWidth 50)
   1.135 -          (.setImage (asset-manager)
   1.136 -                     "Models/creature1/hand.png"
   1.137 -                     false
   1.138 -          ))
   1.139 -        
   1.140 -        ;;(Ray. (Vector3f. 0 -5 0) (.normalize (Vector3f. 0 1 0)))
   1.141 -
   1.142 -        collisions
   1.143 -        (let [cr (CollisionResults.)]
   1.144 -          (.collideWith node bounds-b cr)
   1.145 -          (println (map #(.getContactPoint %) cr))
   1.146 -          cr)
   1.147 -
   1.148 -        ;;collision-points
   1.149 -        ;;(map #(sphere 0.1 :position (.getContactPoint %))
   1.150 -        ;;     collisions)
   1.151 -
   1.152 -        ;;node (nodify (conj collision-points obj-b))
   1.153 -        
   1.154 -        sim
   1.155 -        (world node
   1.156 -               {"key-space"
   1.157 -                (fn [_ value]
   1.158 -                  (if value
   1.159 -                    (let [cr (CollisionResults.)]
   1.160 -                      (.collideWith node bounds-b cr)
   1.161 -                      (println-repl (map #(.getContactPoint %) cr))
   1.162 -                      cr)))}
   1.163 -               no-op
   1.164 -               no-op)
   1.165 -
   1.166 -        ]
   1.167 -    sim
   1.168 -    
   1.169 -))
   1.170     
   1.171  
   1.172  ;; the camera will stay in its initial position/rotation with relation