-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_project.bash
executable file
·30 lines (19 loc) · 1.06 KB
/
run_project.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
#!/usr/bin/env bash
alias irun='/home/kika/icub_ws/icub-grasping/docker/simulator/icub_custom/run_icub.bash'
alias iexec='/home/kika/icub_ws/icub-grasping/docker/simulator/icub_custom/exec_icub.bash'
alias icd='cd /home/kika/icub_ws/icub-grasping/'
gnome-terminal --tab -- sh -c "irun; source /icub-grasping/env.bash; yarpserver"
gnome-terminal --tab -- sh -c "iexec; gazebo /icub-grasping/project/scenes/demo_day.world"
echo "Waiting for 5 seconds..."
sleep 5
gnome-terminal --tab -- sh -c "iexec; yarprobotinterface --context simCartesianControl"
gnome-terminal --tab -- sh -c "iexec; iKinCartesianSolver --context simCartesianControl --part left_arm"
echo "Waiting for 1 second..."
sleep 1
gnome-terminal --tab -- sh -c "yarpview --name /l"
gnome-terminal --tab -- sh -c "yarpview --name /r"
echo "Waiting for 1 second..."
sleep 1
gnome-terminal --tab -- sh -c "yarp connect /icubSim/cam/left /l"
gnome-terminal --tab -- sh -c "yarp connect /icubSim/cam/right /r"
gnome-terminal --tab -- sh -c "iexec; cd /icub-grasping/project/build/bin/; ./tutorial_cartesian-interface"