Coder Social home page Coder Social logo

keremzaman / hypharos_minicar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hypha-ros/hypharos_minicar

0.0 0.0 0.0 392 KB

1/20 MiniCar: An ackermann based rover for MPC and Pure-Pursuit controller

Home Page: https://hypharosworkshop.wordpress.com/

License: Apache License 2.0

CMake 2.11% Shell 1.28% C++ 69.45% Python 26.12% HTML 1.04%

hypharos_minicar's Introduction

HyphaROS MiniCar (1/20 Scale MPC Racing Car)

alt text

Abstract

Low cost, High speed 1/20 Racing Car for control laws evaluation !
Fully open-sourced (hardware & software), total cost <300USD.
Currently supports: Pure-Pursuit, Model-Predictive-Control (Nonlinear)

alt text

About us

FB Page: https://www.facebook.com/HyphaROS/
Website: https://hypharosworkshop.wordpress.com/
Contact: [email protected]
Developer:

  • HaoChih, LIN

Date: 2018/08/16
License: Apache 2.0

Features

  • Nonlinear Bicycle Model Based MPC (through ipopt solver)
  • Pure-Pursuit Controller
  • Onboard mapping (Gmapping, Hector-SLAM, Karto-SLAM, MRPT-ICP)
  • STM32 for motor speed closed-loop control
  • AMCL localization (encoder-odometry based)
  • Dynamic obstacle avoidance
  • Stage Simulation (supports: MPC & Pure-Pursuit)

Roadmap

  • Add EKF supports (odometry with mpu6050)
  • MPC for obstacle avoidance
  • Implement MPC on different solvers (ACADO, OSQP, etc)
  • Multi-cars racing through ROS 2.0 layer
  • High Speed Drifting

Hardware

Document

HyphaROS MPC MiniCar 1-Day Workshop:
https://drive.google.com/open?id=1yX0aeA4spf_szpxXFpIlH0EQKIgiwJx7
ROS Summer School in China 2018 Slides:
https://goo.gl/RpVBDH

Software

VirtualBox Image

OVA image file (Kinetic, password: hypharos, 20180816)
Link: https://drive.google.com/open?id=1uRvXGakvQrbynmPHX_KIFJxPm8o6MWPb

Odroid Image

Image file for Odroid XU4.(with SD card >=16G, password: hypharos)
Link: https://goo.gl/87vrNk
(if your SD card is around 13GB, it's OK to force Win32DiskImager to write the file!)
The default ethernet IP address is 10.0.0.1

STM32 (MCU)

Source codes: https://drive.google.com/open?id=19rjjpJmz85lTSxCyu-9CtvZhUW37c2LS
[WARNING!]
Since the original STM32 codes came from third-paries,
currently, the quality of codes are not guaranteed by us.
For MCUISP Driver: http://www.mcuisp.com/English%20mcuisp%20web/ruanjianxiazai-english.htm

Install from source (16.04)

  1. Install ROS Kinetic (Desktop-Full) (http://wiki.ros.org/kinetic/Installation/Ubuntu)
  2. Install dependencies:
    $ sudo apt-get install remmina synaptic gimp git ros-kinetic-navigation* ros-kinetic-gmapping ros-kinetic-hector-slam ros-kinetic-mrpt-icp-slam-2d ros-kinetic-slam-karto ros-kinetic-ackermann-msgs -y
  3. Install Ipopt: Please refer the tutorial in "document/ipopt_install".
  4. create your own catkin_ws
    (http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment#Create_a_ROS_Workspace)
    $ cd catkin_ws/src
    $ git clone https://github.com/EAIBOT/ydlidar
    $ git clone https://github.com/Hypha-ROS/hypharos_minicar
    $ cd ..
    $ catkin_make

Operation

Simulation

$ roslaunch hypharos_minicar HyphaROS_Simulation_Stage.launch
The default controller is mpc, you can switch to pure-pursuit or DWA through param: "controller"
alt text

Ethernet Connection

The default static eth IP on Odroid image is 10.0.0.1, hence, to connect to your Odroid through cable, please set your host IP as 10.0.0.X
Notice: for the first bootup, you have to update Odroid MAC address through HDMI Dispaly!

Wifi Connection

Use ethernet or display connection to make Odroid connect to your local Wifi AP. Remember to set ROS_MASTER_URI and ROS_IP in ".bashrc" file on both Odroid & host machine.

Mapping

  • MiniCar (Odroid) side:
    $ roslaunch hypharos_minicar HyphaROS_MiniCar_Mapping.launch
    The default mapping algorithm is gmapping, you can swith to other slam method through param: "slam_type"
    (crrently supports: gmapping, karto_slam, mrpt_icp and hector_slam)

  • Host (Desktop) side:
    $ roslaunch hypharos_minicar HyphaROS_Desktop_Mapping.launch
    Use keyboard to control the minicar.

After mapping, remember to save two maps, one for amcl and the other for move_base!

Racing

  • MiniCar (Odroid) side:
    $ roslaunch hypharos_minicar HyphaROS_MiniCar_Racing.launch
    The default controller is mpc, you can swith to other slam method through param: "controller"
    (crrently supports: mpc and pure_pursuit)

  • Host (Desktop) side:
    $ roslaunch hypharos_minicar HyphaROS_Desktop_Racing.launch
    Use keyboard to interrupt controller's behavior.

hypharos_minicar's People

Contributors

haochihlin avatar jim1993 avatar keremzaman avatar

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.