Wiki
Clone wikiscl-manips-v2 / kinova / operation
Setting up the Kinova
- Plug in the power cable and plug the USB cable into a port on your computer.
- Switch the robot on, and make sure that the lights on the joystick turn on and stop flashing before running any code on the robot.
Running an Example Program
- Clone the example programs repository:
git clone https://vsriram25@bitbucket.org/vsriram25/kinova-driver.git
- Type
sh build.sh
. - Run an executable with
./[name_of_executable]
. For instance,./kinova-driver
Note that when using the ./kinova-driver
program, you must set the options flag via REDIS first:
- Open a terminal and type
redis-cli
. - Type
SET OptionCode 0
orSET OptionCode 1
orSET OptionCode 2
depending on which type of control you would like to do (see comments in source fileSCL-redis-kinova-torque-interface.cpp
for descriptions of each option).
Generating Parameters for Internal Gravity Compensation
The Kinova API offers the ability to do gravity compensation. To get this working, run ZEstimation.cpp
to generate a set of parameters (dumped out into ParametersOptimal_Z.txt
). Set these parameters in your code by placing them in a float array and calling SetGravityOptimalZParam
on the float array. An example of this is provided in Minimal_Torque_Control_Example.cpp
.
Updated