Git Product home page Git Product logo

installros2's Introduction

installROS2

Scripts to install ROS2 (foxy) on the NVIDIA Jetson Development Kits

This is a simple script to install ROS2 on the NVIDIA Jetson Development Kits.

In order to run the script:

$ ./installROS2

The script roughly follows the 'Install ROS From Source' procedures from:

https://index.ros.org/doc/ros2/Installation/Foxy/Linux-Development-Setup/

Much of the code is taken from the dusty-nv Github repository jetson-containers. The dusty-nv jetson-containers should be used to create a Docker container for the ROS2 on the Jetson. For more information:

Dockerfile.ros.foxy https://github.com/dusty-nv/jetson-containers

Notes

Currently the NVIDIA Jetsons run Ubuntu 18.04. ROS2 foxy requires Ubuntu 20.04. However, by providing some of the 20.04 equivalents, it is possible to run ROS2 foxy on the Jetsons. This script provides workarounds. Note that this is not exhaustive, you may run into situations where there are gaps, and certain packages may have issues.


The file ~/.bashrc is modified using this script; You will want to make sure that the modifications match your expectations. For example, you may have a preference for having the install/setup.bash in another place (i.e. /root/.bashrc).

Release Notes

January, 2021

  • Tested on JetPack 4.5, L4T 32.5
  • Tested on Jetson Xavier NX

installros2's People

Contributors

alexmillane avatar jetsonhacks avatar jwhitleywork avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

installros2's Issues

Fatal error

Hi there. During the installation i got some errors. Can you please help me?
image
image

Unable to build rosidl_generarator_py package.

Hi,

I am using a Jetson Xavier NX board. Here's the relevant info:

NVIDIA Jetson Xavier NX (Developer Kit Version)
L4T 32.6.1 [ JetPack 4.6 ]
Ubuntu 18.04.5 LTS
Kernel Version: 4.9.253-tegra
CUDA NOT_INSTALLED
CUDA Architecture: 7.2
OpenCV version: 4.1.1
OpenCV Cuda: NO
CUDNN: NOT_INSTALLED
TensorRT: NOT_INSTALLED
Vision Works: NOT_INSTALLED
VPI: NOT_INSTALLED
Vulcan: 1.2.70

When I run the script, I get the following error:

--- stderr: rosidl_generator_py
Illegal instruction (core dumped)
make[2]: *** [rosidl_generator_py/rosidl_generator_py/_rosidl_generator_py_s.ep.rosidl_typesupport_fastrtps_c.c] Error 132
make[1]: *** [rosidl_generator_py_custom__py/CMakeFiles/rosidl_generator_py_custom__py.dir/all] Error 2
make: *** [all] Error 2


Failed <<< rosidl_generator_py [3.82s, exited with code 2]

Summary: 111 packages finished [1min 8s]
1 package failed: rosidl_generator_py
1 package had stderr output: rosidl_generator_py
88 packages not processed

I've gotten this error when I am building from source as well. Any idea how to fix it?

Installing Ros2

Hi! I'm trying to install ROS foxy on Jetson Xavier. Do You have some results? Can You provide me?
Thanks!

Rviz Failing for builds in other chips

Hello, I noticed some members of your community trying to use it on other AMD boards.

The linux development installation provides a package list. We fail often on the build of rviz. It seems to be omitted form your minimal build. even though it is included in the documentation of ROS2. It is not clear where in the .sh install file you query the information so I couldn't delete it from the yaml file myself.

Can you please either
A. Include RVIZ again on the git pull.
B. Delete the other packages from the guild that depend on RVIZ.

Thank you very much!!

Colcon build issue

When building any C++ package I am presented with the following error:

CMake Error at CMakeLists.txt:10 (find_package):
  By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "ament_cmake", but CMake did not find one.

  Could not find a package configuration file provided by "ament_cmake" with
  any of the following names:

    ament_cmakeConfig.cmake
    ament_cmake-config.cmake

  Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
  "ament_cmake_DIR" to a directory containing one of the above files.  If
  "ament_cmake" provides a separate development package or SDK, be sure it
  has been installed.

I have sourced the .bashrc file and made some progress in fixing the error by appending CMAKE_PREFIX_PATH with the ROS2 installation path in the CMakeLists.txt, however this has only caused further colcon build environment errors.

When running the ROS2 installation script I get

Summary: 200 packages finished [3min 42s]
  2 packages had stderr output: demo_nodes_py launch_testing_ros

Any suggestions on how I could fix this problem?

Note: I am trying to install ROS2 on the Jetson AGX Xavier

Generating Python code for ROS interfaces Illegal instruction (core dumped)

Hi,
I got this error when building for Xavier.
Could you please help.

Thank you.

[ 1%] Built target rosidl_generator_py_custom__cpp
[ 16%] Built target rosidl_generator_py_custom__rosidl_generator_c
[ 31%] Built target rosidl_generator_py_custom__rosidl_typesupport_fastrtps_cpp
[ 47%] Built target rosidl_generator_py_custom__rosidl_typesupport_introspection_c
[ 62%] Built target rosidl_generator_py_custom__rosidl_typesupport_c
[ 78%] Built target rosidl_generator_py_custom__rosidl_typesupport_fastrtps_c
[ 78%] Built target rosidl_generator_py_custom
[ 79%] Generating Python code for ROS interfaces
Illegal instruction (core dumped)
make[2]: *** [rosidl_generator_py/rosidl_generator_py/_rosidl_generator_py_s.ep.rosidl_typesupport_fastrtps_c.c] Error 132
rosidl_generator_py_custom__py/CMakeFiles/rosidl_generator_py_custom__py.dir/build.make:111: recipe for target 'rosidl_generator_py/rosidl_generator_py/_rosidl_generator_py_s.ep.rosidl_typesupport_fastrtps_c.c' failed
CMakeFiles/Makefile2:576: recipe for target .'rosidl_generator_py_custom__py/CMakeFiles/rosidl_generator_py_custom__py.dir/all' failed
make[1]: *** [rosidl_generator_py_custom__py/CMakeFiles/rosidl_generator_py_custom__py.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Installation paths

Hi,
Is it possible to make this install to /opt/ros/foxy instead of /opt/ros/foxy/install/, so it mimics desktop Intel-based ROS deb package paths? A lot of scripts break if they cannot find /opt/ros/<distro>/setup.bash. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.