This repository contains the code for simulation of pd+gravity control with KUKA iiwa14 in MATLAB and CoppeliaSim(Vrep).
- MATLAB (later than r2020a)
- Coppeliasim edu v4.4.0 (The latest version as of the time of writing this example. October 2020. )The
remApi.m,remoteApiProto.mandremoteApi.dllin folderlibsare copied fromCoppeliaRobotics\CoppeliaSimEdu\programming\legacyRemoteApi\remoteApiBindings\matlab\matlabandCoppeliaRobotics\CoppeliaSimEdu\programming\legacyRemoteApi\remoteApiBindings\lib\lib\Windows)
-
Run
pd_plus_gravity.min MATLAB first, thenpd_plus_gravity.tttin CoppeliaSim. There may be a warning appeared in CoppeliaSim, just ignore it. -
If you want to stop the simulation, just stop the simulation in CoppeliaSim, after that the MATLAB part will automatically stop, followed by a figure.
-
In hw3_3, the coriolis matrix can be obtained through function
coriolis_kuka/autogen/C_mtrx_fcn.m. To understand how this code is generated, checkcoriolis_kuka/main.m.