Giter Club home page Giter Club logo

ros2_trt_pose's Introduction

ros2_trt_pose

NVIDIA Developer Blog

In this repository, we build ros2 wrapper for trt_pose for real-time pose estimation on NVIDIA Jetson.

Package outputs:

  • Pose message
  • Pose detection image message
  • Visualization markers
  • Launch file for RViz

alt text

Requirements:

Build:

  • Clone repository under ros2 workspace
$ cd ros2_ws/src/
$ git clone https://github.com/NVIDIA-AI-IOT/ros2_trt_pose.git
  • Install requirements using rosdep
$ rosdep install --from-paths src --ignore-src --rosdistro eloquent -y
  • Build and Install ros2_trt_pose package
$ colcon build
$ source install/local_setup.sh

Run

  • Change Power Mode for Jetson sudo nvpmodel -m2 (for Jetson Xavier NX)
    sudo nvpmodel -m0 (for Jetson Xavier and Jetson Nano)

  • Input Images are captured using image_tools package
    ros2 run image_tools cam2image

  • Keep trt_pose related model files in base_dir, it should include:

  • For running you can use Launch file or manually run each node:

    • Run using Launch file
    $ ros2 launch ros2_trt_pose pose-estimation.launch.py
    

    Note: Update rviz file location in launch file in launch/pose_estimation.launch.py

    • Run ros2_trt_pose node
    $ ros2 run ros2_trt_pose pose-estimation --ros-args -p base_dir:='<absolute-path-to-base_dir>'
    
    • For following use separate window for each:
      • See Pose message
      $ source install/local_setup.sh
      $ ros2 run rqt_topic rqt_topic
      
      • Visualize markers
      $ ros2 run rviz2 rviz2 launch/pose_estimation.rviz
      

Other related ROS 2 projects

ros2_trt_pose's People

Contributors

ak-nv 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.