Skip to content

edoardopieropan/ros_homework3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ros_homework3
Third Homework - Laboratorio Ciberfisico UniVR

The exercise is the following http://profs.scienze.univr.it/~bloisi/corsi/homework/homework-3.pdf (Italian)

laboratorio ciberfisico

Getting Started

Prerequisites

You need ROS Kinetic installed and working
Create a new folder

mkdir git && cd git

Download and install Pangolin with

git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build .
cd ..

Try it

Clone and setup my repository

git clone https://github.com/edoardopieropan/ros_homework3.git
cd ORB_SLAM2
./build.sh
./build_ros.sh

You can now download the V1_01_easy.bag
Now run bash run.sh,three terminals will pop up. In a few seconds you will see a window waiting for an input. Select the bag terminal that is in pause and press SPACEBAR. Now the preovious cited window will make a pointcloud of the bag video.
This modified vestion of ORB_SLAM2 let you automatically save the pointcloud in a .pcd format at the end of the execution of the bag.
You can now see the pointcloud:

pcl_viewer pointcloud.pcd

A guide how i did is can be found at https://medium.com/@j.zijlmans/orb-slam-2052515bd84c

Screenshots

Video of the pointcloud in 3D:
ShortVideo

Some screeshots:
screenshot3
screenshot4

Euclidean Cluster Extraction

Run bash build_cluster.sh then by ./cluster_extraction pointcloud.pcd [value] you can see new files .pcd that are the Euclidean Cluster Extraction of the pointcloud.

Example: ./cluster_extraction pointcloud.pcd 0.28

To see those files run

pcl_viewer cloud_cluster_0.pcd cloud_cluster_1.pcd cloud_cluster_2.pcd cloud_cluster_3.pcd cloud_cluster_4.pcd

Follow this guide: http://www.pointclouds.org/documentation/tutorials/cluster_extraction.php

Screenshots

With value 0.28
screenshot1
With value 0.30
screenshot2

License

Before use it I invite you to read the LICENSE
This file is distributed under the terms of the GNU Lesser General Public License (Lesser GPL)
Visit http://www.gnu.org/licenses/

References

Laboratorio Ciberfisico
Robot Programming with ROS
A.Y. 2017/2018
University of Verona (Italy)

Repository Author:
Edoardo Pieropan

About

Third Homework - Laboratorio Ciberfisico

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages