GithubHelp home page GithubHelp logo

sloretz / ros-world-2021-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from christophebedard/ros-world-2021-demo

0.0 0.0 0.0 187 KB

Demo for ROS World 2021 talk: Tracing ROS 2 with ros2_tracing

Home Page: https://vimeo.com/652633418

C++ 2.98% Python 1.29% CMake 0.44% Jupyter Notebook 95.28%

ros-world-2021-demo's Introduction

ros-world-2021-demo

Demo for ROS World 2021 talk: Tracing ROS 2 with ros2_tracing (video, slides).

Demo

In the demo, we trace a ping node and a pong node. See launch file. The nodes exchange N messages (ping then pong) every M milliseconds T times, and then exit. The ping node publishes its pings on the /ping topic and the pong node publishes its pongs on the /pong topic, with each node subscribing to the other's messages. We trace the nodes and analyze the trace data using a Jupyter notebook to show timer & subscription callbacks, publications, and timer & subscriptions & publisher creations over time.

Instructions

  1. Setup system to build ROS 2 Rolling and trace
  2. Clone tracetools_analysis and this repo, and install dependencies
    cd ws/src
    git clone https://gitlab.com/ros-tracing/tracetools_analysis.git
    git clone https://github.com/christophebedard/ros-world-2021-demo.git
    cd ..
    pip3 install notebook bokeh
  3. Build
    colcon build --packages-up-to ros_world_2021_demo
  4. Source and launch
    source install/setup.bash
    ros2 launch ros_world_2021_demo demo.launch.py
    • it should exit by itself
    • alternatively, instead of executing the launch file, use the sample trace by extracting the contents of trace.zip into your ~/.ros/tracing/ directory
  5. Analyze
    pip3 install notebook bokeh
    jupyter notebook src/ros-world-2021-demo/ros_world_2021_demo/analysis/demo.ipynb
    • run the whole notebook

Results

Overall results:

Single ping-pong sequence:

ros-world-2021-demo's People

Contributors

christophebedard 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.