-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.bash
75 lines (56 loc) · 2.67 KB
/
setup.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export CATKIN_WORKSPACE=~/ropod-project-software/catkin_workspace
export ED_PLUGIN_PATH=$CATKIN_WORKSPACE/devel/lib
export ED_MODEL_PATH=$CATKIN_WORKSPACE/src/functionalities/ED/ed_object_models/models
#export PICO_IP=192.168.44.81
#export PICO_IP_WIRED=10.0.0.2
export ROPOD_IP=192.168.44.90
export ROPOD_TUE_2_IP=192.168.44.92
export ROPOD_IP_WIRED=169.254.104.2
export JETSON_IP=169.254.104.10
alias sshjetson="ssh nvidia@$JETSON_IP"
unset ROS_HOSTNAME
#export ROS_IP=`hostname -I | awk '{print $2}'`
source /opt/ros/kinetic/setup.bash
source $CATKIN_WORKSPACE/devel/setup.bash
alias buildit="cd $CATKIN_WORKSPACE; catkin_make -DUSE_SETCAP=ON"
alias clean_build="cd $CATKIN_WORKSPACE;
rm -rf build/ devel/;
cd $CATKIN_WORKSPACE/src/;
rm CMakelists.txt;
cd $CATKIN_WORKSPACE;
catkin_make -DUSE_SETCAP=ON;"
alias catkin_workspace="cd $CATKIN_WORKSPACE"
alias applications="cd $CATKIN_WORKSPACE/src/applications"
alias functionalities="cd $CATKIN_WORKSPACE/src/functionalities"
alias platform="cd $CATKIN_WORKSPACE/src/platform"
alias teleop='rosrun robot_common teleop.py'
#alias pstart='roslaunch pico_bringup start.launch'
alias rstart='roslaunch ropod_tue_1_bringup start.launch LOAD_ATTACHED:="false"'
alias rmstart='roslaunch ropod_tue_1_bringup start.launch LOAD_ATTACHED:="true" loadName:="mobidik"'
alias r2start='roslaunch ropod_tue_2_bringup start.launch LOAD_ATTACHED:="false"'
alias r2startflock='export ROS_MASTER_URI=http://192.168.44.90:11311;unset ROS_HOSTNAME;roslaunch ropod_tue_2_bringup flock.launch LOAD_ATTACHED:="false"'
alias git-status='functionalities; ./multi-git-status/mgitstatus ~/ropod-project-software/catkin_workspace/src/ 4; catkin_workspace'
function git_branches()
{
if [[ -z "$1" ]]; then
echo "Usage: $FUNCNAME <dir>" >&2
return 1
fi
if [[ ! -d "$1" ]]; then
echo "Invalid dir specified: '${1}'"
return 1
fi
# Subshell so we don't end up in a different dir than where we started.
(
cd "$1"
for sub in *; do
[[ -d "${sub}/.git" ]] || continue
echo "$sub [$(cd "$sub"; git branch | grep '^\*' | cut -d' ' -f2)]"
done
)
}
alias git-check-branches='applications; git_branches .; functionalities; git_branches .; git_branches ./ED; git_branches ./ropod_comm; git_branches ./ropod_nav/; git_branches ./ros_experimental_nav/; platform; git_branches .; catkin_workspace; git_branches .'
alias update-dependencies='rosdep update;rosdep install --from-path . -i -y;'
#export ROS_IP=`hostname -I | awk '{print $2}'`