moveit / moveit_calibration

Hand-eye calibration tools for robot arms.
BSD 3-Clause "New" or "Revised" License
138 stars 79 forks source link

Unable to catkin build: fatal error: numpy/arrayobject.h: No such file or directory #126

Open ambitious-octopus opened 2 years ago

ambitious-octopus commented 2 years ago

This is what i get:

src/moveit_calibration/moveit_calibration_plugins/handeye_calibration_solver/include/moveit/handeye_calibration_solver/handeye_solver_default.h:53:10: fatal error: numpy/arrayobject.h: No such file or directory
   53 | #include <numpy/arrayobject.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [handeye_calibration_solver/CMakeFiles/moveit_handeye_calibration_solver_core.dir/build.make:63: handeye_calibration_solver/CMakeFiles/moveit_handeye_calibration_solver_core.dir/src/handeye_solver_default.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2039: handeye_calibration_solver/CMakeFiles/moveit_handeye_calibration_solver_core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
cd /iiwa_stack_ws/src/build/moveit_calibration_plugins; catkin build --get-env moveit_calibration_plugins | catkin env -si  /root/miniconda3/envs/grow-hbp/bin/make --jobserver-auth=4,5; cd -
elishafer commented 1 year ago

I get a simalar error with the compiler complaining handeye_solver_default.h:53:31: fatal error: numpy/arrayobject.h: No such file or directory Have you managed to fix it?

edit: The following solved the issue for me sudo apt-get install --reinstall python-numpy