... | ... | @@ -76,7 +76,7 @@ Then you can go to the workspace and set up the environment using `kcw`. |
|
|
```
|
|
|
function btr() {
|
|
|
export ROS_MASTER_URI=http://192.168.1.42:11311
|
|
|
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
|
|
|
export ROS_IP=`ip a| sed -En 's/.*inet (addr:)?(192\.168\.1\.[0-9]+).*/\2/p'` # This forces ROS to identify this computer using its IP instead of the hostname which the robot cannot resolve
|
|
|
}
|
|
|
```
|
|
|
Append this into your `~/.bashrc`.
|
... | ... | |