Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion graspit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

rosbuild_init()

execute_process(COMMAND cmake -E chdir ${PROJECT_SOURCE_DIR} make -f Makefile.graspit.svn
execute_process(COMMAND cmake -E chdir ${PROJECT_SOURCE_DIR} make -f Makefile.graspit.git
RESULT_VARIABLE _graspit_make_failed)
if(_graspit_make_failed)
message(FATAL_ERROR "Build of graspit failed")
Expand Down
20 changes: 20 additions & 0 deletions graspit/Makefile.graspit.git
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
all: bin/graspit

GIT_DIR = graspit_source
GIT_URL = https://github.com/mirsking/Graspit.git
GIT_REVISION=zun-devel
GIT_PATCH = graspit_git.patch

PACKAGE_DIR = $(shell rospack find graspit)

include $(shell rospack find mk)/git_checkout.mk

bin/graspit: $(GIT_DIR)
cd $(GIT_DIR) && qmake "EXT_DESTDIR = $(PACKAGE_DIR)/bin" "ADDITIONAL_INCLUDE_DIR=$(PACKAGE_DIR)/include" "ADDITIONAL_LINK_FLAGS=-Wl,-rpath,$(PACKAGE_DIR)/lib " graspit.pro && make

clean:
-rm -rf bin/graspit
-cd $(GIT_DIR) && make clean

wipe: clean
-rm -rf $(GIT_DIR)
4 changes: 2 additions & 2 deletions graspit/Makefile.graspit.svn
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ all: bin/graspit
SVN_DIR = graspit_source
SVN_URL = svn://svn.code.sf.net/p/graspit/code/trunk
SVN_REVISION=-r126
SVN_PATCH = graspit_project.patch graspit_dbase.patch
SVN_PATCH = graspit_project.patch graspit_dbase.patch graspit_1404_svn.patch

PACKAGE_DIR = $(shell rospack find graspit)

Expand All @@ -17,4 +17,4 @@ clean:
-cd $(SVN_DIR) && make clean

wipe: clean
-rm -rf $(SVN_DIR)
-rm -rf $(SVN_DIR)
4 changes: 2 additions & 2 deletions graspit/Makefile.graspit.tarball
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ INITIAL_DIR = build/Graspit
SOURCE_DIR = graspit_source
UNPACK_CMD = tar xzf
MD5SUM_FILE = $(FILENAME).md5sum
TARBALL_PATCH=graspit_project.patch graspit_dbase.patch
TARBALL_PATCH=graspit_project.patch graspit_dbase.patch graspit_1404_svn.patch

PACKAGE_DIR = $(shell rospack find graspit)

Expand All @@ -22,4 +22,4 @@ clean:

wipe: clean
-rm -rf $(SOURCE_DIR)
-rm -rf $(TARBALL)
-rm -rf $(TARBALL)
1 change: 1 addition & 0 deletions graspit/graspit/graspit_1404_svn.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stub put here just so that Make is happy. The one in the package root is actually used.
26 changes: 26 additions & 0 deletions graspit/graspit_1404_svn.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Index: graspit-lib-LINUX.pro
===================================================================
--- graspit-lib-LINUX.pro (revision 31)
+++ graspit-lib-LINUX.pro (working copy)
@@ -21,7 +21,7 @@
LIBS += -lSoQt -lCoin

#add utility libraries
-LIBS += -lGL -lpthread
+LIBS += -lGL -lpthread -ldl

MOC_DIR = .moc
OBJECTS_DIR = .obj
Index: src/ivmgr.cpp
===================================================================
--- src/ivmgr.cpp (revision 31)
+++ src/ivmgr.cpp (working copy)
@@ -1540,7 +1540,7 @@
#endif

int numtypes = myRenderer->getNumWriteFiletypes();
- SbList<SbName> extList;
+ SbPList extList;
SbString fullname;
SbString desc;
for (int i=0;i<numtypes;i++) {
69 changes: 69 additions & 0 deletions graspit/graspit_git.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
diff --git a/graspit-lib-LINUX.pro b/graspit-lib-LINUX.pro
index 3ae7f65..120878b 100644
--- a/graspit-lib-LINUX.pro
+++ b/graspit-lib-LINUX.pro
@@ -24,7 +24,7 @@ LIBS += -lqhull
LIBS += -lSoQt -lCoin

#add utility libraries
-LIBS += -lGL -lpthread
+LIBS += -lGL -lpthread -ldl

MOC_DIR = .moc
OBJECTS_DIR = .obj
diff --git a/graspit.pro b/graspit.pro
index 017fe2f..e0603c5 100644
--- a/graspit.pro
+++ b/graspit.pro
@@ -21,9 +21,9 @@ COLLISION = graspit_collision
LAPACK = clapack

#build and use interface with Columbia Grasp Database
-#CONFIG += cgdb
+CONFIG += cgdb
#and use the ros database manager
-#CONFIG += graspit_ros
+CONFIG += graspit_ros

#link against Mosek QP solver (must be installed separately)
#CONFIG += mosek
diff --git a/src/DBase/dbaseDlg.ui b/src/DBase/dbaseDlg.ui
index 590dc29..3984317 100644
--- a/src/DBase/dbaseDlg.ui
+++ b/src/DBase/dbaseDlg.ui
@@ -34,7 +34,7 @@
</rect>
</property>
<property name="text" >
- <string>localhost</string>
+ <string>wgs36</string>
</property>
</widget>
<widget class="QLabel" name="hostLabel" >
@@ -99,7 +99,7 @@
</rect>
</property>
<property name="text" >
- <string>grasps</string>
+ <string>household_objects</string>
</property>
</widget>
<widget class="QLabel" name="usernameLabel" >
@@ -125,7 +125,7 @@
</rect>
</property>
<property name="text" >
- <string></string>
+ <string>willow</string>
</property>
</widget>
<widget class="QLabel" name="passwordLabel" >
@@ -151,7 +151,7 @@
</rect>
</property>
<property name="text" >
- <string></string>
+ <string>willow</string>
</property>
<property name="echoMode" >
<enum>QLineEdit::Password</enum>
4 changes: 2 additions & 2 deletions graspit_ros_planning/launch/ros_graspit_interface.launch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<launch>
<node name="graspit_ros" pkg="graspit" type="graspit" args="plugin:libros_graspit_interface" output="screen">
<node name="graspit_ros" pkg="graspit" type="graspit" args="plugin,libros_graspit_interface" output="screen">
<env name="GRASPIT" value="$(find graspit)/graspit_source"/>
<env name="GRASPIT_PLUGIN_DIR" value="$(find graspit_ros_planning)/lib"/>
</node>
</launch>
</launch>