Another corner case
See original GitHub issueHung,
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:
- Created 5 years ago
- Comments:15 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Clearly this should not happen. Seem like there is a bug hiding somewhere. I will investigate this issue.
Stale issue message