-
Notifications
You must be signed in to change notification settings - Fork 38
DARwIn OP Setup
The following pages link to steps required prior to using the Darwin :-
Initial Configuration
- [[Software Installation | DARwIn OP Setup]]
Motor Setup
- [[Baud rate and Motor ID setup using Windows | Baud Rate Windows]]
- [[Firmware Update using Linux| Firmware Update]]
Setting the Color Table
- [[Calibrating the color table | Colortable (LUT)]]
Testing
- [[Code for testing Vision, running VCM and DCM | Running DARwIn OP]]
Network
- [[Network Setting | Network Setting]]
The DARwIn-OP Robot comes with Ubuntu 9.10 preinstalled. However, we recommend a newer version of Ubuntu for performance and feature extension purposes. Follow Installing Ubuntu 10.10 on DARwIn OP for our recommendation.
-
Install packages through aptitude.
sudo apt-get install wget build-essential subversion git-core libreadline6-dev
-
This will be a problem with Ubuntu 9.10. To correct this problem, edit the sources.list file
https://help.ubuntu.com/community/EOLUpgrades/Karmic
and also add:
deb http://fit-pc2.com/download/ubuntu/dists/karmic binary/
deb-src http://fit-pc2.com/download/ubuntu/dists/karmic source/
Installing Lua from source
-
Download lua. http://www.lua.org/versions.html#5.2
-
Install Lua 5.1
wget http://www.lua.org/ftp/lua-5.1.4.tar.gz tar xvvf lua-5.1.4.tar.gz cd lua-5.1.4 make linux sudo make install
Downloading and Installing the Boost headers
-
Download the latest version of boost from www.boost.org.
wget http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.tar.bz2/
-
Extract boost on the darwin.
tar -xvf boost_1_49_0.tar.bz2
-
Move the boost folder to the /usr/local/ directory
sudo mv boost_1_49_0 /usr/local/
-
Change to the /usr/local/include directory and make a symbolic link to the boost files.
cd /usr/local/include
sudo ln -s /usr/local/boost_1_49_0/boost boost
-
After this, feel free to delete the tarball. git clone git://linuxtv.org/media_build.git
rm boost_1_48_0.tar.gz
- Download latest driver: http://linuxtv.org/downloads/drivers/
- After extracting the tar.gz file, we need to build (exec the following commands):
git clone git://linuxtv.org/media_build.git
cd media_build
<install patchutils, running the above command would prop a dependency error with the 'patchutils' installation fix command>
./build
sudo make install
-- For reference --> http://linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers
NOTE: This works for the 1.1 release, but the directions may change for the 1.2 release from the GitHub codebase.
-
Download the latest version of the DARwIn open-source release at
`https://fling.seas.upenn.edu/~robocup/wiki/`
-
Copy the tarball to the robot.
- scp upenn_darwinop_1.0.tar.gz [email protected]:~/Desktop
-
Navigate to the directory in which the code base is stored and run the following: ○ tar -xvf upenn_darwinop_1.0.tar.gz
-
Enter the ‘Lib’ directory of the open-source directory ○ cd upenn_darwinop_1.0/Lib
-
Run the following:
○ make clean
○ make setup_op
- Run the following:
○ sudo rm /lib/udev/rules.d/95-upower-wup.rules (Or comment out all lines in it - that’s what we did)
- Reboot the robot.
Running the Open-Source Code 1. Navigate to the Lib directory of the open source code.
○ cd ..../upenn_darwinop_1.0/Lib 2. Run the following make command:
○ make setup_op
- Navigate to the Player/Lib directory
○ cd ..../upenn_darwinop_1.0/Player/Lib
-
Create a screen from which to run dcm. This will provide a means for the dcm to continue running even after you detach the screen (and even your computer!). ○ screen -S dcm
-
Execute the following command:
○ lua run_dcm.lua
- Detach the dcm screen.
○ ctrl-A ctrl-D in quick succession.
- Navigate to the Player directory
○ cd ..../upenn_darwinop_1.0/Player
-
Create a screen to control the robot. ○ screen -S player
-
Execute a lua script to control the robot. This can be any of test_vision.lua, player.lua, test_walk.lua, etc. In this way, you can also create your own lua scripts.
○ Ex: lua player.lua
-
If you are running player, detach the screen by repeating step 6. Otherwise, continue to step 11.
-
If you are running a test script, you can now control the robot via the terminal if your script is capable of doing so. If you are running our supplied player code, you can now exit the ssh session and detach the ethernet cable from the robot. To change states, press the middle button on the DARwIn’s back.