justagist / panda_simulator

A Gazebo simulator for the Franka Emika Panda robot with ROS interface, supporting sim-to-real code transfer (Python). Exposes customisable controllers and state feedback from robot in simulation.
Apache License 2.0
188 stars 58 forks source link

Build fails on melodic #16

Closed advich closed 3 years ago

advich commented 3 years ago

Hi,

Great work on the simulator, I was trying to build the package and saw the following error. There seems to be a library file missing. Not really sure what I am doing wrong. Any help would be great.

/catkin_ws/src/franka_ros_interface/franka_interface/src/franka_control_node.cpp:44:10: fatal error: franka_control/ErrorRecoveryAction.h: No such file or directory

include <franka_control/ErrorRecoveryAction.h>

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. make[2]: [CMakeFiles/custom_franka_control_node.dir/src/franka_control_node.cpp.o] Error 1 make[1]: [CMakeFiles/custom_franka_control_node.dir/all] Error 2 make: *** [all] Error 2

justagist commented 3 years ago

Hi, This is because the official franka-ros package version was recently upgraded, and the franka_ros_interface package does not officially support the new version yet. There are two options here: 1. (not fully tested) There is a development branch (v0.7.1) for the franka_ros_interface repository which is targeted for the new version of franka_ros. You can switch to this branch and try a clean build of the workspace again. 2. (tested) You will have to build the older version of franka_ros from source. To do this, clone the franka_ros, checkout to the previous stable version (git checkout 49e5ac1), and rebuild workspace. Hope this helped. I will update the Readme soon

EDIT: This issue should be fixed now. You do not need to use outdated franka_ros versions.

advich commented 3 years ago

Builds fine now. Thank you