Giter Site home page Giter Site logo

nocholasrift / mpc_trajectory_tracking Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 2.0 73 KB

ROS MPC trajectory tracker. Currently only supports diff-drive/skid-steering UGVs.

CMake 7.45% C++ 84.36% Python 8.19%
mpc ros navigation tracking trajectory control ipopt nonlinear

mpc_trajectory_tracking's Introduction

GitHub issues open GitHub forks GitHub stars

Nonlinear Model Predictive Controller

About

This repository contains an MPC Trajectory Tracker based on the mpc_ros library developed by Geonhee-LEE et. al. The MPC itself is written over the IPOPT nonlinear solver and integrated with ROS (Robot Operating System). The model used for trajectory tracking within the MPC is the unicycle model, but there are plans to expand this out to double / triple integrators as well, and even to aerial vehicles. These features will come out when I either need them for a project or when I get the free time to develop them.

Installation

NOTE: Tested in Ubuntu 16.04/18.04/20.04 in ROS Kinetic/Melodic/Noetic.

  1. Install ROS

  2. Install IPOPT. So far only tested on IPOPT version 3.14.4, no guarantees that it works on any other version.

  3. Clone repository into a catkin_ws and compile with either catkin build or catkin_make

    • Note: The following line was added to the CMakeLists.txt in case the user doesn't want to add /usr/local/lib to LD_LIBRARY_PATH:
    link_directories(/usr/local/lib)
    

    If you're IPOPT install is located elsewhere, I'd recommend changing that directory to wherever your IPOPT libraries are if you are having problems linking.

Running

You can run the MPC by launching the following launch file:

roslaunch mpc_trajectory_tracking jackal_mpc_track.launch

All the MPC needs is a reference trajectory, then it will publish a Twist message to the cmd_vel topic.

Note: You can change the default odometry topic via the odomTopic argument in the launch file.

You can send a trajectory to one of two topics:

  1. /reference_trajectory: Will reset the trajectory timer and track the trajectory starting at time=0s.

  2. /reference_trajectory_no_reset: Same as reference_trajectory but will not reset the trajectory timer. This is useful for appending to a trajectory currently being tracked.

Maintenance

I am actively adding features / fixing bugs in this repository. With that said, if you would like to use this repository and are having any troubles, please feel free to submit an issue and I will most likely see it within a few days.

mpc_trajectory_tracking's People

Contributors

nocholasrift avatar

Stargazers

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

Watchers

 avatar  avatar

mpc_trajectory_tracking's Issues

There is a problem with catkin_make

Hello, I installed ipopt and CppAD as required, but I encountered the following problems in the subsequent catkin_make. How should I solve them?
undefined reference to 'CppAD::local::temp_fileabi:cxx11'
gnome-shell-screenshot-C8JSK2
The above is translated using Google. Please forgive me if there are any problems.

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.