... | ... | @@ -6,6 +6,8 @@ Everything else can be quite a hazzle. |
|
|
|
|
|
If you want to get familiar with ROS you can do the [ROS Tutorial](http://wiki.ros.org/ROS/Tutorials)
|
|
|
|
|
|
The ROS Workspace/Environment system is important to understand [Tutorial](http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment)
|
|
|
|
|
|
## Setting up the projects
|
|
|
Create a new ROS workspace:
|
|
|
```
|
... | ... | @@ -28,3 +30,20 @@ You can do so by adding a file called CATKIN_IGNORE to the project folder. |
|
|
```
|
|
|
touch src/kamaro_dv/CATKIN_IGNORE
|
|
|
```
|
|
|
|
|
|
## Useful scripts
|
|
|
### Open catkin_ws and source setup.bash
|
|
|
```
|
|
|
cd ~/kamaro/catkin_ws
|
|
|
source devel/setup.bash
|
|
|
```
|
|
|
Put this into `/usr/local/bin/kcw` for example.
|
|
|
Then you can go to the workspace and set up the environment using `source kcw` or shorter `. kcw`
|
|
|
|
|
|
### Set the ROS master to connect to the robot
|
|
|
```
|
|
|
export ROS_MASTER_URI=http://192.168.1.42:11311
|
|
|
export ROS_IP=`ip a| sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'` # This forces ROS to identify this computer using its IP instead of the hostname which the robot cannot resolve
|
|
|
```
|
|
|
Put this into `/usr/local/bin/btr` for example.
|
|
|
Then you can connect to the robot using `source btr` or shorter `. btr` |
|
|
\ No newline at end of file |