graspit_interface icon indicating copy to clipboard operation
graspit_interface copied to clipboard

error occurs when building the workspace

Open lxrswdd opened this issue 7 years ago • 3 comments

following the steps and problem comes up after execute "catkin_make"

graspit

Thank you !

lxrswdd avatar Jan 23 '18 02:01 lxrswdd

make sure GraspIt! is installed and able to run on your machine: https://github.com/graspit-simulator/graspit

git clone https://github.com/graspit-simulator/graspit.git
cd graspit
mkdir build
cd build
cmake ..
make -j5
sudo make install

On Linux, you will probably want to add both of these lines to the bottom of your ~/.bashrc

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export GRASPIT=~/.graspit

If you don't want to install GraspIt! with sudo, you will need to make sure catkin can find your graspit install when you compile it (CMAKE_PREFIX_PATH I think?), and the correct LD_LIBRARY_PATH at runtime.

jvarley avatar Jan 23 '18 14:01 jvarley

If you installed GraspIt! to a custom location (denoted by the environment variable GRASPIT_DIR), you might face this error. I solved it by using catkin_make -Dgraspit_DIR=${GRASPIT_DIR}/lib/cmake/graspit. Directly modifying the CMAKE_PREFIX_PATH at the catkin_make command line caused all sorts of problems with my workspace.

samarth-robo avatar Dec 14 '18 19:12 samarth-robo

Really just make your that you haven't forgotten the sudo make install after compiling graspit, because that instruction is actually not in the graspit installation guide.

dnandha avatar Feb 19 '20 12:02 dnandha