Code Monkey home page Code Monkey logo

scpp's Introduction

This library implements various optimal control algorithms that are particularly suited for aerospace applications.

Guidance and Control Algorithms

  • Efficient Successive Convexification, a real-time guidance algorithm for optimal trajectory planning of constrained dynamical systems
  • Generic linear receding-horizon SOCP MPC algorithm
  • Linear Quadratic Regulator

Features

  • JIT derivative code generation with CppAD/CppADCodegen
  • Intuitive interface to implement custom models
  • Rapid iteration with parameters files

Current Models

  • 2D Rocket Model
  • Rocket Landing Model with Quaternion
  • Rocket Landing Model with Euler Angles

Dependencies

  • C++17
  • Eigen
  • Boost (odeint and ptree)
  • fmt (included as submodule)
  • CppAD/CppADCodegen (included as submodule)
  • Epigraph (included as submodule)

Instructions

Install

git clone --recurse-submodules https://github.com/EmbersArc/SCpp.git
cd SCpp
mkdir build
cd build
cmake ..
make

Run

Available executables are:

  • LQR_sim to simulate a trajectory with the classic MPC controller

  • MPC_sim to simulate a trajectory with the classic MPC controller

  • SC_oneshot to calculate one trajectory with Successive Convexification

  • SC_sim to simulate a trajectory with Successive Convexification

Calculated trajectories are written to the output/<modelname> directory.

Create a Custom Model

See existing models in the socp_models folder for some examples.

Papers

Examples

(click on videos for higher quality versions)

Rocket Trajectory Model with Free-Final-Time

SpaceX Starship Landing Trajectory

2D Rocket Landing Problem

feed-forward input tested in a box2d physics simulation

Cartpole

Contributing

I'm looking forward to contributions, both problem formulations and improvements to the core library.

scpp's People

Contributors

embersarc avatar janismac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scpp's Issues

CMake error

`CMake Error at CMakeLists.txt:9 (find_package):
Could not find a package configuration file provided by "Eigen3" with any
of the following names:

Eigen3Config.cmake
eigen3-config.cmake

Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set
"Eigen3_DIR" to a directory containing one of the above files. If "Eigen3"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!
See also "D:/SCpp/build/CMakeFiles/CMakeOutput.log".`

Hello, I tried to test the project, but when I run the command : cmake .. , I have this error, and I don't know how to patch it. If you can help me, it would be nice !

ecos solver setup null

hi,I had already installed ksp and krpc.
but when I run the code,I met another problem.I cannot run the scpp program.
I debug the program ,find that ecos_setup receive a NULL return value.
Do you know what happed?
I'm interested to this project.If there are something I can do,I'd glad to help.

Successive convexification for nonlinear MPC?

Hi,

Awesome work, are there any plans to add Successive convexification for Nonlinear MPC instead of directly solving the convex problem(linearised dynamics) with SOCP?

Thanks,
Divya Tiwari

tutorial

Good Evening,

I was wondering if you have a more detailed tutorial. For example, the operating system that you are using and the dependency versions. I have installed all the dependencies and I am only getting warnings with cmake. When I try to use make, I get the error, make: *** No targets specified and no makefile found. Stop.

Any advice is greatly appreciated.

Thanks,

Curtis

run simulation on KSP

hello,when I looked at your code,I find the code mainKsp.cpp used krpc to interact with KSP.
I'd like to simulation the code on KSP,too.
Can you give me a description of how to run KSP and how to setup the rocket and environment?

How is the SpaceX rocket rendered

I found the demo of the rocket landing really amazing. How did you do that? Could you please write some instructions/tutorials on how I could get it running on my computer? Thanks so much!

add some example

Hi, Sven.
Could you add some example ,such as differential drive robot example ,just like your SCvx project ?

Hope for replies, thanks.

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.