Coder Social home page Coder Social logo

triorb-inc / l4t-ros2-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atinfinity/l4t-ros2-docker

0.0 0.0 0.0 272 KB

This is a Dockerfile to make ROS 2 environment(Ubuntu 22.04) on Jetson device.

License: Apache License 2.0

Dockerfile 100.00%

l4t-ros2-docker's Introduction

l4t-ros2-docker

Introduction

This is a Dockerfile to make ROS 2 environment(Ubuntu 22.04) on Jetson device.
This Dockerfile is based on nvidia/container-images/l4t-base.

Requirements

  • Docker
  • nvidia-docker2

Build docker image

cd humble
docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t l4t-ros2:humble .

Launch docker container

xhost +
docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix l4t-ros2:humble bash

Reference

Appendix

I tested on Jetson Orin NX 16GB.

demo_nodes_cpp

$ ros2 run demo_nodes_cpp talker
[INFO] [1683313006.304406217] [talker]: Publishing: 'Hello World: 1'
[INFO] [1683313007.304254294] [talker]: Publishing: 'Hello World: 2'
[INFO] [1683313008.304208091] [talker]: Publishing: 'Hello World: 3'
[INFO] [1683313009.304162780] [talker]: Publishing: 'Hello World: 4'
[INFO] [1683313010.304098489] [talker]: Publishing: 'Hello World: 5'
$ ros2 run demo_nodes_py listener
[INFO] [1683313006.326180969] [listener]: I heard: [Hello World: 1]
[INFO] [1683313007.306190692] [listener]: I heard: [Hello World: 2]
[INFO] [1683313008.306295810] [listener]: I heard: [Hello World: 3]
[INFO] [1683313009.306328576] [listener]: I heard: [Hello World: 4]
[INFO] [1683313010.306021672] [listener]: I heard: [Hello World: 5]

turtlesim

Navigation2

l4t-ros2-docker's People

Contributors

atinfinity avatar

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.