... | ... | @@ -10,7 +10,10 @@ If you want to get familiar with ROS you can do the [ROS Tutorial](http://wiki.r |
|
|
|
|
|
The ROS Workspace/Environment system is important to understand [Tutorial](http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment)
|
|
|
|
|
|
Also install: java jdk 8, maven, libusb-1.0-0-dev, python-vcstool
|
|
|
Also install: libusb-1.0-0-dev, python-vcstool
|
|
|
```
|
|
|
sudo apt-get install -y libusb-1.0-0-dev python-vcstool
|
|
|
```
|
|
|
|
|
|
## Setting up the projects
|
|
|
Create a new ROS workspace:
|
... | ... | @@ -24,28 +27,44 @@ Clone the projects you need into src. |
|
|
You can clone the default projects using
|
|
|
```
|
|
|
wget -O - https://gitlab.kamaro-engineering.de/KaMaRo-ROS/kamaro_ros/raw/master/kamaro.vcs | vcs import
|
|
|
# If the above does not work do the following
|
|
|
wget https://gitlab.kamaro-engineering.de/KaMaRo-ROS/kamaro_ros/raw/master/kamaro.vcs
|
|
|
cat kamaro.vcs | vcs import
|
|
|
```
|
|
|
(You need python-vcstool for that)
|
|
|
|
|
|
For some projects (kamaro_dv, kamaro_master_board) you have to init the submodules by hand for now.
|
|
|
I highly recommend disabling or removing two no longer used projects if they are still in the vcs.
|
|
|
```
|
|
|
touch kamaro_rviz_plugin/CATKIN_IGNORE
|
|
|
touch kamaro_dv/CATKIN_IGNORE
|
|
|
# OR even
|
|
|
rm -rf kamaro_rviz_plugin
|
|
|
rm -rf kamaro_dv
|
|
|
```
|
|
|
|
|
|
Run git init submodules for kamaro_master_board
|
|
|
```
|
|
|
cd kamaro_master_board
|
|
|
git submodule init
|
|
|
git submodule update
|
|
|
cd ..
|
|
|
```
|
|
|
|
|
|
Build the projects using:
|
|
|
```
|
|
|
cd kamaro/catkin_ws
|
|
|
cd ~/kamaro/catkin_ws
|
|
|
catkin_make
|
|
|
```
|
|
|
|
|
|
If that does not work, try running catkin_make again 3-4 times. If it still does not work also try deleting the catkin_ws/build and catkin_ws/devel folder and running catkin_make again multiple times.
|
|
|
|
|
|
When build fails do not stop it but wait for the dots. They are from gradle (which is used by rosjava for building the msgs maven packages showing download progress and when stopped gradle does not seem to try it again the next time.
|
|
|
|
|
|
To build the dv java code see [the readme](https://gitlab.kamaro-engineering.de/KaMaRo-ROS/kamaro_dv/blob/master/README.md)
|
|
|
If that does not work, check which step above you messed up. You failed to follow the tutorial. ;)
|
|
|
|
|
|
## Excluding a project from the build
|
|
|
|
|
|
You can do so by adding a file called CATKIN_IGNORE to the project folder.
|
|
|
```
|
|
|
touch src/project/CATKIN_IGNORE
|
|
|
touch src/<project>/CATKIN_IGNORE
|
|
|
```
|
|
|
|
|
|
## Useful scripts
|
... | ... | |