GithubHelp home page GithubHelp logo

winstxnhdw / autocarros2 Goto Github PK

View Code? Open in Web Editor NEW
135.0 5.0 36.0 83.58 MB

A virtual simulation platform for autonomous vehicle sensing, mapping, control and behaviour methods using ROS 2 and Gazebo.

CMake 13.13% Python 69.62% Shell 2.65% C++ 14.61%
ros2 gazebo path-planning path-tracking occupancy-grid-map stanley-controller ackermann-vehicle bayesian raytracing rclcpp

autocarros2's Introduction

AUTONOMOUS VEHICLE: CONTROL AND BEHAVIOUR

AutoCarROS has migrated to ROS 2 Foxy Fitzroy

Abstract

This project contains the ROS 2 variant of the AutoCarROS repository. It is a template for the development of a robust non-holonomic autonomous vehicle platform in a simulated environment using ROS 2 and Gazebo 11.

The following GIF demonstrates a simulation built on top of AutoCarROS 2.

Installation

Create a workspace

$ mkdir -p PATH/TO/WORKSPACE/src
$ cd src

Clone the repository.

$ git clone https://github.com/winstxnhdw/AutoCarROS2.git
$ cd PATH/TO/WORKSPACE/src/AutoCarROS2

Install ROS 2 and the required dependencies.

sh ros-foxy-desktop-full-install.sh

If you only need to install the required dependencies, run the following. Otherwise, skip this step.

sh requirements.sh

Build the packages.

$ cd PATH/TO/WORKSPACE/
$ colcon build

Append the workspace to .bashrc.

$ echo "source PATH/TO/WORKSPACE/install/setup.bash" >> ~/.bashrc
$ source ~/.bashrc

Usage

When using this project for the first time, it is necessary that the user builds the packages before attempting to run the launch files.

# Change directory to your desired workspace
cd PATH/TO/WORKSPACE/

# Build packages
$ colcon build

There are two launch files the user can use. More details in the Launch Files section.

# Launch the default launch file
$ ros2 launch launches default_launch.py

# OR

# Launch the interactive launch file
$ ros2 launch launches click_launch.py

Launch Files

Launch File Purpose
default_launch.py Complete pipeline with preset waypoints
click_launch.py Interactive pipeline for testing and fun

Packages

Package Purpose
launches Contains the main launch files for quick launching
autocar_description Contains the model's URDF and RViz configuration files
autocar_gazebo Contains the world files and model's SDF
autocar_map Contains the Bayesian Occupancy Filter stack
autocar_msgs Contains all custom messages used throughout every package
autocar_nav Contains the navigation stack

Troubleshoot

There are occasions where colcon build does not properly rebuild the 'build' and 'install' folders, especially when one has made changes to the CMakeLists.txt. In the following, a simple quick fix can be performed.

# Remove build and install files
$ cd PATH/TO/WORKSPACE/
$ rm -rf build install

Renders

"Because the layman doesn't care unless it looks cool."

autocarros2's People

Contributors

reuben-thomas avatar winstxnhdw avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

autocarros2's Issues

Build error please help

Hi,

_/_ Thanks a lot for the project. I am getting errors at the start of the colcon build. I am using Ubuntu 22 and ROS2 Humble.

I have attached the screenshots, will you please tell me what I should do? I installed all the dependencies and followed your instructions.

colconerrors1
colconerrors2

Is description missing launch & config?

Hi, I followed your instructions but colcon build errored in ngeeann_av_description because it is missing a launch directory (and files?) and config directory (and files).

If I add blank directories then the build proceeds but both launches get stuck loading rviz.

gazebo won't launch

Sorry for the dumb question, but gazebo won't start in click_launch.py, and there's no obstacles in rviz with default_launch.py. Any tips for running the simulation?

Is the code you used to generate the gif on README part of the repo?

Many thanks for this great work! It's given me a good idea on what I am trying to accomplish.

I am wondering if I have a problem in my setup or if you used a different repo to generate the gif in README.

When I launch the default_launch, the vehicle does move, however there are no obstacles visible in rviz, just the ground plane, and a gray area that represent the sensor zone.

image

There are no errors in the console, so I am curious if you've used a different simulation to generate that gif?

Build error again please help!

Hi there again,

/ Thanks a lot for the project. I am getting errors at the start of the colcon build. This time I am using ROS2 Foxy with Ubuntu 20 as you instructed.

I have attached the screenshots, will you please tell me what I should do? I installed all the dependencies and followed your instructions.

colconErrorAutocar3
colconErrorAutocar2
colconErrorAutocar

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.