Code Monkey home page Code Monkey logo

adas-ros2-gazebo-simulator's Introduction

ADAS_ROS2-OpenCV-Lane-Detection-Auto-Braking-with-LIDAR-Object-Detection-Gazebo-Teleop-Keyboard

ADAS Application with ROS2 using Camera and LIDAR using Gazebo Simulator.

This is an open source project using License Apache 2.0 to understand simple ADAS applications using ROS2 Crystal and Gazebo Simulator.You can drive around the robot in the simulator and have Lane Detection and Auto Brake when object is detected. It uses a Hough Transform algorithm which works only for straight lines. This setup requires:

  1. ROS2 crystal. Install (https://index.ros.org/doc/ros2/Installation/Crystal/Linux-Install-Debians/)
  2. Gazebo 9. Install (http://gazebosim.org/tutorials?tut=install_ubuntu&cat=install)
  3. OpenCV & cv_bridge. Install (https://www.learnopencv.com/install-opencv3-on-ubuntu/)

alt text

Steps to run the demo:

1.Clone the repo:

git clone https://github.com/Viplav04/ADAS_ROS2-OpenCV-Lane-Detection-Auto-Braking-with-LIDAR-Object-Detection-Gazebo-Teleop-Keyboard.git

2.Paste the model folders : my_robot, hokuyo and depth_camera in .gazebo/models folder.

Be careful, these folder have been modified so change the names before pasting as they may over write original folders in models directory.

3.In 1st terminal

Source ROS2 :

source /opt/ros/crystal/setup.bash

Source gazebo:

source /usr/share/gazebo/setup.sh

To run gazebo:

gazebo --verbose myworld.world

4.In 2nd terminal, source ROS2 crystal and To build Lane_detection_node :

source /opt/ros/crystal/setup.bash
cd ~/Lane_detection_node
colcon build
source insall/local_setup.bash

To run lane detection node:

ros2 run lane_assist lane_node

5.In another terminal, source ROS2 crystal: To build laser_obstacle_avoidance :

source /opt/ros/crystal/setup.bash
cd ~/laser_obstacle_avoidance
colcon build

To run obstacle node:

ros2 run laser_obstacle_avoidance obstacle_node

6.In another terminal :

source ROS2 crystal

source /opt/ros/crystal/setup.bash
ros2 run teleop_twist_keyboard teleop_twist_keyboard

Play around!!! alt text1 Please open a issue or write to me for issues. A SLAM node and navigation package can be added easily.

adas-ros2-gazebo-simulator's People

Contributors

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