Skip to content

ITUROBLAB/-Adaptive-Follow-the-Gap-bilalyucel-

Repository files navigation

Camera-Based Mapping and Path Planning

Task

  • The main task of the project is to perform an obstacle avoidance algorithm while the vehicle is going to a given target point and map the places it passes during the trajectory.
  • For simulation purposes, Clearpath Husky Robot and Realsense D435 camera are chosen.

Environment

  • For simplicity Matlab/Simulink, ROS, Gazebo and Rviz tools are going to be used.
  • For coding, Python is preffered.
  • Some open-source packages are imported. (Will be explained in detail later)

Obstacle Avoidance Algorithm

  1. Fail of reaching the goal point when there is an obstacle near to it.

  1. Early consideration of obstacles causes long trajectories.

- To solve these drawbacks, a fuzzy controlled adaptive consideration radius will be tuned based on 2 parameters that are distance to the goal and angle between nearest obstacle. As the vehicle moves to the target, consideration radius gets smaller thus even an obstacle exist near to the goal point, the vehicle will be able to reach it. Also, the algorithm considers the obstacle right in time so the vehicle will move in the hypotenuse resulting a shorter trajectory.

Mapping

  • As mentioned, vehicle would perform mapping as well with camera. There are several methods for mapping however "Octomapping" is chosen for our purposes. It will be used as a open-source package no code would be written for it.

Requirements

How to run

  • Clone this repository to your husky workspace(husky_ws). After you cloned, don't forget to make
  • sudo apt-get install ros-melodic-depthimage-to-laserscan
catkin_make
export HUSKY_URDF_EXTRAS=$HOME/Desktop/realsense.urdf.xacro
  • Spawn Husky Robot
cd husky_ws
source devel/setup.bash
roslaunch husky_gazebo husky_empty_world.launch
  • Launch depthimage_to_laserscan node
roslaunch deptimage_to_laserscan dept_to_laser1.launch
  • Run Octomapping
roslaunch octomap_server octomap_mapping.launch
  • Run myMethod
rosrun scripts myMethod.py
  • Run Rviz
rviz

Results

Failure problem of reaching goal when a near obstacle exist around to target of FGM and FGM-I methods is resolved and overall efficiency is increased. The newly developed A-FGM approach adds a new parameter that is a consideration radius, to the previous methods. Now, the algorithm considers only obstacles within this radius which is tuned by a fuzzy logic controller that takes distance to the goal point and the angle of nearest obstacle as input and produces the consideration radius as output. With this modification, the vehicle can reach the goal point even if there is a near obstacle because the consideration radius gets smaller as the vehicle approaches the target. Also, the approach shortens the trajectory as it continues in the shortest path longer. These improvements are tested on possible cases to prove the algorithm.

Demo

Graduation_Project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published