{"action":"created","issue":{"url":"https://api.github.com/repos/ros-interactive-manipulation/graspit_simulator/issues/2","repository_url":"https://api.github.com/repos/ros-interactive-manipulation/graspit_simulator","labels_url":"https://api.github.com/repos/ros-interactive-manipulation/graspit_simulator/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ros-interactive-manipulation/graspit_simulator/issues/2/comments","events_url":"https://api.github.com/repos/ros-interactive-manipulation/graspit_simulator/issues/2/events","html_url":"https://github.com/ros-interactive-manipulation/graspit_simulator/issues/2","id":163455137,"number":2,"title":"dbase_grasp_planner compilation error","user":{"login":"JSR694","id":7121127,"avatar_url":"https://avatars.githubusercontent.com/u/7121127?v=3","gravatar_id":"","url":"https://api.github.com/users/JSR694","html_url":"https://github.com/JSR694","followers_url":"https://api.github.com/users/JSR694/followers","following_url":"https://api.github.com/users/JSR694/following{/other_user}","gists_url":"https://api.github.com/users/JSR694/gists{/gist_id}","starred_url":"https://api.github.com/users/JSR694/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSR694/subscriptions","organizations_url":"https://api.github.com/users/JSR694/orgs","repos_url":"https://api.github.com/users/JSR694/repos","events_url":"https://api.github.com/users/JSR694/events{/privacy}","received_events_url":"https://api.github.com/users/JSR694/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-01T18:56:56Z","updated_at":"2016-07-08T21:18:15Z","closed_at":null,"body":"Hi all,\r\n\r\nI'm trying to compile dbase_grasp_planner from source, but am running into the following errors:\r\n\r\n```\r\n[ 50%] [ 50%] Building CXX object dbase_grasp_planner_localhost/CMakeFiles/dbase_grasp_planner_localhost.dir/src/guided_grasp_planning_task.cpp.o\r\nBuilding CXX object dbase_grasp_planner_localhost/CMakeFiles/dbase_grasp_planner_localhost.dir/src/grasp_planning_task.cpp.o\r\n/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*)’:\r\n/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’\r\n   GraspitDBModel* dbModel= mObject->getDBModel();\r\n                                     ^\r\n/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*)’:\r\n/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’\r\n   GraspitDBModel* dbModel= mObject->getDBModel();\r\n                                     ^\r\nmake[2]: *** [dbase_grasp_planner_localhost/CMakeFiles/dbase_grasp_planner_localhost.dir/src/grasp_planning_task.cpp.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nmake[2]: *** [dbase_grasp_planner_localhost/CMakeFiles/dbase_grasp_planner_localhost.dir/src/guided_grasp_planning_task.cpp.o] Error 1\r\nmake[1]: *** [dbase_grasp_planner_localhost/CMakeFiles/dbase_grasp_planner_localhost.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n```\r\nI'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:\r\n\r\n* Converted from rosbuild to Catkin.  My CMakeLists.txt is attached.\r\n* 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.\r\n\r\nTwo other things to note are that I'm using [Jennifer Buehler's fork of GraspIt](https://github.com/JenniferBuehler/graspit), and that I've also ported graspit_dbase_tasks to catkin (and changed its database connection parameters; this package compiles without issue).\r\n\r\nAll 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](https://github.com/JenniferBuehler/graspit/blob/master/CMakeLists.txt) for this version of GraspIt (see line 305).\r\n\r\nAny help would be much appreciated!\r\n\r\nThanks,\r\nJack\r\n\r\n[CMakeLists.txt](https://github.com/ros-interactive-manipulation/graspit_simulator/files/344014/CMakeLists.txt)"},"comment":{"url":"https://api.github.com/repos/ros-interactive-manipulation/graspit_simulator/issues/comments/231475143","html_url":"https://github.com/ros-interactive-manipulation/graspit_simulator/issues/2#issuecomment-231475143","issue_url":"https://api.github.com/repos/ros-interactive-manipulation/graspit_simulator/issues/2","id":231475143,"user":{"login":"JenniferBuehler","id":12842634,"avatar_url":"https://avatars.githubusercontent.com/u/12842634?v=3","gravatar_id":"","url":"https://api.github.com/users/JenniferBuehler","html_url":"https://github.com/JenniferBuehler","followers_url":"https://api.github.com/users/JenniferBuehler/followers","following_url":"https://api.github.com/users/JenniferBuehler/following{/other_user}","gists_url":"https://api.github.com/users/JenniferBuehler/gists{/gist_id}","starred_url":"https://api.github.com/users/JenniferBuehler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JenniferBuehler/subscriptions","organizations_url":"https://api.github.com/users/JenniferBuehler/orgs","repos_url":"https://api.github.com/users/JenniferBuehler/repos","events_url":"https://api.github.com/users/JenniferBuehler/events{/privacy}","received_events_url":"https://api.github.com/users/JenniferBuehler/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T21:18:15Z","updated_at":"2016-07-08T21:18:15Z","body":"Hi Jack,\r\n\r\nurdf2* packages don't depend on grasp_planning_graspit or graspit packages. Anyway in this case, at this point it makes no real difference whether you use original graspit or my fork.\r\n\r\nI see what you did is replace the ``graspit`` folder of this repository with my fork of graspit. That won't work however (regardless whether my fork or original), because the packages in this repository here are not set up for using the newer version of graspit - they still work with the old version in the svn. As you can see from the commits, the last updates here are a few years back, plus it is not made for catkin yet (still using manifest.xml instead of package.xml). I'm not sure how soon it is planned to update the packages here to work with the new version and cmake/catkin.\r\n\r\nYou could try to remove all other packages in this repo except dbase_grasp_planner and write a new CMakeLists.txt for it, for which you'd also have to look at dbase_grasp_planning.pro. Would be a bit of fiddling though.\r\nWhat exactly do you want to do? Maybe there is a currently easier way to achieve what you're trying to do without using this package."}}
{"actor":{"display_login":"JenniferBuehler"}}