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.

Another corner case

See original GitHub issue

Hung,

I ran into a case today where The following two waypoints for a 6-DOF arm were sent to toppra, and it failed because the controllable sets saw a nan in K.

Reproduce by updating scalar_example.py:

    waypts = [[-9.089468271438139e-07, -0.46400441351211447, -0.5760014655483718, -3.9375206752326924e-07, -1.6999970211081608, 5.429519493702008e-06], [0.0, -0.464, -0.576, 0.0, -1.7, 0.0]]
    path = ta.SplineInterpolator(np.linspace(0, 1, len(waypts)), waypts)
    vlim = np.array([[-3, 3],[-3, 3],[-3, 3],[-3, 3],[-3, 3],[-3, 3]])
    alim = np.array([[-4, 4],[-4, 4],[-4, 4],[-4, 4],[-4, 4],[-4, 4] ])

However, I noticed that if I comment out the np.isnan(K[i]).any() if in both compute_controllable_sets() and compute_parameterization, that the rest of computer_paramterization() seems to work just fine and produce the correct answer.

So might you be able to either ignore nan for K or at least set nans in K to constants.MAXX?

Both of those “solutions” work for me in testing.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hungpham2511commented, Oct 25, 2018

Clearly this should not happen. Seem like there is a bug hiding somewhere. I will investigate this issue.

0reactions
github-actions[bot]commented, Jun 23, 2020

Stale issue message

Read more comments on GitHub >

github_iconTop Results From Across the Web

Corner case - Wikipedia
In engineering, a corner case (or pathological case) involves a problem or situation that occurs only outside normal operating parameters—specifically one ...
Read more >
Corner case vs. edge case - Educative.io
An edge case is an issue that occurs at an extreme (maximum or minimum) operating parameter. A corner case is when multiple parameters...
Read more >
Synonyms for CORNER CASE - Thesaurus.net
Synonyms for CORNER CASE: engineering concept, engineering concept.
Read more >
What is the difference between an edge case and a corner ...
From my understanding, a corner case is the extreme values of inputs. And edge cases are the extreme cases to handle when designing...
Read more >
What are the difference between an edge case, a corner case ...
It's probably safe to say that edge, corner, and boundary cases are the same thing in common speech. Someone could mean to say...
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