Git Product home page Git Product logo

Comments (6)

cidxb avatar cidxb commented on September 22, 2024 1

Solved:
Basically it is a problem of the bound range of joint.

from ikpy.

RayYoh avatar RayYoh commented on September 22, 2024

Same error, how did you fix it?

from ikpy.

cidxb avatar cidxb commented on September 22, 2024

Same error, how did you fix it?

Check for your XML model (if you are using mujoco / if not then URDF file)on its joint's range, this problem happens, because the action is out of the limit of the joint range.

from ikpy.

irmakguzey avatar irmakguzey commented on September 22, 2024

Hello,
Sorry to open this again but I have been struggling with this issue for a while as well. But wouldn't the better implementation of this be to return the most possible joint values? Rather than giving an error?

from ikpy.

cidxb avatar cidxb commented on September 22, 2024

Hello, Sorry to open this again but I have been struggling with this issue for a while as well. But wouldn't the better implementation of this be to return the most possible joint values? Rather than giving an error?

The problem is ikpy is trying to solve a reverse kinetic problem with given conditions, and the joint values boundary is the conditions you give, and then conduct a iterative solving process. So I think it is very hard to "return the most possible joint values", because the joint values boundary can be arbitrary based on the actually limitation of your research, and also (I think) related to the actual 3D model...

from ikpy.

mrudorfer avatar mrudorfer commented on September 22, 2024

I stumbled over this as well, and for me it was the initial_position given to the IK solver that was in conflict with the joint limits - it makes sense that this raises an error. Perhaps the error message could be more specific though.

Note that it is not necessarily obvious, I was using a UR5e robotic arm with 3-finger gripper, but I didn't really care about the gripper joints yet, so I used this as initial joint pos:

initial_position = [0] + [m.getPositionSensor().getValue() for m in ur_motors] + [0, 0, 0, 0]

However, it turns out the finger joints have limits that do not include zero, so I needed to change it to e.g.:

initial_position = [0] + [m.getPositionSensor().getValue() for m in ur_motors] + [0, 1, 1, -1]

from ikpy.

Related Issues (20)

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.