GithubHelp home page GithubHelp logo

ikfast_setup's Introduction

ikfast_setup (for ubuntu 20.04 and ros2)

1. Install 3 ros2 packages. collada_parser, collada_urdf, urdf_parser_plugin.
  Convert urdf file to dae file.

ros2 run collada_urdf urdf_to_collada ${URDF_FILE_NAME}.urdf ${URDF_FILE_NAME}.dae

2. Install OpenRAVE following this.
  Generate IK cpp file from .dae file.

python `openrave-config --python-dir`/openravepy/_openravepy_/ikfast.py --robot=${URDF_FILE_NAME}.dae --iktype=translation3d --baselink=0 --eelink=4 --savefile=ikfast_${URDF_FILE_NAME}.cpp

3. Copy the  "ikfast.h"  file to current directory. Then build and generate corresponding executable file and shared library.

cp /usr/local/lib/python2.7/dist-packages/openravepy/_openravepy_/ikfast.h .

g++ ikfast_${URDF_FILE_NAME}.cpp -o ikfast_${URDF_FILE_NAME} -llapack -std=c++11

g++ -fPIC -lstdc++ -DIKFAST_NO_MAIN -DIKFAST_CLIBRARY -shared -Wl,-soname,ikfast_${URDF_FILE_NAME}.so -o ikfast_${URDF_FILE_NAME}.so ikfast_${URDF_FILE_NAME}}.cpp

4. Test...
  for end position (X, Y, Z):

./ikfast_${URDF_FILE_NAME} 0 0 0 X 0 0 0 Y 0 0 0 Z

ikfast_setup's People

Contributors

wsh95 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.