Giter VIP home page Giter VIP logo

trajectoryplanner's Introduction

Trajectory planner

trajectory_planner example This planner is able to calculate movement trajectory on ros::OccupancyGrid for robot, using set of allowed moves for it. Given map, start and goal positions and possible movements, planner will try to find the way from start to goal positions, using one of available algorithms (A* and BFS implemented while now).

Features

2D planning

Planning works on 2D occupancy grid, which you can get from Rtabmap, hector_mapping or gmapping SLAM algorithms. OccupancyGrid is just 2D array, where each cell represent small area of real world and can be in one of three states: occupied, free, unknown. Using ros::OccupancyGrid is a good way for small wheel platforms or walking robots.

rospy based

This package based on ROS.
Due to Python 2 as main language you don't need to compile package.
Just move it into catkin workspace and run planning on predefined map: roslaunch trajectory_planner_py static_planning.launch

Description

How planning works

Basic idea of planner - search in state space, where State is a vector which represents position and orientation of a robot. Robot is a rectangular primitive with specified width and height. Robot also has some movements, which it can do. Each movement is a vector (length, dtheta), which can represent movements such as rotation and moving forward/backward. When we apply movement to one of available states (for example start state), we can get new state with different position and rotation.

apply_movement

Of course, on the way of this movement must not be any obstacles. This is how we can get new state. It can be done by verifying substates when "simulating" yet another move. simulate_move

So to start planning we should have map, start and goal positions, robot parameters and set of available moves for it. Then we can get huge tree of states by applying moves to start state and then to new states and etc.

Now we need algorithm to effectively find state, which is the nearest to goal state. Current implementation of A* is not brilliant, but seems to be easy to understand.

I got an idea of how to implement A* using this nice publication.

Architecture of this package is quite easy, so don't be scared to change something in source code ;)

ROS API

Subscribed topics

Published topics

Disclaimer

This package is in development now. So be careful when using it. Some important things, like time limitation of path finding were not implemented yet.

trajectoryplanner's People

Contributors

letsplaynow avatar

Watchers

James Cloos 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.