-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b9230d
commit 7e0059b
Showing
4 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,53 @@ | ||
# installROSTX | ||
Install Robot Operating System (ROS) on NVIDIA Jetson TX Dev Kits | ||
|
||
These scripts will install Robot Operating System (ROS) on the NVIDIA Jetson TX1 and Jetson TX2 Development Kit. | ||
|
||
Tested on L4T 28.1 (Ubuntu 16.04). L4T 28.1 was installed with JetPack 3.1. | ||
|
||
The script is based on the Ubuntu ARM install of ROS Kinetic: http://wiki.ros.org/kinetic/Installation/UbuntuARM | ||
|
||
Maintainer of ARM builds for ROS is http://answers.ros.org/users/1034/ahendrix/ | ||
|
||
<strong>updateRepositories.sh</strong> | ||
This is an optional step. Adds the repositories universe, multiverse, and restricted and then apt-get update. These repositories are in the standard 28.1 install, so probably not needed. | ||
|
||
<strong>installROS.sh</strong> | ||
Adds the ROS sources list, sets the keys and then loads ros-kinetic-ros-base. Edit this file to add other ROS packages for your installation. After loading, rosdep is initialized. | ||
|
||
<strong>setupCatkinWorkspace.sh</strong> | ||
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. | ||
|
||
## Release Notes | ||
November 2017 | ||
* L4T 28.1 | ||
|
||
|
||
## License | ||
MIT License | ||
|
||
Copyright (c) 2017 Jetsonhacks | ||
Copyright (c) 2017 Kangalow LLC | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
# Install Robot Operating System (ROS) on NVIDIA Jetson TX2 | ||
# Maintainer of ARM builds for ROS is http://answers.ros.org/users/1034/ahendrix/ | ||
# Information from: | ||
# http://wiki.ros.org/kinetic/Installation/UbuntuARM | ||
|
||
# Setup sources.lst | ||
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | ||
# Setup keys | ||
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116 | ||
# Installation | ||
sudo apt-get update | ||
sudo apt-get install ros-kinetic-ros-base -y | ||
# Add Individual Packages here | ||
# You can install a specific ROS package (replace underscores with dashes of the package name): | ||
# sudo apt-get install ros-kinetic-PACKAGE | ||
# e.g. | ||
# sudo apt-get install ros-kinetic-navigation | ||
# | ||
# To find available packages: | ||
# apt-cache search ros-kinetic | ||
# | ||
# Initialize rosdep | ||
sudo apt-get install python-rosdep -y | ||
# Certificates are messed up on the Jetson for some reason | ||
sudo c_rehash /etc/ssl/certs | ||
# Initialize rosdep | ||
sudo rosdep init | ||
# To find available packages, use: | ||
rosdep update | ||
# Environment Setup - Don't add /opt/ros/kinetic/setup.bash if it's already in bashrc | ||
grep -q -F 'source /opt/ros/kinetic/setup.bash' ~/.bashrc || echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrcsource ~/.bashrc | ||
# Install rosinstall | ||
sudo apt-get install python-rosinstall -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
# Create a Catkin Workspace and setup ROS environment variables | ||
# Usage setupCatkinWorkspace.sh dirName | ||
|
||
source /opt/ros/kinetic/setup.bash | ||
DEFAULTDIR=~/catkin_ws | ||
CLDIR="$1" | ||
if [ ! -z "$CLDIR" ]; then | ||
DEFAULTDIR=~/"$CLDIR" | ||
fi | ||
if [ -e "$DEFAULTDIR" ] ; then | ||
echo "$DEFAULTDIR already exists; no action taken" | ||
exit 1 | ||
else | ||
echo "Creating Catkin Workspace: $DEFAULTDIR" | ||
fi | ||
echo "$DEFAULTDIR"/src | ||
mkdir -p "$DEFAULTDIR"/src | ||
cd "$DEFAULTDIR"/src | ||
catkin_init_workspace | ||
cd "$DEFAULTDIR" | ||
catkin_make | ||
|
||
|
||
#setup ROS environment variables | ||
grep -q -F ' ROS_MASTER_URI' ~/.bashrc || echo 'export ROS_MASTER_URI=http://localhost:11311' | tee -a ~/.bashrc | ||
grep -q -F ' ROS_IP' ~/.bashrc || echo "export ROS_IP=$(hostname -I)" | tee -a ~/.bashrc | ||
echo "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" >> ~/.bashrc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
# Update the needed repositories for the ROS on the Jetson | ||
# Configure repositories | ||
sudo apt-add-repository universe | ||
sudo apt-add-repository multiverse | ||
sudo apt-add-repository restricted | ||
sudo apt-get update | ||
|