GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - oselin/vmc_project: Vector Field Histogram (VFH) algorithm implemented in ROS1 and Python3. It has been exploited for achieving Object Avoidance in an autonomous vehicle

BranchesTags
Open more actions menu

Latest commit

 

History

40 Commits
40 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
config
config
 
 
launch
launch
 
 
log
log
 
 
media
media
 
 
msg
msg
 
 
papers
papers
 
 
src
src
 
 
worlds
worlds
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
README.md
README.md
 
 
np
np
 
 
package.xml
package.xml
 
 
rospy
rospy
 
 

Repository files navigation

Vector Field Histogram algorithm implementation

Simple simulation of a turtle bot moving within a maze. Algorithm developed using ROS2 and Python3

Inspired by the paper A Constrained VFH Algorithm for Motion Planning of Autonomous Vehicles

Installation of the ROS package

1 - Move to catkin workspace folder

cd ~/catkin_ws/src/

2 - Clone the repository

git clone [email protected]:oselin/vmc_project.git

3 - Copy the track file into the Gazebo folder

cp -r vmc_project/models ~/.gazebo

3 - Recompile CMakeLists file and source the folder

catkin_make
source ~/.bashrc

Run the program

First of all, launch Gazebo with the chosen track

roslaunch vmc_project project_world.launch

Then, activate the VFH algorithm by running the script

rosrun vmc_project racer.py

If you want to see in real time how data is manipulated, run

rosrun vmc_project plotter.py

or

rosrun vmc_project plotter2.py

Difference between Plotter and Plotter2

The designed node publishes two types of data

  1. velocity commands to the robot
  2. manipulated data, or VF histograms + occupancy map

Since the latter is a very big message (almost 5000 float32 values), to increase the perfomances the following workaround has been designed.

plotter.py: builds the graphs basing on the complex and heavy message

plotter2.py: reads LiDAR values directly from /scan topic and performs the same data manipulation steps as in racer.py. That is to avoid a useless publishing on a custom topic

Known issues in the software

Since this data manipulation is quite complex, the computer cannot keep up with both manipulating data, publishing commands and manging real time plots.

This slows down all the computations, leading to a failure of the algorithm. Workaround: A cool way to see real time plots is to first record the LiDARS values with

rosbag record /scan

And then simulate data publishing, but this time running only the plotter. Therefore

rosbag play <your-recording>

And on a new terminal

rosrun vmc_project plotter2.py

About

Vector Field Histogram (VFH) algorithm implemented in ROS1 and Python3. It has been exploited for achieving Object Avoidance in an autonomous vehicle

Topics

gazeboobject-avoidanceobject-avoiding-robotpython3ros1

Resources

Readme
Activity

Stars

7 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.