Home | Download | Documentation

Drosophila melanogaster larval locomotion

User manual for MaggotTracker software components.

WormTracker.

I. Overview
WormTracker is not a sofware component that we developed; it was developed by the Schafer lab and available at: Worm Tracker 2.0
The use of WormTracker in MaggotTracker is only for the purpose of data acquisition. That is, obtaining high-quality single-animal videos.

II. Hardware Setup
The setup that we utilized is as follows:
1. Microscope: Olympus model SZ61 trinocular stereozoom microscope.
2. Motorized stage: H105 ProScan from (PRIOR Scientific).
3. Digital camera: Unibrain Fire-i 501b (IEEE 1394 connection).
4. Light source: fiber optic transmitted light.
5. Stage control module: ProScan II Controller (PRIOR Scientific)
6. Computer: The minimum specifications we utilized were:

Additional notes on hardware setup:
- The camera Fire-i 501c also worked well.
- The stage controller ProScan III also worked well.
- The stage controllers we utilized were connected via serial cable (we did not test USB connection to the contollers).
- WormTracker is designed to work with other stage controllers, such as Zaber and Ludl. We only utilized Prior stage controllers.

III. Installation
Download and install WormTracker 2.0 as indicated from their website.
Make sure that WormTracker works. This can be done with a simple USB webcam. The first objective is to make sure that video can be captured via WormTracker user-interface.
For the purpose of installing and verifying that WormTracker works, the USB webcam does not even have to be connected or properly mounted on the microscope.
The benefit of doing this is that any troubleshooting can be separated from, say, connecting to a specialized camera versus WormTracker being correctly setup.

Once that WormTracker can recognize a camera, and it can record videos. The next step is to make sure that WormTracker can communicate with the stage controller. Follow their instructions on doing so.
After WormTracker can capture video and control the motorized stage, set up the camera that will be used for taking videos (as needed).
There are 2 cases:
Case 1: your hardware setup makes use of USB cameras; then just follow WormTracker's instructions on their website.
Case 2: your hardware setup makes use of 1394 cameras; then if WormTracker detects them automatically, then great! You are ready to start taking videos. Otherwise, you may follow our instructions to be able to use cameras connected via 1394 in WormTracker (Section camera 1394 installation for WormTracker below).

Perform calibration of the stage by following the instructions of WormTracker. The result is a set of x,y constants for steps per pixels. If the same microscope magnification is going to be used over and over, then it is recommended that a configuration file is saved on disk. It is also recommended that such configuration file is backed up elsewhere.

IV. Copyright and Software License
We claim no copyright on WormTracker software because it was not developed by us.

V. Camera 1394 installation for WormTracker
We utilize video cameras that connect to the computer via 1394 interface, which is not supported by WormTracker. We implemented software programs that allow WormTracker to find a camera connected via the 1394 interface.
These are the instructions to installing a 1394 camera and making it work with WormTracker:
Note: we utilized Unibrain Fire-i cameras 501b and 501c.

  1. Make sure that the camera works, installing the manufacturer driver if needed.
  2. Remove any driver for the 1394 camera before installing the CMU driver (which is a free driver for cameras that comply with the 1394 Digital Camera Specification).
  3. Install CMU’s 1394 driver version 6.3 (http://www.cs.cmu.edu/~iwan/1394/install.html). Recent versions up to 6.4.6 did not work in our setup.
    Follow their installation instructions, which will mention things such as using the properties dialog of your camera in the windows system configuration device manager, then choose/update driver by selecting file 1394Camera.inf, where the end result is that the file 1394Camera.dll will be placed in the Windows' system folder.
    The included 1394CameraDemo application should work and display live video of the camera. If it does not work, then troubleshoot as needed.
  4. In order to communicate to the CMU driver via Java programs, we use jLibDC1394 (Java API for FireWire: IEEE-1394 aka i.Link).
    Get the jlibdc1394-1.0PR1.zip version (because it includes source code). Other versions may work but they do not have documentation such as Java Interfaces. The DLL file (net_sf_jlibdc1394_impl_cmu_JDC1394CamCMU.dll) included should be copied to folder c:\windows\system32\
  5. Java JMF should already being installed when setting up WormTracker. We utilized version JMF version 2.1.1e in our setup.
    The JMF Registry is one application of JMF that lists the current JMF devices (such as cameras). If a camera is not listed there, then it cannot be accessed from Java programs (such as WormTracker).
  6. Install the camera into the JMF Registry: This is done by running the program InstallJ1394Cam available at: http://jlibdc1394.cvs.sourceforge.net/viewvc/jlibdc1394/jlibdc4jmf/ .
    In our setup, we have made the following notes on this respect:
  7. In our setup, WormTracker would not find the 1394 camera on its own. Modified code that enables it is in 2010-02-27__with-all-controls.zip (ZIP file).
    Unzip it, and create a windows "shortcut" to the file "WormTracker.jar" (located inside folder "with-all-controls/install/bin/" ). Once the shortcut is created, its icon can be changed by using "change icon" in the Properties of the shortcut, and selecting the icon of file WormTracker.ico