Skip to content

Aryasmiiti14/IITISoC-22-Auto4-Autopilot-System-Cars

 
 

Repository files navigation

Autopilot system for Tesla cars

Mentors: Yeeshukant Singh, Kshitij Bhat

Members : Aditya Suwalka

Description: While on the highway, the monotonous speed control is a bit tiresome for drivers (especially for long distances and longer durations). Lane Assist and Adaptive Cruise Control (ACC) features can help the drivers in these situations. Depending on the actions of other objects/vehicles in the car's immediate vicinity, these systems can slow down and stop the vehicle when required.

Specifications:

  • Computer Vision Pipeline for Lane detection should be efficient in detecting the free path on the road.
  • Motion planning and control systems are needed to steer the vehicle to have the least cross-track error and automatic lane centering.
  • Bonus points for an active obstacle avoidance system to change lanes and avoid other cars in the lane.

DelyBot

DelyBot

Ready to serve you anytime, anywhere.


About The Project

Built With

(back to top)

Getting Started

Prerequisites

At first it is necessary to install external packages:

  • navigation

    sudo apt install ros-noetic-navigation
  • slam-gmapping

    sudo apt install ros-noetic-slam-gmapping
  • map-server

    sudo apt install ros-noetic-map-server
  • robot_localization

    sudo apt-get install ros-noetic-robot-localization

Installation

  1. First make a catkin workspace
    mkdir -p catkin_ws/src
    
  2. Clone the repo inside the catkin workspace
    cd ~/catkin_ws/src
    git clone https://github.com/git-suwalkaaditya/DelyBot.git
  3. Build packages
    cd ~/catkin_ws
    catkin_make
  4. Before running any roslaunch and rosrun command, run the following command
    source devel/setup.bash

(back to top)

Usage

The possible optional parameter values are listed in the table.

Optional Parameter Values Default
open_rviz true, false true
world empty, delybot_test_map, delybot_test, district_map, district district
dwa_local_planner true, false true

The world parameter can be used to load a specific world map (the .world file must be located in the delybot_description/world/ folder).
To test the different world files in Gazebo it is possible to run the following command:

# Usage example to open district.world in Gazebo
roslaunch gazebo_ros empty_world world_name:=/home/your_username/catkin_ws/src/DelyBot/delybot_description/world/district.world


delybot_description

roslaunch delybot_description display.launch

Open a pre-configured Rviz session to display the robot.

roslaunch delybot_description gazebo.launch open_rviz:=true

Spawn the robot into the gazebo simulation environment. If the open_rviz optional parameter is true a pre-configured Rviz session is also opened.


delybot_control

roslaunch delybot_control ddr_control.launch world:=district

Spawn the robot with a differential drive control and a teleoperation node in gazebo.


delybot_slam

roslaunch delybot_slam delybot_slam.launch world:=district_map

This command can be useful to create a 2d map of a specific world using a gmapping algorithm.


delybot_navigation

roslaunch delybot_navigation delybot_navigation.launch world:=district dwa_local_planner:=true

This command is used for the robot navigation, it's possible to give through Rviz a desired goal pose.
If the dwa_local_planner parameter is true the DWA local planner is used, else if it is false the Trajectory Rollout local planner is used.


waypoint_spawner node

rosrun delybot_navigation waypoint_spawner.py

This command run the waypoint_spawner node, used to send a specific goal pose selected from a predefined list to the robot.
The list is imported from the waypoint.json file inside the delybot_navigation/scripts/ folder.

# Output example
user@user:~$ rosrun delybot_navigation waypoint_spawner.py 

GOAL LIST:
0) Origin
1) Thrift Shop
2) Salon
3) Home
4) Post Office
5) Police
6) School
7) Fast Food

Insert goal index: 

Roadmap

  • 3D robot modeling
  • Add differential drive control
  • Add laser and imu sensors using Kalman filter (pkg: robot_localization)
  • Add world 3D model with static and moving obstacle
  • Add delybot slam using gmapping to create 2D world map
  • Add delybot navigation
  • Add waypoint spawner node
  • Update README

(back to top)

(back to top)

Contact

For further information check the report - DelyBot Report.pdf

Project Link: https://github.com/gmeidk/DelyBot

(back to top)

About

A Level-2 Autopilot System for Cars

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.2%
  • Python 0.8%