forked from CURG-archive/graspit_bci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk_linux
executable file
·50 lines (40 loc) · 876 Bytes
/
mk_linux
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
#!/bin/bash
#graspit compilation script
cd qhull
make
cd ..
export GRASPIT=$PWD
export CGDB_MODEL_ROOT=~/ros/rosbuild_src/RearmGraspit/cgdb
echo $GRASPIT
echo $CGDB_MODEL_ROOT
#if libraries are not installed on the standard path variable, add them here.
libspaths="\"LIBS+=-L/usr/local/lib\""
qmake $libspaths ./graspit.pro
make
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