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

Feature request: rename frame_id #18

Open
ulterzlw opened this issue Mar 25, 2023 · 0 comments
Open

Feature request: rename frame_id #18

ulterzlw opened this issue Mar 25, 2023 · 0 comments

Comments

@ulterzlw
Copy link

Description

Add a new column beside rename topic to rename frame_id.

Use Case

Due to the incorrect configuration at the upstream or two messages with the same frame_id having a conflict, we can rename the frame_id after the rosbag recording.

Proposed Implementation

I can easily rename the frame_id by instantiating the message according to its datatype, say sensor_msgs/PointCloud2, and then writing back to the bag after changing the frame_id.

rosbag::MessageInstance::instantiate<tf2_msgs::TFMessage>()

Such implementation, however, needs to check the datatype and use a switch-case flow structure. Is there a way to rename the frame_id without considering the specific datatype of the message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant