question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inverse Kinematics example is not up-to-date

See original GitHub issue

The Inverse Kinematics example script does not work out-of-the-box, and will error out with a message about control_freq being specified in Fetch’s configuration file.

When this error is bypassed by commenting out the assertion, errors still occur. Fetch does not have a “robot_body” attribute, so

fetch.robot_body.reset_position([0, 0, 0])

should become

fetch.reset_position([0, 0, 0])

which is the standard in the functioning examples.

Similarly, it seems that

fetch.get_end_effector_position()

should become

fetch.links["gripper_link"].get_position()

RobotLink does not have a body_part_index, so

robot_id, fetch.links["gripper_link"].body_part_index, [x, y, z], threshold, maxIter

should become something like

robot_id, fetch.links["gripper_link"].(body/link)_id, [x, y, z], threshold, maxIter

After all of these changes, the example wildly flails around Fetch’s arm, which I wouldn’t imagine is the intended purpose of the example.

This script is fairly important for outlining the usage of IK in iGibson. If I fix it, I will submit a PR. Just wanted to outline the issue here as well.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
CharlesAverillcommented, Feb 25, 2022

@cgokmen IK runs without a hitch now, my team and I appreciate the attention and work y’all put into this repo.

One (unrelated) thing I’m curious about: does iGibson support any sort of motion planning to move an appendage from its current position to another position (computed by IK in my case)? I’m currently working on porting some motion planning code, but it’s proving to be tough, an official solution would be much preferred.

1reaction
ChengshuLicommented, Jan 20, 2022

@CharlesAverill Thank you for reporting this. We are aware that several of our examples are currently broken (including the IK example). We are in the process of fixing them (and making them much better than before!). We will release a new version in a week or two.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inverse Kinematics Problem - an overview - ScienceDirect.com
The inverse kinematics problem is the problem of finding a vector of joint variables which produce a desired end effector location. If a...
Read more >
Chapter 6. Inverse kinematics
For example, for a k-legged robot, up to k leg positions and orientation may be constrained to be fixed while the body moves....
Read more >
Inverse Kinematics in 3D - Alan Zucconi
This tutorial will teach you how to master inverse kinematics in 3D: the technique that solves the problem of moving a robotic arm...
Read more >
6.2. Numerical Inverse Kinematics (Part 1 of 2)
This video introduces the Newton-Raphson root-finding method for numerical inverse kinematics. The end-effector configuration is represented by a minimum ...
Read more >
3.4: Inverse Kinematics of Selected Mechanisms
For example a three-link arm that wants to reach a point that can be reached without fully extending all links (leading to a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found