A ros package for intuitive control of the Franka Emika manipulator using the Myo armband.
Provided that you have a Myo armband at hand and all the dependencies are installed, go to your catkin workspace and run
$ catkin build myo_franka_control
$ source ~/catkin_ws/devel/setup.bash
Then you have to plug-in the Myo bluetooth dongle and give it the read/write permissions:
$ sudo chmod r+w /dev/ttyACM0 # or /dev/ttyACM1, you have to figure it out
You're now ready to launch:
# simple control -> fast but unreliable because of singularities
$ roslaunch myo_franka_control main.launch cmd_exec_mode:=simple use_caffeine:=true
or
$ roslaunch myo_franka_control main.launch cmd_exec_mode:=mom use_caffeine:=true
for the advanced control loop, which aims to maximise the measurement of manipulability. Unfortunately, depending on your machine, it could be very slow.
Currently, the user is assumed to hold a position in which the hand of the arm wearing the Myo is facing downward (think as if your hand was the gripper of the manipulator in its initial pose in the gazebo simulation) until the simulation is fully loaded.