... | ... | @@ -79,7 +79,7 @@ Then you can go to the workspace and set up the environment using `source kcw` o |
|
|
### 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
|
|
|
export ROS_IP=`ip a| sed -En 's/.*inet (addr:)?(192.([0-9]*\.){2}[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`
|
... | ... | |