Comments (3)
The 1D LP in the above post does not have a solution unless one assumes 5.68434e-14 = 0, then the LP becomes solvable with x = 0.
I have to figure out where 5.68434e-14 comes from and why it's not exactly 0.
from toppra.
Would this solution make sense?
if upper_bound < lower_bound AND lower_bound - upper_bound < 2 * ABS_TOLERANCE
then
lower_bound -= ABS_TOLERANCE
upper_bound += ABS_TOLERANCE
That way, if upper bound is smaller than lower bound due to numerical errors, we'd extend the bounds by a tiny amount and allow a solution between the new bounds?
from toppra.
The issue can be reproduced with following test:
{
// Issue #244
v = { -65.960772491990838, 0.0 };
A.resize(8, 2);
A << -65.9607724919908, -0.0151605259038078,
65.9607724919908, -0.00782362866419491,
0.468679477393087, 5.6843418860808e-14,
-0.468679477393087, -1000,
0, -std::numeric_limits<double>::infinity(),
0, -std::numeric_limits<double>::infinity(),
-65.9607724919908, 0,
65.9607724919908, -0.0229841545680027;
auto sol = seidel::solve_lp1d(v, A);
EXPECT_TRUE(sol.feasible);
}
It fails on EXPECT_TRUE(sol.feasible)
.
from toppra.
Related Issues (20)
- Using `CartesianVelocityNorm` in python HOT 2
- [C++] Geometric path fails when evaluating on its boundaries. HOT 5
- Usage of C++ API in CMake Project HOT 7
- Error when pip install .[dev] HOT 1
- Linear Cartesian move as a constraint HOT 3
- N-dof ptah velocity calculation HOT 2
- Install bug HOT 1
- [CPP] Question on TOPP-RA Forward Pass HOT 7
- Question on Spline Parametrizer HOT 3
- `ConstAccel::evalParams()` computes wrong `k_grid` when `ts[i]` is an element in `m_ts`
- parametrizer->dof() returns undefined value HOT 1
- Jerk estimation supported by AbstractGeometricPath
- when vs and ve not equal to 0, computeForwardPass() maybe have some problem. HOT 1
- Can you help me check if my dynamic constraints are correct? HOT 4
- How to solve the discontinuity of joint acceleration and the non-zero acceleration at the start and end of the output trajectory?
- Cannot convert from 'initializer list' to 'toppra::BoundaryCond'
- c++ api use,please help HOT 1
- in cpp/tests/test_toppra_approach.cpp std::vector<toppra::value_type> steps = {0, 1, 2}; there steps mean what?please help
- joint range limits
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 toppra.