Git Product home page Git Product logo

jetson_ros2_humble_zed_wrapper's Introduction

Intro

Load the standard ISO from Nvidia to the Jetson Nano board. Then use the Dockerfile to create a docker image that installs all the necessary dependencies to run ROS2 ZED Wrapper.

I found that ROS2 ZED Wrapper needs Humble but the only Jetson Nano container I could find would be Ubuntu 18 with ROS2 Humble installed. From there I was given a hint to use C++11 where the default is C++7.

I also needed to use Python 3.8 to compile ZED ROS2 Wrapper, but I needed Python 3.6 to build ZED SDK. So I switch between them. At the end to run the wrapper, because ROS2 used Python 3.6, I have to switch back to Python 3.6 to load the ZED ROS2 Wrapper.

Build Docker

Build

docker build -f Dockerfile .

Rebuild

--no-cache will rebuild the Docker image from the beginning. If you do not include this, it will only build modified or new sections in the docker file.

docker build -f Dockerfile . --no-cache

Launch Docker

docker run --runtime nvidia -it --privileged --ipc=host --pid=host --net=host  --gpus all <docker image>

--net=host allows the ROS2 topics to be seen on the network. --gpus all allows the docker file have access to the GPU. -it runs the docker container in the terminal -e ZED_CAMERA_MODEL="<camera_model> will set the camera model to use to automatically run the wrapper. Options are 'zed''zedm''zed2''zed2i''zedx''zedxm'.

Launch ZED ROS2 Wrapper

ros2 launch zed_wrapper zed_camera.launch.py camera_model:=<camera_model>
ros2 launch zed_wrapper zed_camera.launch.py camera_model:=zed
ros2 launch zed_wrapper zed_camera.launch.py camera_model:=zedm

Build Error

I assume we can ignore these errors. The wrapper loads fine.

--- stderr: zed_wrapper
In file included from /root/ros2_ws/install/zed_components/include/zed_components/zed_camera_component.hpp:19,
                 from /root/ros2_ws/src/zed-ros2-wrapper/zed_wrapper/src/zed_wrapper.cpp:17:
/usr/local/zed/include/sl/Fusion.hpp:68:64: note: ‘#pragma message: ~ FUSION SDK is distributed in Early Access ~’
   68 | #pragma message("~ FUSION SDK is distributed in Early Access ~")
      |                                                                ^
---
...

Summary: 45 packages finished [24min 49s]
  2 packages had stderr output: zed_components zed_wrapper

jetson_ros2_humble_zed_wrapper's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

rhysdg

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.