Skip to content

Commit

Permalink
Merge with ws branch. New folder structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
shihyuan committed Dec 11, 2015
2 parents f3c6445 + fb9f0d2 commit e112366
Show file tree
Hide file tree
Showing 376 changed files with 55,332 additions and 628 deletions.
63 changes: 0 additions & 63 deletions DAGU_ROS_ws/src/CMakeLists.txt

This file was deleted.

35 changes: 0 additions & 35 deletions DAGU_ROS_ws/src/DAGU_DriverStack/DAGU_MotorController/package.xml

This file was deleted.

This file was deleted.

7 changes: 7 additions & 0 deletions RPi2-Ubuntu/install_new_ros_pkg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Install and build ros_catkin_ws
cd ~/ros_catkin_ws
rosinstall_generator ros_comm geometry_msgs --rosdistro indigo --deps --wet-only --exclude roslisp --tar > indigo-custom_ros.rosinstall

#
wstool merge -t src indigo-custom_ros.rosinstall
wstool update -t src
78 changes: 78 additions & 0 deletions RPi2-Ubuntu/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
* Update certificates
```
sudo apt-get install --reinstall ca-certificates
```

Setup .gitconfig
```
[http]
sslVerify = true
sslCAinfo = /etc/ssl/certs/ca-certificates.crt
[user]
email = [email protected]
name = derekmolloy
```
* Update apt-get archives
```
$ sudo apt-get update
```
* Install ssh
```
$ sudo apt-get install openssh-server
```
* Setup ssh (first time)
```
$ ssh-keygen
```
* Everytime?
```
$ ssh-agent /bin/bash
$ ssh-add ~/.ssh/id_rsa
```

* Install git
```
$ sudo apt-get install git
```

* Run the runmeonrpi2.sh

* Edit .bashrc file. Add this line
```
source /opt/ros/indigo/setup.bash
```

* Install packages
```
sudo apt-get install ros-indigo-tf-conversions
sudo apt-get install ros-indigo-cv-bridge
sudo apt-get install ros-indigo-compressed-image-transport
sudo apt-get install ros-indigo-camera-info-manager
```

* Enable the camera
Just modify the file /boot/firmware/config.txt is enough.
Just add a line "start_x=1" at the bottom of the file config.txt, save it, and reboot the system.

* Install picamera?
```
$ sudo apt-get install python-pip
$ sudo pip install picamera
```

* [Get picamera to work](http://raspberrypi.stackexchange.com/questions/37359/how-to-use-raspistill-on-ubuntu)
```
sudo base -c "echo 'start_x=1' >> /boot/config.txt"
sudo base -c "echo 'gpu_mem=128' >> /boot/config.txt"
```

```
git clone https://github.com/raspberrypi/userland.git
cd userland
./buildme
touch ~/.bash_aliases
echo 'PATH=$PATH:/opt/vc/bin\nexport' >> ~/.bash_aliases
echo 'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/vc/lib\nexport' >> ~/.bash_aliases
source ~/.bashrc
ldconfig
```
17 changes: 10 additions & 7 deletions RPi2-Ubuntu/runmeonrpi2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ apt-get install ros-indigo-ros-base
# Install third party packages

# NOIP2
cd /usr/local/src/
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar xf noip-duc-linux.tar.gz
cd noip-2.1.9-1/
make install
cd ../
rm noip-duc-linux.tar.gz
# cd /usr/local/src/
# wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
# tar xf noip-duc-linux.tar.gz
# cd noip-2.1.9-1/
# make install
# cd ../
# rm noip-duc-linux.tar.gz


# pigpio
wget abyz.co.uk/rpi/pigpio/pigpio.zip
Expand All @@ -48,6 +49,8 @@ make install
cd ../
rm pigpio.zip


# Couldn't find the file
# motor hat
wget https://github.com/adafruit/Adafruit-Motor-HAT-Python-Library/archive/master.zip
unzip master.zip
Expand Down
12 changes: 12 additions & 0 deletions RPi2-Ubuntu/setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* Get Jessie at https://www.raspberrypi.org/downloads/raspbian/
* Follow https://www.raspberrypi.org/documentation/installation/installing-images/linux.md
* Resize the partition to make use of the whole space of the sd card with GParted
* Follow https://www.raspberrypi.org/documentation/installation/installing-images/linux.md to setup the camera
* Follow http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi to get ROS on there
```
$ sudo apt-get install libconsole-bridge-dev
$ sudo apt-get install liblz4-dev
```
Need the add swap trick at http://raspberrypimaker.com/adding-swap-to-the-raspberrypi/

TODO: figure out the easiest way to install additional ROS packages.
35 changes: 0 additions & 35 deletions apriltags/CMakeLists.txt

This file was deleted.

53 changes: 0 additions & 53 deletions apriltags/Makefile

This file was deleted.

Loading

0 comments on commit e112366

Please sign in to comment.