Unable to successfully play rosbag containing topics of type realsense_msgs/Notification #10743
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello.
We are developing a robot with D435i.
I have been concerned for some time that the rosbag recorded using realsense-viewer may not play back properly.
Therefore, this Pull Request proposes a fix to resolve the issue and successfully play rosbag.
I would like to discuss whether this fix is appropriate, as it may affect other parts of the system that are not related to ros.
Environment I used
Commands used(When recording rosbag)
Commands used(Playing back recorded rosbags causes errors)
Error log
Detailed explanation of this issue
ros does not consider names containing spaces.
Reference)
Therefore, if you create a topic that contains spaces, it will fail when loaded.
However, topics of type realsense_msgs/Notification
All of them contain whitespace in the suffix.
I can solve this by using
rosbag filter
to remove the topic, butHowever, we believe that it is difficult to parse realsense_msgs/Notification type topics without modification.
Therefore, we have proposed a modification to create topics without spaces.
Reproduction method
How to create a rosbag containing topics of type realsense_msgs/Notification
Build and install librealsense2 SDK
create-realsense_msgs-Notification-topic-2022-08-03_11.25.56.mp4
Experiment
Error
play-space-existence-topic-notification-rosbag-2022-08-03_11.29.27.mp4
If modified
In the modified source, rosbag can contain topics of type realsense_msgs/Notification that do not contain spaces.
play-space-no-existence-topic-notification-rosbag-2022-08-03_11.37.35.mp4