Comments (4)
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.
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.
I am glad that it worked well. You can find the version of a package with pip show
command:
pip show tinyik
from tinyik.
Ah thanks. Yes, it's 1.2.0.
from tinyik.
Related Issues (16)
- Why bypass `ImportError` in `visualizer.py` HOT 2
- Prismatic joint support? HOT 1
- module 'tinyik' has no attribute 'visualize' HOT 2
- problem for using multiple solver in same time HOT 3
- Visualization results in a blank screen HOT 2
- proof of concept IK help for CAM application HOT 2
- Links that run along the Z-axis aren't shown in the visualizer HOT 2
- Constrained Angles for IK HOT 2
- How to create a 3-DoF rotation joint? HOT 1
- wrong visualization HOT 2
- Implementation of relative axis
- arm initial position and angles HOT 1
- joint angle limits
- DH Params conversion?
- How to set rotation/pose of the end effector?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinyik.