Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use the filter to leave out specific nodes or topics #185

Open
2 tasks done
REN-Tianchi opened this issue Nov 24, 2023 · 1 comment
Open
2 tasks done

Cannot use the filter to leave out specific nodes or topics #185

REN-Tianchi opened this issue Nov 24, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@REN-Tianchi
Copy link

REN-Tianchi commented Nov 24, 2023

Checklist

Issue type

Help wanted

Step where the issue is related to

Recording

Environments

OS: Ubuntu 22.04.3 LTS
ROS 2: Humble
Memory: 64.0 GiB

CARET version

CARET: v0.3.3  main branch

Target application

target application: autoware release/2023.10 branch

Description

Although in the tutorial section I noticed that there are nodes/topics filter provided to leave out or just focus on some specific nodes and topics, as I use the CLI tool as described in the tutorial, the final tracing result still has nodes and topics that I intend to leave out, resulting in very high latency in data analysis using python APIs. I tried to use the echo to see if the nodes are correctly sent to the $CARET_IGNORE_NODES and they did. I would appreciate it if some more specific instructions on how to use the filters could be posted here, thanks!

Steps to reproduce

Before start recording I wrote the command lines as is shown in the tutorial session, however, after recording, I found the nodes to leave out are still in the converted yaml file.

Commands

ulimit -n 65536
source ~/ros2_caret_ws/install/local_setup.bash
export CARET_IGNORE_NODES="/rviz*: /autoware_api*: /awapi*: /transform_listener*: /system*: /default_ad_api*: /ro*: /aggregator_node*: /planning*: /control*: /localization*: /map*" 
export CARET_IGNORE_TOPICS="/external*: /api*: /awapi*: /diagnostics*: /system/*: /vehicle*: /carla*: /planning/scenario_planning/motion_velocity_smoother*:  /parameter_events: /clock: /planning*: /control*: /localization*"
export ROS_TRACE_DIR=~/autoware/evaluate
ros2 caret record -s record_file_name

Logs

No response

LTTng trace log file

No response

Screenshots

No response

@REN-Tianchi REN-Tianchi added the bug Something isn't working label Nov 24, 2023
@ymski ymski assigned h-suzuki-isp and unassigned ymski Nov 27, 2023
@h-suzuki-isp
Copy link
Contributor

h-suzuki-isp commented Nov 27, 2023

Hi,@REN-Tianchi .
CARET provides filtering functions by setting certain environment variables (e.g. CARET_IGNORE_NODES) when the application is launched.
Setting environment variables must be done on the terminal where the application is launched.
If the issues is not resolve, please ask again. Additionally, you may find the following tutorial helpful:(https://tier4.github.io/caret_doc/main/tutorials/recording/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants