Skip to content

Commit 648046b

Browse files
author
tempate
committed
Apply suggestions
Signed-off-by: tempate <danieldiaz@eprosima.com>
1 parent 68f2984 commit 648046b

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

ddsrecorder/src/cpp/tool/DdsRecorder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ DdsRecorder::DdsRecorder(
9393
discovery_database_,
9494
mcap_handler_);
9595

96-
// Create the internal communication (built-in) topics
97-
const auto& internal_topic = utils::Heritable<DistributedTopic>::make_heritable(type_object_topic());
98-
configuration.ddspipe_configuration.builtin_topics.insert(internal_topic);
96+
// Create an internal topic to transmit the dynamic types
97+
configuration.ddspipe_configuration.builtin_topics.insert(
98+
utils::Heritable<DistributedTopic>::make_heritable(type_object_topic()));
9999

100100
// Create Participant Database
101101
participants_database_ = std::make_shared<ParticipantsDatabase>();

ddsreplayer/src/cpp/tool/DdsReplayer.cpp

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,13 @@ DdsReplayer::DdsReplayer(
5959
, dyn_publisher_(nullptr)
6060
{
6161
// Create Discovery Database
62-
discovery_database_ =
63-
std::make_shared<DiscoveryDatabase>();
62+
discovery_database_ = std::make_shared<DiscoveryDatabase>();
6463

6564
// Create Payload Pool
66-
payload_pool_ =
67-
std::make_shared<FastPayloadPool>();
65+
payload_pool_ = std::make_shared<FastPayloadPool>();
6866

6967
// Create Thread Pool
70-
thread_pool_ =
71-
std::make_shared<SlotThreadPool>(configuration.n_threads);
68+
thread_pool_ = std::make_shared<SlotThreadPool>(configuration.n_threads);
7269

7370
// Create MCAP Reader Participant
7471
mcap_reader_participant_ = std::make_shared<McapReaderParticipant>(
@@ -127,13 +124,13 @@ DdsReplayer::DdsReplayer(
127124
}
128125
}
129126

130-
// Create the internal communication (built-in) topics
131-
const auto& internal_topic = utils::Heritable<DistributedTopic>::make_heritable(type_object_topic());
132-
configuration.ddspipe_configuration.builtin_topics.insert(internal_topic);
133-
134-
// Generate builtin-topics list by combining information from YAML and MCAP files
127+
// Generate builtin-topics from the topics in the MCAP file
135128
configuration.ddspipe_configuration.builtin_topics = generate_builtin_topics_(configuration, input_file);
136129

130+
// Create an internal topic to transmit the dynamic types
131+
configuration.ddspipe_configuration.builtin_topics.insert(
132+
utils::Heritable<DistributedTopic>::make_heritable(type_object_topic()));
133+
137134
// Create DDS Pipe
138135
pipe_ = std::make_unique<DdsPipe>(
139136
configuration.ddspipe_configuration,

0 commit comments

Comments
 (0)