-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hi all,
I'm trying to compile dbase_grasp_planner from source, but am running into the following errors:
[ 50%] [ 50%] Building CXX object dbase_grasp_planner_localhost/CMakeFiles/dbase_grasp_planner_localhost.dir/src/guided_grasp_planning_task.cpp.o
Building CXX object dbase_grasp_planner_localhost/CMakeFiles/dbase_grasp_planner_localhost.dir/src/grasp_planning_task.cpp.o
/home/jack/ros_stuff/graspdb_ws/src/dbase_grasp_planner_localhost/src/grasp_planning_task.cpp: In member function ‘bool dbase_grasp_planner_localhost::GraspPlanningTask::saveGrasp(const GraspPlanningState*, const GraspPlanningState*)’:
/home/jack/ros_stuff/graspdb_ws/src/dbase_grasp_planner_localhost/src/grasp_planning_task.cpp:281:37: error: ‘class GraspableBody’ has no member named ‘getDBModel’
GraspitDBModel* dbModel= mObject->getDBModel();
^
/home/jack/ros_stuff/graspdb_ws/src/dbase_grasp_planner_localhost/src/guided_grasp_planning_task.cpp: In member function ‘bool dbase_grasp_planner_localhost::GuidedGraspPlanningTask::saveGrasp(const GraspPlanningState*, const GraspPlanningState*)’:
/home/jack/ros_stuff/graspdb_ws/src/dbase_grasp_planner_localhost/src/guided_grasp_planning_task.cpp:181:37: error: ‘class GraspableBody’ has no member named ‘getDBModel’
GraspitDBModel* dbModel= mObject->getDBModel();
^
make[2]: *** [dbase_grasp_planner_localhost/CMakeFiles/dbase_grasp_planner_localhost.dir/src/grasp_planning_task.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [dbase_grasp_planner_localhost/CMakeFiles/dbase_grasp_planner_localhost.dir/src/guided_grasp_planning_task.cpp.o] Error 1
make[1]: *** [dbase_grasp_planner_localhost/CMakeFiles/dbase_grasp_planner_localhost.dir/all] Error 2
make: *** [all] Error 2
I've modified the source code so that it connects to my local household_objects_db. I've also made the following modifications for compatibility with current tools and libraries:
- Converted from rosbuild to Catkin. My CMakeLists.txt is attached.
- Switched from Qt3 to Qt4. Fixed compile-time errors as they appeared. I'm not familiar with Qt so I'm unsure if this upgrade requires more substantive changes than what I made. Regardless it seems unrelated to my current issue.
Two other things to note are that I'm using Jennifer Buehler's fork of GraspIt, and that I've also ported graspit_dbase_tasks to catkin (and changed its database connection parameters; this package compiles without issue).
All that being said, I'm stumped by the error I'm getting here. GraspableBody is defined in graspit's body.h; the getDBModel() function is dependent on a compiler flag, but this flag is set to true in the CMakeLists.txt for this version of GraspIt (see line 305).
Any help would be much appreciated!
Thanks,
Jack