AR_Sandbox/install のバックアップ(No.6)



最新バージョンの64-bit Linux Mint with MATE desktop をまっさらなPCにインストール  

Kinect 3D video packageをインストールするために以下をターミナルで入力します.  

cd ~/src
wget http://idav.ucdavis.edu/~okreylos/ResDev/Kinect/Kinect-3.2.tar.gz
tar xfz Kinect-3.2.tar.gz
cd Kinect-3.2
make
sudo make install
sudo make installudevrules
ls /usr/local/bin

AR Sandboxのソフト本体のインストールのため,以下をコンソールに入力します.  

cd ~/src
wget http://idav.ucdavis.edu/~okreylos/ResDev/SARndbox/SARndbox-2.3.tar.gz
tar xfz SARndbox-2.3.tar.gz
cd SARndbox-2.3
make
ls ./bin

第一世代のKinectデバイスを接続して,そのファームウェアから機器固有の調整パラメータディレクトリダウンロドします.  

Align your camera so that its field of view covers the interior of your sandbox.  

Use RawKinectViewer to guide you during alignment. To start it, run in a terminal window:

cd ~/src/SARndbox-2.3
RawKinectViewer -compress 0

Calculate your sandbox’s base plane, by following the instructions in the AR Sandbox Calibration – Step 4 video, or this new video that shows all required calibration steps in one. You can use the already-running instance of RawKinectViewer.  

You need to enter the base plane equation (and the 3D sand surface extents in the next step) into the BoxLayout.txt file in etc/SARndbox-<version> inside the SARndbox source directory.  

The ampersand at the end of the second command will keep the terminal window usable while the text editor is running. Now enter the base plane equation as described in the video. To copy text from a terminal window, highlight the desired text with the mouse, and then either right-click into the terminal window and select “Copy” from the pop-up menu that appears, or press Shift-Ctrl-c. To paste into the text editor, use the “Edit” menu, or press Ctrl-v.

Pro tip:  

The quickest way to copy&paste text from any window into any other window is:

  1. : Highlight text in source window with the mouse.
  2. : Move mouse to destination window and to the location where you want to paste the text, and click the middle mouse button.

Measure the 3D extents of the sand surface.  

In the newly-released Kinect-3.2 package, this can be done inside RawKinectViewer as well by following the instructions in this video, starting at 4:10. Make sure to measure the box corners in the order lower-left, lower-right, upper-left, upper-right. After you have copied the box corner positions into the text editor as described in the video, save the file (via the “File” menu or by pressing Ctrl-s), and quit from the text editor (via the “File” menu or by pressing Ctrl-q).

Align your projector such that its image fills the interior of your sandbox. You can use the calibration grid drawn by Vrui’s XBackground utility as a guide. In a terminal, run: XBackground After the window showing the calibration grid appears, press the “f” key to toggle it into full-screen mode. Ensure that the window really covers the entire screen, i.e., that there are no title bar, desktop panel, or other decorations left.

Press Esc to close XBackground’s window when you’re done.  

Calibrate the Kinect camera and the projector with respect to each other by running the CalibrateProjector utility:

cd ~/src/SARndbox-2.3
./bin/CalibrateProjector -s <width> <height>

where <width> <height> are the width and height of your projector’s image in pixels. For example, for an XGA projector like the recommended BenQ, the command would be:

./bin/CalibrateProjector -s 1024 768

Very important: switch CalibrateProjector’s window to full-screen mode by pressing F11 before proceeding. Then follow the instructions in this video, starting at 10:10.

Finally, run the main AR Sandbox application:  

cd ~/src/SARndbox-2.3
./bin/SARndbox -uhm -fpv

Switch SARndbox’s window to full-screen mode by pressing F11, or the calibration created in the previous step will not line up.

Read the “AR Sandbox post-installation setup” post for some additional automation and fine-tuning suggestions.  



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS