Git Product home page Git Product logo

hybrid_astar_with_ackermann's Introduction

Hybrid_Astar_with_Ackermann

This project is my implementation of a navigation package, including the Hybrid A* planner and pure pursuit and LQR controller.

It also has a basic simulator for an Ackermann robot (using the bicycle model). This simulator has only the calculation parts. The visualization happens in RVIZ.

My implementation of Hybrid A* has the incremental searching and Reeds-Shepp curve searching. This generates acceptable results but it certainly can be improved more:

  • avoid some very short path segments that are too hard to steer
  • add additional cost for the paths closer to obstacles

Every code in this project was developed by myself using standard C++ and ROS tools.

History

This branch hawa_ros2 is the continued work of branch main.

I moved from ros1 to ros2, and finished some items in the to-do list:

  • path validator for dynamic obstacles.
  • Linear quadratic regulator controller, that controls the speed and steering fo the robot.
  • re-organize the files in the project for better simplicity.
  • gether all tunable parameters into one Json file to make it easy to tune.

Environment

It was developed and tested on ROS Humble on Ubuntu 22, on both x86 and RaspberryPi 4.

As shown in the last demo below, it was tested on a mini-ackermann robot platform, made of

  • a RaspberryPi 4,
  • a DC motor controller board,
  • a LeiShen lsn10 2D lidar
  • 2 DC motor for rear wheels
  • a servo motor control the steering wheels

compile:

colcon build

Demo in simulation:

The target pose is selected in RVIZ, using the 2D Nav Goal button.

The whole path is rendered in red color.

The green part is the current segment that the robot is following at the moment.

The big red dot (in front of the robot) on the path is the target point selected by the pure-pursuit controller.


GIF: Case 1: Wavy path gif 1


GIF: Case 2: narrow path gif 2


GIF: Case 3: path around obstacle gif 3


Demo on mini-ackermann robot:

This is a test running indoor.

For the controller, I was using LQR.

The SLAM module was GMapping.

Note the RVIZ window was very slow and laggy because the WiFi signal was terribly bad in that room.

The RVIZ process was running on a laptop, while everything else is running on robot's Raspberrypi 4.

The processes on robot was running smoothly. After the target pose is set (the big green arrow at the begining), the path is instantly found (the red curve), but it is not shown in the RVIZ until the last few seconds.

gif 5

the package: map_fusion

Just to quickly explain what does the this package do:

It receives the occupancy grid provided by the SLAM module, then add inflation into it. And publish the result so the path planner can plan the path with considering sufficient clearance from the obstacles.

pic 1

TODO:

  • Finish refactoring the remaining parts in the reeds shepp curves code. (Currently, only CSC and CCC types are used)
  • Improving the scoring method in RS curves so that it will prioritize the curves with fewer reversing motions. The current solution only considers the total length.
  • Add feature: while searching for the path, hold multiple valid paths before terminating, so that it can have several options to choose from.

hybrid_astar_with_ackermann's People

Contributors

hanmmmmm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

hybrid_astar_with_ackermann's Issues

demo_videos_

20231119-2151.mp4
20231119-2148.mp4
20231119-2149.mp4
20231119-2153.mp4

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.