Coder Social home page Coder Social logo

snrdevs / f1-autonomous-car Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stevieg47/f1-autonomous-car

0.0 1.0 0.0 4.7 MB

f1-tenth autonomous car simulation in Gazebo

CMake 28.49% C++ 5.97% Python 14.25% SourcePawn 0.06% C 1.30% Makefile 45.47% Shell 0.67% Common Lisp 2.83% JavaScript 0.96%

f1-autonomous-car's Introduction

Overview

Run an f1 tenth car simulation in Gazebo. Uses hector mapping and teb local planner for SLAM. Also uses LiDAR readings to autonomously move through a racetrack

Dependencies

  • ROS
  • teb_local_planner
  • hector_slam
  • ackermann_msgs
  • move_base
  • controller_manager
  • ros_control
  • joint_state_controller
  • effort_contollers
  • position_controllers
  • amcl
  • global_planner

How to Build

git clone https://github.com/StevieG47/f1-autonomous-car

Open a new terminal, in 1st terminal:

cd f1-autonomous-car/catkin_ws
catkin_make
source devel/setup.bash

In 2nd terminal:

cd f1-autonomous-car/teb/catkin_ws
catkin_make
source devel/setup.bash

How to Run

Launch the vehicle in Gazebo and start hector mapping in 1st terminal:

roslaunch f1 f1-Slam.launch

f1gazebo

Start the planner and launch rviz in 2nd terminal:

roslaunch teb_local_planner_tutorials robot_carlike_in_stage.launch

f1rviz

Moving the car

Navigation goals can also be set manually using the 2D Nav Goal feature in rviz. Since it is an ackermann vehicle, it may not be able to navigate to the goal if the only path requires the vehicle to turn in place.

A simple autonomous obstacle avoidance method can also be used by opening a third terminal, navigating to the first catkin_ws, then

catkin_make
source devel/setup.bash
rosrun f1-move lidarmove

This reads from the /scan topic and publishes ackermann_msgs to move the car.

f1-autonomous-car's People

Contributors

stevieg47 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.