failing subscription due to transient_local
Description
How to Reproduce
In a few subscribers where for QoS transient_local
is used it does not subscribe to the topic.
Example:
In RecordReplayPlannerNode
m_ego_sub = create_subscription<State>(ego_topic, QoS{10}.transient_local(), [this](const State::SharedPtr msg) {on_ego(msg);}, SubAllocT{});
Steps to reproduce:
- run lgsvl and bridge
- run RecordReplayPlannerNode
- start recording with action
- Test by replaying and visualizing in rviz or adding logging in subscriber
Current Behavior
<! -- Required -->
subscriber callback is not called
Expected behavior
subscriber function should be called when msgs are being published on that topic