Git Product home page Git Product logo

Comments (3)

Dekadee avatar Dekadee commented on June 23, 2024 1

The subscription and timer callbacks are picked up by tracetools_analysis just like the rclcpp versions without any changes to that package.

I have also been running some more analysis with an private tool that can extract end-to-end latencies, which can now analyze a mix of rlcpy and rclcpp nodes without any issues so far. This tools uses the data model from tracetools_analysis package, to read the traces so essentially uses the same method.

from ros2_tracing.

Dekadee avatar Dekadee commented on June 23, 2024

I've been looking into instrumenting rclpy and managed to get it working for my purposes:

  • I am simply reusing the rclcpp tracepoints and adding them to code in rlpcy. The functionality of rclpy is similar enough to make everything work from what i can tell.
  • For simplicities sake i have kept the same name, i.e. ros2:rclcpp_*, as i ran into problems overwriting the tracetools package in my workspace. This is more of a temporary workaround, but since the tracepoints are identical for rclpy and rclcpp there is no real need to change the names (it just looks a little wrong).
  • The instrumentation works in the pybind11 sections of rlcpy, thus essentially only adding a few extra calls in the Python files, where the data needed for the tracepoints comes from Python. The actual tracepoints are all dispatched from C code.

Check out my fork of rclpy here, i have made my changes on the humble and galactic branches, since i am required to work with those versions.

from ros2_tracing.

christophebedard avatar christophebedard commented on June 23, 2024

Awesome! I don't really use rclpy, but I'll try to give this a try at some point.

What have you done with the trace data you collected using that rclpy instrumentation? Have you run any kind of analysis on it?

from ros2_tracing.

Related Issues (20)

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.