forked from rwbot/urdf_robot_creation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rdsetup.sh
executable file
·26 lines (18 loc) · 1.38 KB
/
rdsetup.sh
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
#!/usr/bin/env bash
# source /home/user/catkin_ws/src/rdsetup.sh
alias xdf="rosrun xacro xacro /home/user/catkin_ws/src/my_gurdy_description/robots/gurdy.urdf.xacro > /home/user/catkin_ws/src/my_gurdy_description/robots/gurdy.urdf"
alias cdc="cd ~/catkin_ws" #custom cd command that goes to catkin_ws
alias cdcs="cd ~/catkin_ws/src" #custom cd command that goes to catkin_ws/SRC
alias cdcmk="cdc; catkin_make; wait; source devel/setup.bash" #goes to catkin_ws, runs catkin_make, waits until it's made, then sources devel/setup.bash
alias cddcmk="cdc; rm -rf devel build; catkin_make; wait; source devel/setup.bash" #goes to catkin_ws, deletes build and devel directory runs catkin_make, waits until it's made, then sources devel/setup.bash
alias gitcon="git config --global credential.helper 'cache --timeout=999999'; git config --global user.name 'rwbot'; git config --global user.email'[email protected]'"
alias delg="rosservice call /gazebo/delete_model \"model_name: 'gurdy'\""
alias glg="roslaunch my_gurdy_description spawn_gurdy.launch"
alias dglg="delg; wait; glg"
alias delm="rosservice call /gazebo/delete_model \"model_name: 'mira'\""
alias glm="roslaunch my_mira_description spawn_mira.launch"
alias dglm="del; wait; glm"
git config --global credential.helper 'cache --timeout=999999'
git config --global user.name 'rwbot'
git config --global user.email'[email protected]'
source ~/.bashrc