Giter Site home page Giter Site logo

trouble with basic results about tinyik HOT 4 CLOSED

lanius avatar lanius commented on June 26, 2024
trouble with basic results

from tinyik.

Comments (4)

lanius avatar lanius commented on June 26, 2024

Could you show me the version of tinyik you use and all the source code? In my environment, it is version 1.2.0, and worked as follows (I assumed the size of the links to be [1, 0, 0]):

import numpy as np
import tinyik

arm = tinyik.Actuator(['z',[1, 0, 0], 'z',[1, 0, 0], 'z',[1, 0, 0]])
arm.ee = [1.5, 1.5, 0]
print('ee position', arm.ee)
# => ee position [1.50000001 1.49999999 0.        ]
print('joint angles', np.round(np.rad2deg(arm.angles)))
# => joint angles [-11.  57.  55.]

Tinyik has some tiny and naive solver which one of be used as default in older version. They are sensitive to initial angles and optimization parameters, so it may be easy to fail if you use it.

from tinyik.

frueter avatar frueter commented on June 26, 2024

Hi, thanks for the reply.
I posted all my code and I don't know where to look up the version. I checked all the files in the package but there is no version string anywhere.
I gave it another go and now it works. I think I was one link short in my initial test.

from tinyik.

lanius avatar lanius commented on June 26, 2024

I am glad that it worked well. You can find the version of a package with pip show command:

pip show tinyik

from tinyik.

frueter avatar frueter commented on June 26, 2024

Ah thanks. Yes, it's 1.2.0.

from tinyik.

Related Issues (16)

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.