Compiling Sphero ROS on Melodic: gzmath.h no such file or directory

asked 2018-12-07 04:53:05 -0500

ritesh gravatar image

updated 2018-12-07 06:37:38 -0500

gvdhoorn gravatar image

I have ROS Melodic on my computer. I started by installing Sphero ROS ( ) for controlling through the keyboard. Then I also installed ROS turtlebot ( ). Finally I installed the Robot Controllers ( ). I ran catkin_make but I keep getting this error -

/home/ritesh/catkin_ws/src/Sphero-ROS-master/sphero_gazebo/src/gazebo_sphero_controller.cpp:23:10: fatal error: gazebo/math/gzmath.hh: No such file or directory

include <gazebo/math/gzmath.hh>
compilation terminated.
Sphero-ROS-master/sphero_gazebo/CMakeFiles/gazebo_sphero_controller.dir/build.make:62: recipe for target 'Sphero-ROS-master/sphero_gazebo/CMakeFiles/gazebo_sphero_controller.dir/src/gazebo_sphero_controller.cpp.o' failed
make[2]: [Sphero-ROS-master/sphero_gazebo/CMakeFiles/gazebo_sphero_controller.dir/src/gazebo_sphero_controller.cpp.o] Error 1
CMakeFiles/Makefile2:6580: recipe for target 'Sphero-ROS-master/sphero_gazebo/CMakeFiles/gazebo_sphero_controller.dir/all' failed
make[1]: [Sphero-ROS-master/sphero_gazebo/CMakeFiles/gazebo_sphero_controller.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: * [all] Error 2
Invoking "make -j4 -l4" failed

I looked for solutions online but am unable to fix it. Can someone help please?

edit retag flag offensive close merge delete