Giter VIP home page Giter VIP logo

eagle-mpc's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eagle-mpc's Issues

Change in the YAML files path

Currently, you need to set absolute paths in the YAML files. This is a bad approach since every time the repo is downloaded, the user must set the absolute paths of all the existing YAML files.

Proposed approach:

  • Set a default path for YAML files (installed via include)
  • In the YAML file:
    • A single name indicates this file is located in the default location
    • Otherwise, it will be considered as an abosulte path

Parameters taken from YAML in ocp_based controllers

Right now all gains associated to the optimal control problem of any controller based on the ocp-base class are hardcoded. Thus, after any change we need to recompile, and it takes too long due to template based Crocoddyl lib.

This parameters should be read from a yaml file.

move yaml parser

Yaml parser folder should be added as a submodule. Therefore, a separate repo should be created for yaml_parser.

Compile flag to choose the level of LOG messages

The current LOG messages inside the code are too wordy that are useless when running the code.

There should be different log levels.

Also, if logging has to be done properly, we should consider using external tools such as Boost logger or spdlog.

Remove callbackVerbose() from being the default option

The callbackVerbose() is not useful when use it, e.g., in the MPC case since it forbids you to see other terminal messages. Instead, some safety checks should be added to warn about possible bas solutions (e.g. bad stopping value, max iterationts reached, etc.)

PiceWise controller hovering

Now, the hovering is not handled well in the picwise controller. When hovering, all nodes should have terminal weights

Internal gains

Ability to use internal gains with any mpc controller. This should be probably handled by MpcMain

Remove std::size_t where is not needed

Variables of std::size_t are used as a substitute for uint. It should only be used where it specifies a dimension and use, e.g. uint64_t instead for all other uses.

Mission YAML: use time instead of number of nodes

If different dt are considered accross experiments, the definition of the mission in the YAML file has to change. To avoid this, we should use the time interval between waypoints instead of nodes. Nodes should be calculated when filling the mission in the problem.

Python bindings

Python bindings:

  • WayPoint
  • McBaseParams
  • Mission
  • TrajecotryGeneration

Run tests without the need to install

Right now, if new objects and methods are added to the API along with the corresponding unittest, you need to install the library to so the test can be ran.

LowLevelMPC implementation

Instead of stating a state reference trajectory for every node, follow the same philosophy as with the trajectory generator.

Option to specify trajectory solving parameters in the YAML file

The idea behind a trajectory is that it only contains the information related to the trajectory itself but has nothing to do with how this is solved. The information of the trajectory is specified in the YAML file.

This is why when creating the problem we have to pass the parameters related to solving the problem (time step, integrator method, and boolean indicating whether the solver we want to use is squashed based).

There might be cases where we might only want to work via YAML files. Thus, it might be useful to have the possibility to specify the solving parameters in the YAML file too.

Solution proposed:

  • If the YAML file DOES contain the solving parameters, fill a struct inside Trajectory with these parameters. Then overload the createProblem() method with no arguments. This method will take the solving parameters from the struct.
  • If the YAML file DOES NOT contain the solving parameters, throw an error if the createProblem() method is called, since the solving parameters structure will be empty.

Remodel the MPC Main and the controllers

Instead of having the mpc main with a trajectoryGenerator and the controller, this issue aim is to add the trajectory generator as a part of the controller. Therefore, the MPCMain will only have one controller.

Implement first approach of mpc_main

This is the problem that we should solve for the first approach of the mpc_main class working with both controllers (low_level_controller and trajectory geneerator):

  • Trajectory generator: solve an ocp for a given mission when constructing the mpc_main class
  • The state trajectory output by the trajectory generator will be fed in the low_level_controller
  • Mission in the traj. generator has to end with a hover state, since when the low_level_controller runs out of reference state, hover states will be added at the end.

There seems to be a file named ‘path.h’ missing in branch "v0.0.1fbtlnpmc_uam"

I was fascinated by your excellent work on UAM control ('Full-Body Torque-Level Nonlinear Model Predictive Control for Aerial Manipulation') and wanted to reproduce your open-source code.

According to the instructions you provided here, I have installed all the dependencies and then encountered a fatal error during the ROS compilation process, which suggested that a key file named "path.h" was missing from the specified folder.

The compilation process is shown in the following figure.

image

Looking forward to your reply, thank you very much!

Move to std::shared_ptr

Due to its close dependency on Crocoddyl, the library started using boost smart pointers.

Since the minimum required C++ version for Eagle-MPC is C++11, these could be moved to std and only use the boost library when strictly necessary.

YAML files separated by robot

Right now we have the following YAML folder structure:

YAML folder:

  • mpc (mpc controller tunnings for eahc kind of robot)
    • robot1_mpc1.yaml
    • robot1_mpc2.yaml
    • robot2_mpc1.yaml
  • multicopter (platform parameters)
    • robot1.yaml
    • robot2.yaml
  • trajectories
    - robot1_trajectory1.yaml
    - robot1_trajectory2.yaml
    - robot2_trajectory1.yaml

Since all yaml file names contain the robot name, we could simplify this by doing:

YAML folder:

  • robot 1:
    • mpc
      • mpc1.yaml
      • mpc2.yaml
    • platform
      • platform.yaml
    • trajectories
      • trajectory1.yaml
      • trajectory2.yaml
  • robot 2:
    • mpc
      • mpc1.yaml
    • platform
      • platform.yaml
    • trajectories
      • trajectory1.yaml

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.