This tutorial contains a controller example which exploits WB-Toolbox.
It implements a PD plus gravity compensation (which in its nature is quite generic), but references are targeted to the iCub robot.
- Open Matlab, browse the directory containing this repository, open the
impedance_control.mdl
file. - Execute
yarpserver
- Open
gazebo -s libgazebo_yarp_clock.so
and drop theiCubGazeboV2_5 fixed
model. - On Simulink, press Play.
The controller is now launched and the robot get controlled in torque for all the time the controller is running.
If you face any problem, have a look at this README.md file.