All scripts have communication with the robots using platform specific APIs without any wrapper libraries.
- kortex-api 2.6.0 for Kinova Gen3
Note
kortex API should be upgraded to 2.7.0
-
Clone the repository,
-
A sample of root directory:
├── bin/ ├── gen3.urdf ├── install/ ├── kdl_parser/ ├── Makefile ├── orocos_kinematics_dynamics/ ├── README.md └── src/ -
Install required system libraries using apt:
sudo apt-get install libtinyxml-dev liburdfdom-dev liburdfdom-headers-dev -
Setup
kdl_parsermake kdl_parser_setup
-
Setup
kortex_apimake kortex_setup
-
For each dependency (in general):
- Navigate to the directory where
CMakeLists.txtis located - Create a build directory at the same level:
mkdir build && cd build - Run CMake, specifying the path to the install directory from step
cmake .. -DCMAKE_INSTALL_PREFIX=<absolute_path_to_install_directory> - Compile and install the package:
make make install
- Navigate to the directory where
- The executable is generated in
bin/folder
Computes gravity compensation torques for Kinova Gen3 using RNEA from KDL
make kdl_gcReads data from Kinova Gen3 and computes gravity comp. torques using RNEA from KDL
make kinova_readComputes gravity comp. torques using RNEA from KDL and commands them to the robot
make kinova_kdl_gc- Computes gravity comp. torques using RNEA from KDL, and apply P-control to control the drift.
- Also, commands them to the robot
make kinova_kdl_gc_ctrl- Make use Admittance API from the
baseto set the arm into admittance mode. - Also shows switch from
admittancemode totorquecontrol mode.