How To Install liburdfdom-sensor on Ubuntu 18.04

In this tutorial we learn how to install liburdfdom-sensor on Ubuntu 18.04. liburdfdom-sensor is URDF DOM - sensor library

Introduction

In this tutorial we learn how to install liburdfdom-sensor on Ubuntu 18.04.

What is liburdfdom-sensor

liburdfdom-sensor is:

The URDF (U-Robot Description Format) library provides core data structures and a simple XML parsers for populating the class data structures from an URDF file.

This package contains the URDF DOM sensor library.

There are three methods to install liburdfdom-sensor on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install liburdfdom-sensor Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install liburdfdom-sensor using apt-get by running the following command:

sudo apt-get -y install liburdfdom-sensor

Install liburdfdom-sensor Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install liburdfdom-sensor using apt by running the following command:

sudo apt -y install liburdfdom-sensor

Install liburdfdom-sensor Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install liburdfdom-sensor using aptitude by running the following command:

sudo aptitude -y install liburdfdom-sensor

How To Uninstall liburdfdom-sensor on Ubuntu 18.04

To uninstall only the liburdfdom-sensor package we can use the following command:

sudo apt-get remove liburdfdom-sensor

Uninstall liburdfdom-sensor And Its Dependencies

To uninstall liburdfdom-sensor and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove liburdfdom-sensor

Remove liburdfdom-sensor Configurations and Data

To remove liburdfdom-sensor configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge liburdfdom-sensor

Remove liburdfdom-sensor configuration, data, and all of its dependencies

We can use the following command to remove liburdfdom-sensor configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge liburdfdom-sensor

References

Summary

In this tutorial we learn how to install liburdfdom-sensor package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.