.. PiVR documentation master file, created by
sphinx-quickstart on Tue Oct 16 19:17:07 2018.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
#########################################
PiVR: virtual reality for small animals
#########################################
The Raspberry **Pi** based **V**\irtual **R**\eality system (PiVR) is
a virtual reality system for small animals. It has been developed by
David Tadres and Matthieu Louis (`Louis Lab
`__).
The tool has been published in PLOS Biology: `PiVR: An affordable and
versatile closed-loop platform to study unrestrained sensorimotor
behavior `__.
In addition, Scientific American featured PiVR in a delightful
`article `__
accompanied by a fantastic `video `__.
You can find a 1 hour presentation of PiVR hosted by
`World Wide Open Source `__
on `youtube `__.
PiVR is used by a growing number of :ref:`labs `
for their research. In addition, the affordability and ease of assembly
makes PiVR a great tool for :ref:`teaching `.
- The code is open source (`BSD license
`__)
- The source code for all the PiVR software can be found on `Gitlab
`__
- You can also find a `Bug Tracker `__ on Gitlab
.. figure:: Figures/other/PiVRLogo.jpg
:width: 75%
:alt: larva_banana.jpg
Leonard the larva - always chasing that virtual banana smell.
What can PiVR do?
=================
PiVR has been used to create virtual odor realities for fruit fly larvae.
--------------------------------------------------------------------------
.. figure:: Figures/example_traces/larval_trajectory.png
:width: 75%
:alt: larval_trajectory.png
Trajectory of a *Drosophila* larva in a virtual odor reality. The
larva expresses the optogenetic tool Chrimson in the *Or42a*
expressing olfactory sensory neuron.
.. raw:: html
|
PiVR has also been used to create virtual taste realities for adult fruit flies.
---------------------------------------------------------------------------------
.. figure:: Figures/example_traces/fly_trajectory.png
:width: 75%
:alt: fly_trajectory.png\
Trajectory of an adult *Drosophila* fly in a virtual taste reality.
The fly expresses the optogenetic tool Chrimson in the *Gr66a*
expressing sensory neurons.
.. raw:: html
|
PiVR was also used to create a virtual light bulb for a number of animals, including larval zebrafish.
-------------------------------------------------------------------------------------------------------
.. figure:: Figures/example_traces/fish_trajectory.png
:width: 75%
:alt: fish_trajectory.png
Trajectory of a zebrafish (D. rerio) larva exposed to a virtual
white light source.
.. raw:: html
|
PiVR is also able to create dynamic virtual gradients
-----------------------------------------------------
While it is often convenient to present static virtual gradients (see
examples above) animals usually have to navigate an environment that
is changing over time. PiVR is able to present animals with dynamic
virtual realities.
We presented *Drosophila* larva expressing the optogenetic tool
Chrimson in the Or42a olfactory sensory neuron with a dynamic odor
plume based on the measurement of a real odor plume (`Álvarez-Salvado et.
al., `__). PiVR thus
enables researchers to study how *Drosophila* larvae are orienting
themselves in a more naturalistic environments.
.. raw:: html
|
How does it work?
=================
PiVR combines high speed/low latency tracking with temporally defined
light stimuli to create arbitrary virtual realities.
.. raw:: html
PiVR is capable of tracking Drosophila larvae, adult
flies, zebrafish and many other small animals.
The position of the animal in the real world is then mapped onto the
user provided virtual reality and the appropriate stimulus is presented.
|
Sounds great. I want one! How?
==============================
PiVR has been designed to make building one as easy as possible so
that you do not spend a lot of time building the setup and spend more
time running experiments.
Please follow the :ref:`PIVR Hardware Manual` to see step-by-step
instructions on how to build your own PiVR setup.
Don't worry, it's not hard and it won't take too long. Please see the
timelapse video below for an example of one setup being built: from
3D printing to running experiments!
.. raw:: html
|
I've got a setup. How do I use it?
===================================
If you are a first time user, check out the :ref:`Step-By-Step
` Guide which will walk you through each of
the four recording modes:
#. :ref:`Tracking single animal `
#. :ref:`Virtual Reality experiments `
#. :ref:`Image Sequence Recording `
#. :ref:`Video Recording `
You have just run an experiment. What to make of the output data?
See :ref:`here