@@ -183,9 +183,7 @@ void Participant::create_subscription(
183
183
// Check if type is registered or not in participant. If not, register it
184
184
if (!participant_->find_type (type_name))
185
185
{
186
- // __FLAG__
187
186
DEBUG (" Type info not registered in participant for topic " << topic_name);
188
- // ////////////////////////
189
187
190
188
// Type information is available but not registered in participant
191
189
// Types manually loaded (through XML file) are registered in participant when loaded, so this case is not possible
@@ -204,6 +202,7 @@ void Participant::create_subscription(
204
202
dyn_type = DynamicTypeBuilderFactory::get_instance ()->create_type_w_type_object (
205
203
type_object)->build ();
206
204
TypeSupport dyn_type_support (new DynamicPubSubType (dyn_type));
205
+ dyn_type_support->set_name (type_name);
207
206
dyn_type_support.register_type (participant_);
208
207
}
209
208
else
@@ -307,9 +306,7 @@ void Participant::on_data_writer_discovery(
307
306
308
307
if (!info.type_information .assigned ())
309
308
{
310
- // __FLAG__
311
309
DEBUG (" Type information not assigned for topic " << topic_name);
312
- // ///////////////////////////
313
310
// If type info is not assigned, check if it can be generated through a xml
314
311
on_topic_discovery_ (topic_name, type_name);
315
312
}
@@ -360,9 +357,7 @@ void Participant::on_topic_discovery_(
360
357
const DataTypeId& type_id)
361
358
{
362
359
// TODO: check if mutex required
363
- // __FLAG__
364
360
DEBUG (" Calling on_topic_discovery with type id for topic " << topic_name);
365
- // ///////////////
366
361
bool is_already_discovered = false ;
367
362
368
363
// Check if this topic has already been discovered
@@ -380,15 +375,9 @@ void Participant::on_topic_discovery_(
380
375
if (!is_already_discovered)
381
376
{
382
377
// Add topic as discovered and save its type name and its type identifier to build DynamicType when DataReader is created
383
- // __FLAG__
384
378
DEBUG (" Topic " << topic_name << " discovered with type id" );
385
- DEBUG (" Updating databases..." );
386
- DEBUG (" ...Updating discovery database..." );
387
379
discovery_database_->operator [](topic_name) = {type_name, true };
388
- DEBUG (" ...Updating dynamic types info database..." );
389
380
dyn_types_info_->operator [](topic_name) = {type_name, type_id};
390
- DEBUG (" ...Databases updated" );
391
- // ///////////////////////////////////////////
392
381
}
393
382
394
383
// Call listener callback to notify new topic
0 commit comments