This is a software package used for controlling and learning skills on the Franka Emika Panda Research Robot Arm.
More Detailed Installation Instructions and Robot Setup Instructions are available here: https://iamlab-cmu.github.io/franka-interface
For the Franka Research 3, you will first need to download the FCI package from Franka World. Then in order to use the FCI, you must disable all of the safety features in the Watchman by first creating a Watchman account using the admin account and then logging into the Watchman account to delete all of the safety policies. Then the robot should be able to connect to the FCI.
To join the Discord community, click the link here.
This library is intended to be installed on the computer that interfaces with the Franka (we call this the Control PC).
To use this library, refer to FrankaPy, which can be run on any computer on the same ROS network and sends commands to franka-interface
.
We use both C++ and Python versions of protobufs so you would need to install Protobufs from source.
Do nproc
to find out how many cores you have, and use that as the N
number in the make
command below:
sudo apt-get install autoconf automake libtool curl make g++ unzip
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.8/protobuf-all-21.8.zip
unzip protobuf-all-21.8.zip
cd protobuf-21.8
./configure
make -jN
make check -jN
sudo make install
sudo ldconfig
See detailed instructions here
Clone Repo and its Submodules:
git clone --recurse-submodules https://github.com/iamlab-cmu/franka-interface.git
cd franka-interface
All directories below are given relative to /franka-interface
.
Clone LibFranka corresponding to your robot version. For example if your firmware is 3.x use the following command:
bash ./bash_scripts/clone_libfranka.sh 3
If you are using the Franka Research 3 use the following command:
bash ./bash_scripts/clone_libfranka.sh 6
Build LibFranka
bash ./bash_scripts/make_libfranka.sh
Build franka-interface
bash ./bash_scripts/make_franka_interface.sh
Once it has finished building, you should see an application named franka_interface
in the build folder.
Build ROS Node franka_ros_interface
Make sure that you have installed ROS Kinetic / Melodic already and have added the source /opt/ros/kinetic/setup.bash
or source /opt/ros/melodic/setup.bash
into your ~/.bashrc
file. Make sure you have also installed catkin-tools either globally or in a virtual environment using the command pip install catkin-tools
.
bash ./bash_scripts/make_catkin.sh
To allow asynchronous gripper commands, we use the franka_ros package, so install libfranka and franka_ros using the following command (Change melodic to kinetic if you are on Ubuntu 16.04:
sudo apt install ros-melodic-libfranka ros-melodic-franka-ros
If this library proves useful to your research, please cite the paper below::
@article{zhang2020modular,
title={A modular robotic arm control stack for research: Franka-interface and frankapy},
author={Zhang, Kevin and Sharma, Mohit and Liang, Jacky and Kroemer, Oliver},
journal={arXiv preprint arXiv:2011.02398},
year={2020}
}
libFranka requires libPoco, which can be installed using sudo apt-get install libpoco-doc libpoco-dev
. However, trying to build libFranka might still fail since CMAKE
cannot run find_package(Poco)
since there doesn't exist /usr/local/lib/cmake/Poco/PocoConfig.cmake
. This is a peculiarity of libPoco which installs in a weird way without providing an option for us to link against it.
To fix this we have copied the libPoco.cmake
file in {franka-interface-dir}/cmake
, and we add the following line to the CMakeLists.txt
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake
Do the following if you run run into libfranka: Cannot load model library: Cannot load library
:
mkdir -p /usr/local/lib/cmake/Poco/
cp cmake/FindPoco.cmake /usr/local/lib/cmake/FindPoco.cmake