ncsurobotics / seawolf

Seawolf Software Platform
http://www.ncsurobotics.com/
6 stars 5 forks source link

Seawolf Software Install

Notes on installing Seawolf stuff.

URC's software was written with Fedora, Debian, Mint, and Ubuntu in mind.

We assume some basic command line knowledge in order to complete this.

System Packages

Install these system packages with your package manager. The package names given are Debian, Ubuntu, or Mint packages. If you have Fedora, use the packages in parenthesis.

You can install OpenCV from source if you want. If you do, skip installing the opencv- packages. Instructions for installing OpenCV from source can be found here.

Software Repositories

Seawolf's software is split into a number of repositories, all hosted online on github: https://github.com/ncsurobotics

You will use the git version control system to get these repositories. To clone a repository, use the git clone command:

$ git clone <url>

Do this for each of the following URLs

In order push changes to our code back to ncsurobotics repositories, you will need to create a github account and have it added to our organization. You will also need to set up an SSH key on your computer by following these instructions.

Installation

libseawolf

Go into the libseawolf directory and run:

$ make
$ sudo make install
$ make pylib
$ sudo make pylib-install
$ sudo ldconfig

To test:

$ python
>>> import seawolf
swpycv

Go into the swpycv directory and run:

$ make
$ sudo make install
$ sudo ldconfig
svr

Go into the svr directory and run:

$ make
$ sudo make install
$ sudo ldconfig

To test svr:

$svrd &
$svrctl -o forward,v4l:dev=/dev/video0
$svrwatch -a

A window should pop up that shows your camera stream. Press ctrl c in the teriminal to stop the stream and "pkill svrd" to stop svr.

To test python import:

$ python
>>> import svr
srv

Go into the srv/srv-py directory and run:

$ sudo pip install -e .
If this doesn't work, run:
$ sudo python -m pip install -e .

To test srv python import:

$ python
>>> import srv
Seawolf

Go into the seawolf directory and run:

$ make

Troubleshooting

For Fedora (or other systems where stropts.h is missing), create a blank file stropts.h in /usr/include

If something like “libsvr.so.0” is missing, try creating the file “seawolf.conf” containing ”/usr/local/lib” in /etc/ld.so.conf.d