Install ROS on an Ubuntu host.
Steps performed are:
- Using role itnok.manage_pkg_ubuntu:
- Make sure build_essentials package is installed
- Add ROS repository key
- Install choosen ROS metapackage & basic tools
- Run
rosdep init
(only if needed) - Update ROS dependencies
None.
Variable | Description | Default Value |
---|---|---|
install_ros_distro |
Short name of the ROS distribution to install | melodic |
install_ros |
Name of the meta to install (ros-base , desktop , desktop-full ) |
ros-base |
To install dependencies use:
$ ansible-galaxy install <dependecy.name>
Installation of the required Ansible Roles can also be simply addressed with:
$ ansible-galaxy install -r requirements.yml
Here an example of how to use this role in your playbooks:
---
- hosts: servers
remote_user: ubuntu # optional (your remote user)
gather_facts: yes # optional
become: yes
roles:
- { role: itnok.install_ros_ubuntu }
vars:
install_ros_distro: "melodic"
install_ros: "desktop-full"
MIT (read more)