forked from CURG-archive/graspit_handop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk_linux_mosek
executable file
·53 lines (42 loc) · 945 Bytes
/
mk_linux_mosek
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
#!/bin/bash
#graspit compilation script
cd qhull
make
cd ..
export GRASPIT=$PWD
export CGDB_MODEL_ROOT=$GRASPIT/cgdb
#INSERT YOUR MOSEK DIRECTORY HERE
export MOSEK6_0_INSTALLDIR=$PWD/mosek_6/
echo $GRASPIT
echo $CGDB_MODEL_ROOT
#if libraries are not installed on the standard path variable, add them here.
#libspaths=#space delimited list of -L/path/to/lib
qmake $libspaths ./graspit.pro
make -j4
rflag=
while getopts 'r' OPTION
do
case $OPTION in
r) rflag=1
;;
?) printf "Options: %s: [-r] " $(basename $0) >&2
exit 2
;;
esac
done
shift $(($OPTIND - 1))
fr=
if [ "$rflag" ]
then
cd rosnode
rppsource=#source /path/to/starting/ros/variable
fr=echo $ROS_PACKAGE_PATH | grep $PWD
if ! [ "$ROS_PACKAGE_PATH"]
then echo "No ROS_PACKAGE_PATH set"; source $rppsource
fi
if ! [ "$fr" ]
then
echo "Adding PWD to ROS_PACKAGE_PATH"; source ./arm.sh;
fi
rosmake grasp_common; rosmake grasp_planner; rosmake grasp_test;
fi