Git Product home page Git Product logo

autonomousdriving's Introduction

Autonomous Driving Project (AD17) - Introduction to ROS

Result

Final.Result.mp4

System Requirements

  • Ubuntu 20.04.6 LTS (64-bit)

Tools Installation

Ensure you have the following tools installed on your system:

  1. Basic Tools:
sudo apt install build-essential
sudo apt install git
sudo apt-get install terminator
  1. ROS Installation: Follow these steps to install ROS (Noetic version):
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt install curl
sudo apt update
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo apt install ros-noetic-desktop-full
sudo apt install python3-catkin-tools
  1. Update .bashrc: To ensure ROS is sourced correctly, update the .bashrc file:
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc

Packages Installation

Before proceeding, install the following ROS packages:

sudo apt-get install ros-noetic-nodelet
sudo apt-get install ros-noetic-depth-image-proc
sudo apt-get install ros-noetic-octomap
sudo apt-get install ros-noetic-octovis
sudo apt-get install ros-noetic-octomap-msgs
sudo apt-get install ros-noetic-octomap-rviz-*
sudo apt-get install ros-noetic-octomap-mapping
sudo apt-get install ros-noetic-octomap-server

sudo apt-get install ros-noetic-pcl-ros
sudo apt-get install ros-noetic-pcl-conversions
sudo apt-get install python3-pcl
sudo apt-get install python-opencv

sudo apt install ros-noetic-navigation
sudo apt install ros-noetic-actionlib

Getting Started

Follow these steps to run the autonomous driving project:

  1. Open a new terminal.
  2. Clone the repository.
  3. Build the project.

If any packages are missing, you can use rosdep to install them (be careful, this might causes problem with your current ROS installation):

cd autonomous_driving
sudo apt-get install python3-rosdep
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src -r -y
source /opt/ros/noetic/setup.bash
catkin build
source devel/setup.bash

Before running the system, ensure you have the simulation files ready:

  1. Download the Unity Environment from: Unity Environment Download Link
  2. Unzip the Unity file and copy the contents to .../devel/lib/simulation/
  3. Make the simulation executable:
chmod +x ./devel/lib/simulation/Car_build.x86_64

Run the entire system:

source devel/setup.bash
roslaunch master.launch

Now, you should see both the Unity simulation window and the RViz visualization tool. RViz will open with a pre-configured file that allows you to visualize the entire autonomous driving pipeline.

Code Editor (For Developers)

If you are a developer, you can use VS Code for coding:

  1. Install VS Code:
sudo apt install code
  1. Open the 'autonomous_driving' folder in VS Code.
  2. In VS Code, go to the Extensions sidebar (Ctrl+Shift+X). Search for "ROS" in the search bar and choose the "ROS" extension developed by Microsoft.

autonomousdriving's People

Contributors

kudo510 avatar

Watchers

 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.