Adapted from https://github.com/simlabrobotics/allegro_hand_linux_v4
This interface allows communicating with a v4 Allegro hand via ZMQ.
Download, build, and install PCAN-USB driver for Linux "libpcan"
tar -xzvf peak-linux-driver-x.x.tar.gz
cd peak-linux-driver-x.x
make NET=NO
sudo make install
- If encounter
Run
src/pcan-settings.c:47:10: fatal error: popt.h: No such file or directory 47 | #include <popt.h> | ^~~~~~~~ compilation terminated.
sudo apt install libpopt-dev
Download, build, and install PCAN-Basic API for Linux: libpcanbasic
tar -xzvf PCAN_Basic_Linux-x.x.x.tar.gz
cd PCAN_Basic_Linux-x.x.x/pcanbasic
make
sudo make install
Download, build, and install Grasping Library for Linux, "libBHand": Grasping_Library_for_Linux
unzip LibBHand_{32|64}.zip
cd libBHand_{32|64}
sudo make install
sudo ldconfig
Build using cmake "out of source build" style.
cd allegro_hand_linux
mkdir build && cd build
cmake ..
make
make install
- Connect PCAN-USB and Allegro Hand (make sure to power off Allegro Hand)
- Start the grasping program: "grasp":
bin/grasp
- Power on the Allegro Hand. The motors should actuate and the hand should return to the home configuration.
Please refer to dex_grasp_nuc for usage examples.