forked from uzh-rpg/rpg_svo_example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef796f4
commit 68364db
Showing
3 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# change the ip to your PC where you run the roscore | ||
export ROS_MASTER_URI=http://192.168.200.7:11311 | ||
|
||
ip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') | ||
|
||
export ROS_IP=$ip | ||
export ROS_HOSTNAME=$ip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# if you run everything locally | ||
# ip=127.0.0.1 | ||
# run on multiple platforms | ||
ip=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') | ||
|
||
core_ip=$ip | ||
|
||
export ROS_IP=$ip | ||
export ROS_HOSTNAME=$ip | ||
export ROS_MASTER_URI=http://${core_ip}:11311 | ||
|
||
export ROSLAUNCH_SSH_UNKNOWN=1 |