Giter Site home page Giter Site logo

rafaelrojasmiliani / opstop_cpp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 248 KB

Time-minimal smooth stop for collaborative robotics with python bindings

License: MIT License

Python 8.61% Dockerfile 0.36% CMake 5.14% C++ 85.89%
collaborative-robotics jerk-minimization motion-planning optimal-control optimal-trajectories optimization python3 robot-control robotics trajectory-optimization

opstop_cpp's People

Contributors

rafaelrojasmiliani avatar

Stargazers

 avatar

Watchers

 avatar

opstop_cpp's Issues

Make the code faster

It seems that some time-optimal parametrization algorithms may achieve performances of 3ms.
However up to commit 0d1b933 the time of this optimization is at best less than 35ms (one examples is 18 iterations, Total CPU secs in IPOPT (w/o function evaluations) = 0.027, Total CPU secs in NLP function evaluations = 0.001 and 19 evaluations of the jacobian, gradient). The mean time to compute the acceleration constraints is +3.1255556e-03 ms for the value and +5.7921429e-03 ms for the jacobian which is more or less the 0.8% of 1 millisecond In what task does the NLP invest its time?.

  • set "fast_step_computation" Ipopt options to "yes" this makes the algorithm assumes that the linear system that is solved to obtain the search direction is solved sufficiently well. In that case, no residuals are computed to verify the solution and the computation of the search direction is a little faster. The default value for this string option is "no".

    Possible values: yes, no

  • fix compiler flags to in optstop and gsplines

set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -funroll-loops   -mfpmath=sse  -fopenmp")
# -march=navite produces a segmentation fault (why?)
  • fix the bug on time_cost
void TimeCost::FillJacobianBlock(std::string _var_set, Jacobian &_jac) const {

  _jac.coeffRef(0, 0) = 1;
  _jac.coeffRef(0, 1) = 0.0;
}
  • It seems that ipopt.SetOption("obj_scaling_factor", 0.8); makes the problem faster
  • Test other linear solver to mumps

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.