Quantcast
Channel: JetsonHacks
Viewing all articles
Browse latest Browse all 339

Robot Operating System (ROS) on NVIDIA Jetson TX Development Kits

$
0
0

With the advent of L4T 28.2, we freshened up the ROS installers for the Jetson TX1 and Jetson TX2. Looky here:

Background

In a previous article, Robot Operating System (ROS) on NVIDIA Jetson TX2, we discuss the history of ROS and why it has become the most popular operating system for robots in the world.

The L4T 28.2 release now allows us to use the same code base for the Jetson TX1 as the Jetson TX2 for the installer. Due to the legacy nature of this project, we still maintain two repositories. There are two repositories on the JetsonHacks account on Github. The first is installROSTX2 which is for the Jetson TX2. The second is installROSTX1 which is for the Jetson TX1.

Installation

The main script, installROS.sh, is a straightforward implementation of the install instructions taken from the ROS Wiki. The instructions install ROS Kinetic on the Jetson.

The installation for both Jetsons are similar. On the Jetson TX2:

You can grab the repository:

$ git clone https://github.com/jetsonhacks/installROSTX2.git
$ cd installROSTX2

on the Jetson TX1:

$ git clone https://github.com/jetsonhacks/installROSTX1.git
$ cd installROSTX1

installROS.sh

Usage: ./installROS.sh  [[-p package] | [-h]]
 -p | --package <packagename>  ROS package to install
                               Multiple Usage allowed
                               The first package should be a base package. One of the following:
                                 ros-kinetic-ros-base
                                 ros-kinetic-desktop
                                 ros-kinetic-desktop-full
 

Default is ros-kinetic-ros-base if no packages are specified.

Example Usage:

$ ./installROS.sh -p ros-kinetic-desktop -p ros-kinetic-rgbd-launch

This script installs a baseline ROS environment. There are several tasks:

  • Enable repositories universe, multiverse, and restricted
  • Adds the ROS sources list
  • Sets the needed keys
  • Loads specified ROS packages (defaults to ros-kinetic-base-ros if none specified)
  • Initializes rosdep

You can edit this file to add the ROS packages for your application.

setupCatkinWorkspace.sh

Usage:

$ ./setupCatkinWorkspace.sh [optionalWorkspaceName]

where optionalWorkspaceName is the name of the workspace to be used. The default workspace name is catkin_ws. This script also sets up some ROS environment variables. Refer to the script for details.

Notes

  • In the video, the Jetson TX2 was flashed with L4T 28.2 using JetPack 3.2. L4T 28.2 is derived from Ubuntu 16.04.

The post Robot Operating System (ROS) on NVIDIA Jetson TX Development Kits appeared first on JetsonHacks.


Viewing all articles
Browse latest Browse all 339

Trending Articles