Skip to content
/ ik Public

An inverse kinematics engine, utilising the Pinocchio library.

Notifications You must be signed in to change notification settings

dazzmo/ik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation


Inverse Kinematics Engine

A work-in-progress implementation of a basic inverse kinematics engine

About The Project

(back to top)

Getting Started

Prerequisites

ik requires the following third-party libraries in order to be built and installed.

  • Pinocchio - for kinodynamic calculations such as frame placements and inverse kinematics
  • CasADi - for representing and solving optimisation problems with freely available solvers

(back to top)

Installing Prerequisites Through Robotpkg

If packages were previously installed via other methods, Simply remove the pinocchio package from ROS (sudo apt remove ros-humble-pinocchio). I would also recommend removing CasADi from the system if downloaded, which can be done by deleting the /usr/local/lib & /usr/local/include files.

Install

  1. Install the robotpkg packages using the following commands:

    sudo apt install -qqy lsb-release curl && \
    sudo mkdir -p /etc/apt/keyrings && \
    curl http://robotpkg.openrobots.org/packages/debian/robotpkg.asc \
    | sudo tee /etc/apt/keyrings/robotpkg.asc >/dev/null && \
    echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/robotpkg.asc] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg" \
    | sudo tee /etc/apt/sources.list.d/robotpkg.list >/dev/null && \
    sudo apt update && \
    sudo apt install -qqy robotpkg-py3*-pinocchio robotpkg-py3*-casadi robotpkg-py3*-example-robot-data
  2. Update your .bashrc with the following lines:

    export PATH=/opt/openrobots/bin:$PATH
    export PKG_CONFIG_PATH=/opt/openrobots/lib/pkgconfig:$PKG_CONFIG_PATH
    export LD_LIBRARY_PATH=/opt/openrobots/lib:$LD_LIBRARY
    export PYTHONPATH=/opt/openrobots/lib/python3.10/site-packages:$PYTHONPATH
    export CMAKE_PREFIX_PATH=/opt/openrobots:$CMAKE_PREFIX_PATH

Uninstall

  1. Remove the /opt/openrobots folder from the system files.
  2. Remove the recently added lines from .bashrc.
  3. Reinstall Pinocchio via ROS and CasADi via the traditional method.

(back to top)

Installation

  1. Clone the repo
    git clone https://github.com/dazzmo/ik
  2. Build the library
    cd ik
    mkdir build && cd build
    cmake ..
    make
  3. Installation of the library can then be performed by
    make install

(back to top)

License

Distributed under the GNU LESSER GENERAL PUBLIC LICENSE License. See LICENSE.txt for more information.

(back to top)

Contact

Damian Abood - damian.abood@sydney.edu.au

(back to top)

Acknowledgements

(back to top)

About

An inverse kinematics engine, utilising the Pinocchio library.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •