Comments (3)
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.
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 inrlpcy
. The functionality ofrclpy
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 thetracetools
package in my workspace. This is more of a temporary workaround, but since the tracepoints are identical forrclpy
andrclcpp
there is no real need to change the names (it just looks a little wrong). - The instrumentation works in the
pybind11
sections ofrlcpy
, 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.
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)
- Clang warning
- Fix mypy test failures HOT 2
- How to trace non-ROS2 functions within ros2_tracing and view in tracecompass HOT 3
- Replace distutils.version.StrictVersion since distutils is deprecated
- Memory leak with tracetools::get_symbol()
- Process trace events into intermediate storage format HOT 4
- Destroy tracing session if it exists when tracing configuration fails
- Remove context_names parameter in Rolling
- Mention needing to start tracing before starting application
- Find solution to allow starting to trace from any point in time
- regression in build on macos HOT 1
- Provide non-interactive 'ros2 trace start/pause/resume/stop' commands HOT 1
- Proposal: move dds tracepoints to RWM layers HOT 1
- test_tracetools_launch tests causing GitHub CI to hang HOT 1
- Colcon build error after installation of ros2_tracing HOT 2
- rcl_init miss HOT 11
- Empty and partially-filled metadata files from trace HOT 4
- lttngpy fails to build on Windows Debug HOT 3
- Allow tracing tests to be run in parallel with tracing tests & normal tests
- Fix LTTng issue with `test_ros2trace` and `test_tracetools_launch` so that they can run tracing tests in parallel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros2_tracing.