How To Install octomap on CentOS 8

octomap is Efficient Probabilistic 3D Mapping Framework Based on Octrees

Introduction

In this tutorial we learn how to install octomap on CentOS 8.

What is octomap

The OctoMap library implements a 3D occupancy grid mapping approach, providing data structures and mapping algorithms in C++ particularly suited for robotics. The map implementation is based on an octree.

We can use yum or dnf to install octomap on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install octomap.

Install octomap on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install octomap using dnf by running the following command:

sudo dnf -y install octomap

Install octomap on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install octomap using yum by running the following command:

sudo yum -y install octomap

How To Uninstall octomap on CentOS 8

To uninstall only the octomap package we can use the following command:

sudo dnf remove octomap

octomap Package Contents on CentOS 8

/usr/bin/binvox2bt
/usr/bin/bt2vrml
/usr/bin/compare_octrees
/usr/bin/convert_octree
/usr/bin/edit_octree
/usr/bin/eval_octree_accuracy
/usr/bin/graph2tree
/usr/bin/log2graph
/usr/lib/.build-id
/usr/lib/.build-id/35
/usr/lib/.build-id/35/a83f0ffe3a4fce85d4f7d486c75d8cfdc9ca42
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/5c240ff2c4721d968ef67791cff72589008087
/usr/lib/.build-id/43
/usr/lib/.build-id/43/67debd26a5b344facb4528da55c47b3dc18345
/usr/lib/.build-id/43/da38da245f43ac321c84a8d765aaee82425c20
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/0ac66c4f42a171ca49f1cbb0ec067dbcd0f4da
/usr/lib/.build-id/75
/usr/lib/.build-id/75/a231d0d8be8166d197fce616b8fda4aabf0424
/usr/lib/.build-id/85
/usr/lib/.build-id/85/928d80842ac14b9eafccea60354fd7765097e6
/usr/lib/.build-id/98
/usr/lib/.build-id/98/7d07c4a202299968e0a85e4ad3abc40c1d01d7
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/024e34d9b06f5d5f5534307a29ebe3e329c9f8
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/2453568383a3310b8a855e14baa386888a11c9
/usr/lib/.build-id/d7/ecf8042a80f14b4d1eec4fb8179585ceeab449
/usr/lib64/liboctomap.so.1.9
/usr/lib64/liboctomap.so.1.9.7
/usr/lib64/liboctomath.so.1.9
/usr/lib64/liboctomath.so.1.9.7
/usr/share/ament_index/resource_index/packages/octomap
/usr/share/doc/octomap
/usr/share/doc/octomap/AUTHORS.txt
/usr/share/doc/octomap/CHANGELOG.txt
/usr/share/doc/octomap/README.md
/usr/share/licenses/octomap
/usr/share/licenses/octomap/LICENSE.txt
/usr/share/octomap
/usr/share/octomap/package.xml

References

Summary

In this tutorial we learn how to install octomap on CentOS 8 using yum and dnf.