changeset 427:c670d23003de

rename.
author Robert McIntyre <rlm@mit.edu>
date Fri, 21 Mar 2014 15:36:37 -0400
parents 435b5e22d72a
children d53a31969a51
files thesis/Makefile thesis/rlm-cortex-meng.tex thesis/thesis.tex thesis/weave-thesis.sh
diffstat 4 files changed, 108 insertions(+), 83 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/thesis/Makefile	Fri Mar 21 15:28:45 2014 -0400
     1.2 +++ b/thesis/Makefile	Fri Mar 21 15:36:37 2014 -0400
     1.3 @@ -1,11 +1,12 @@
     1.4  #INVOKE_LATEX = pdflatex -shell-escape thesis.tex;
     1.5 -INVOKE_LATEX = texi2dvi --shell-escape --pdf -V --batch thesis.tex;
     1.6 +THESIS_NAME  = rlm-cortex-meng
     1.7 +INVOKE_LATEX = texi2dvi --shell-escape --pdf -V --batch $(THESIS_NAME).tex;
     1.8  
     1.9  all:
    1.10 -	./weave-thesis.sh
    1.11 +	./weave-thesis.sh $(THESIS_NAME)
    1.12  	rsync -avz --delete /home/r/proj/cortex/thesis "r@aurellem.org:~"
    1.13  	ssh r@aurellem.org cd "~/thesis; $(INVOKE_LATEX) $(INVOKE_LATEX)"
    1.14 -	scp "r@aurellem.org:/home/r/thesis/thesis.pdf" .
    1.15 +	scp "r@aurellem.org:/home/r/thesis/$(THESIS_NAME).pdf" .
    1.16  
    1.17  
    1.18  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/thesis/rlm-cortex-meng.tex	Fri Mar 21 15:36:37 2014 -0400
     2.3 @@ -0,0 +1,102 @@
     2.4 +
     2.5 +\section{Artificial Imagination}
     2.6 +\label{sec-1}
     2.7 +
     2.8 +Imagine watching a video of someone skateboarding. When you watch
     2.9 +the video, you can imagine yourself skateboarding, and your
    2.10 +knowledge of the human body and its dynamics guides your
    2.11 +interpretation of the scene. For example, even if the skateboarder
    2.12 +is partially occluded, you can infer the positions of his arms and
    2.13 +body from your own knowledge of how your body would be positioned if
    2.14 +you were skateboarding. If the skateboarder suffers an accident, you
    2.15 +wince in sympathy, imagining the pain your own body would experience
    2.16 +if it were in the same situation. This empathy with other people
    2.17 +guides our understanding of whatever they are doing because it is a
    2.18 +powerful constraint on what is probable and possible. In order to
    2.19 +make use of this powerful empathy constraint, I need a system that
    2.20 +can generate and make sense of sensory data from the many different
    2.21 +senses that humans possess. The two key proprieties of such a system
    2.22 +are \emph{embodiment} and \emph{imagination}.
    2.23 +
    2.24 +\subsection{What is imagination?}
    2.25 +\label{sec-1-1}
    2.26 +
    2.27 +One kind of imagination is \emph{sympathetic} imagination: you imagine
    2.28 +yourself in the position of something/someone you are
    2.29 +observing. This type of imagination comes into play when you follow
    2.30 +along visually when watching someone perform actions, or when you
    2.31 +sympathetically grimace when someone hurts themselves. This type of
    2.32 +imagination uses the constraints you have learned about your own
    2.33 +body to highly constrain the possibilities in whatever you are
    2.34 +seeing. It uses all your senses to including your senses of touch,
    2.35 +proprioception, etc. Humans are flexible when it comes to "putting
    2.36 +themselves in another's shoes," and can sympathetically understand
    2.37 +not only other humans, but entities ranging from animals to cartoon
    2.38 +characters to \href{http://www.youtube.com/watch?v=0jz4HcwTQmU}{single dots} on a screen!
    2.39 +
    2.40 +
    2.41 +\begin{figure}[htb]
    2.42 +\centering
    2.43 +\includegraphics[width=5cm]{./images/cat-drinking.jpg}
    2.44 +\caption{A cat drinking some water. Identifying this action is beyond the state of the art for computers.}
    2.45 +\end{figure}
    2.46 +
    2.47 +
    2.48 +This is a basic test for the vision system.  It only tests the
    2.49 +vision-pipeline and does not deal with loading eyes from a blender
    2.50 +file. The code creates two videos of the same rotating cube from
    2.51 +different angles. 
    2.52 +
    2.53 +
    2.54 +\begin{clojurecode}
    2.55 +(in-ns 'cortex.test.vision)
    2.56 +
    2.57 +(defn test-pipeline
    2.58 +  "Testing vision:
    2.59 +   Tests the vision system by creating two views of the same rotating
    2.60 +   object from different angles and displaying both of those views in
    2.61 +   JFrames.
    2.62 +
    2.63 +   You should see a rotating cube, and two windows,
    2.64 +   each displaying a different view of the cube."
    2.65 +  ([] (test-pipeline false))
    2.66 +  ([record?]
    2.67 +     (let [candy
    2.68 +           (box 1 1 1 :physical? false :color ColorRGBA/Blue)]
    2.69 +       (world
    2.70 +        (doto (Node.)
    2.71 +          (.attachChild candy))
    2.72 +        {}
    2.73 +        (fn [world]
    2.74 +          (let [cam (.clone (.getCamera world))
    2.75 +                width (.getWidth cam)
    2.76 +                height (.getHeight cam)]
    2.77 +            (add-camera! world cam 
    2.78 +                         (comp
    2.79 +                          (view-image
    2.80 +                           (if record?
    2.81 +                             (File. "/home/r/proj/cortex/render/vision/1")))
    2.82 +                          BufferedImage!))
    2.83 +            (add-camera! world
    2.84 +                         (doto (.clone cam)
    2.85 +                           (.setLocation (Vector3f. -10 0 0))
    2.86 +                           (.lookAt Vector3f/ZERO Vector3f/UNIT_Y))
    2.87 +                         (comp
    2.88 +                          (view-image
    2.89 +                           (if record?
    2.90 +                             (File. "/home/r/proj/cortex/render/vision/2")))
    2.91 +                          BufferedImage!))
    2.92 +            (let [timer (IsoTimer. 60)]
    2.93 +              (.setTimer world timer)
    2.94 +              (display-dilated-time world timer))
    2.95 +            ;; This is here to restore the main view
    2.96 +            ;; after the other views have completed processing
    2.97 +            (add-camera! world (.getCamera world) no-op)))
    2.98 +        (fn [world tpf]
    2.99 +          (.rotate candy (* tpf 0.2) 0 0))))))
   2.100 +\end{clojurecode}
   2.101 +
   2.102 +
   2.103 +\begin{itemize}
   2.104 +\item This is test1 \cite{Tappert77}.
   2.105 +\end{itemize}
     3.1 --- a/thesis/thesis.tex	Fri Mar 21 15:28:45 2014 -0400
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,78 +0,0 @@
     3.4 -% -*- Mode:TeX -*-
     3.5 -
     3.6 -%% IMPORTANT: The official thesis specifications are available at:
     3.7 -%%            http://libraries.mit.edu/archives/thesis-specs/
     3.8 -%%
     3.9 -%%            Please verify your thesis' formatting and copyright
    3.10 -%%            assignment before submission.  If you notice any
    3.11 -%%            discrepancies between these templates and the 
    3.12 -%%            MIT Libraries' specs, please let us know
    3.13 -%%            by e-mailing thesis@mit.edu
    3.14 -
    3.15 -%% The documentclass options along with the pagestyle can be used to generate
    3.16 -%% a technical report, a draft copy, or a regular thesis.  You may need to
    3.17 -%% re-specify the pagestyle after you \include  cover.tex.  For more
    3.18 -%% information, see the first few lines of mitthesis.cls. 
    3.19 -
    3.20 -%\documentclass[12pt,vi,twoside]{mitthesis}
    3.21 -%%
    3.22 -%%  If you want your thesis copyright to you instead of MIT, use the
    3.23 -%%  ``vi'' option, as above.
    3.24 -%%
    3.25 -%\documentclass[12pt,twoside,leftblank]{mitthesis}
    3.26 -%%
    3.27 -%% If you want blank pages before new chapters to be labelled ``This
    3.28 -%% Page Intentionally Left Blank'', use the ``leftblank'' option, as
    3.29 -%% above. 
    3.30 -
    3.31 -\documentclass[12pt,twoside]{mitthesis}
    3.32 -\usepackage[utf8]{inputenc}
    3.33 -\usepackage[T1]{fontenc}
    3.34 -\usepackage{fixltx2e}
    3.35 -\usepackage{graphicx}
    3.36 -\usepackage{longtable}
    3.37 -\usepackage{float}
    3.38 -\usepackage{wrapfig}
    3.39 -\usepackage{rotating}
    3.40 -\usepackage[normalem]{ulem}
    3.41 -\usepackage{amsmath}
    3.42 -\usepackage{textcomp}
    3.43 -\usepackage{marvosym}
    3.44 -\usepackage{wasysym}
    3.45 -\usepackage{amssymb}
    3.46 -\usepackage{hyperref}
    3.47 -
    3.48 -%%%%% better source code display
    3.49 -\usepackage{minted}
    3.50 -
    3.51 -% \usemintedstyle{friendly}
    3.52 -% \usemintedstyle{perldoc}
    3.53 -%\definecolor{bg}{rgb}{0.95,0.95,0.95}
    3.54 -\definecolor{bg}{rgb}{0.95,0.95,0.95}
    3.55 -\usemintedstyle{default}
    3.56 -
    3.57 -
    3.58 -%\newminted{clojure}{fontsize=\scriptsize,bgcolor=bg}
    3.59 -\newminted{clojure}{fontsize=\scriptsize}
    3.60 -
    3.61 -%\usepackage{lgrind}
    3.62 -\pagestyle{plain}
    3.63 -
    3.64 -\begin{document}
    3.65 -
    3.66 -\include{cover}
    3.67 -% Some departments (e.g. 5) require an additional signature page.  See
    3.68 -% signature.tex for more information and uncomment the following line if
    3.69 -% applicable.
    3.70 -% \include{signature}
    3.71 -\pagestyle{plain}
    3.72 -\include{contents}
    3.73 -\include{cortex}
    3.74 -%\include{chap2}
    3.75 -\appendix
    3.76 -\begin{singlespace}
    3.77 -\bibliography{cortex}
    3.78 -\bibliographystyle{plain}
    3.79 -\end{singlespace}
    3.80 -\end{document}
    3.81 -
     4.1 --- a/thesis/weave-thesis.sh	Fri Mar 21 15:28:45 2014 -0400
     4.2 +++ b/thesis/weave-thesis.sh	Fri Mar 21 15:36:37 2014 -0400
     4.3 @@ -7,9 +7,9 @@
     4.4  --batch \
     4.5  --eval "
     4.6  (progn
     4.7 -  (find-file \"/home/r/proj/cortex/thesis/cortex.org\")
     4.8 +  (find-file \"$1\")
     4.9    (org-latex-export-to-latex nil nil nil t nil))" \
    4.10  \
    4.11  2>&1 
    4.12  
    4.13 -rm cortex.tex~
    4.14 \ No newline at end of file
    4.15 +rm $1~
    4.16 \ No newline at end of file