Tested with ROS Kinetic, Gazebo 9, ODE and DART
sudo chmod +x install_dependencies.sh
sudo ./install_dependencies.sh
With this setup you will not be able to use gazebo the simulator. The standard "apt-get install gazebo" uses by default the ode physics engine which is unable to handle the small inertia matrices of the hand whilst maintaining real time performance.
If you want to use gazebo (running with a real time factor) you will need the dart physics engine gazebo plugin which requires compiling gazebo from source. Follow the steps outlined in Install allegro-hand gazebo. If you don't want to use the gazebo simulator, you are done, just compile your catkin workspace.
sudo chmod +x install_gazebo_source.sh
sudo ./install_gazebo_source.sh
roslaunch ahand hw.launch
roslaunch ahand sim.launch
If you get the following error:
1555577332.132839: ERROR: failed to scan directory (errno=2) '/sys/class/pcan'
it is most likely that the pcan dirver was incorrectly installed. If the /proc/pcan file does not exist run the following:
cd allegro-hand/peak-linux-driver
make clean
make NET=NO PCC=NO
sudo make install
sudo modprobe pcan 1> /dev/null
then check if the pcan file exists:
cat /proc/pcan
if it does then this error is likely to be fixed.