autowarefoundation / autoware.universe

https://autowarefoundation.github.io/autoware.universe/
Apache License 2.0
996 stars 639 forks source link

Too many nodes with same name #9146

Open LuZhishan opened 2 days ago

LuZhishan commented 2 days ago

Checklist

Description

When I launch many yolox node with multiple_yolox.launch.xml here, there will be many node with same name

Expected behavior

There should be many node with different names

Actual behavior

image

Steps to reproduce

  1. change the image_number larger than 1
  2. launch multiple_yolox.launch.xml

Versions

Possible causes

No response

Additional context

There are two ways to solve this problem The first one, change node name of tensorrt_yolox to $(anon tensorrt_yolox), and image_transport_decompressor_node to $(anon image_transport_decompressor_node) The second one, add a param passed form uper launch named tensorrt_yolox_1 for example.

cyn-liu commented 1 day ago

@LuZhishan Thanks for your suggestion. When I used the first method to solve this problem(draft PR), I found that the node names were still the same. I think this is abnormal. Does anyone know the reason? @mitsudome-r @xmfcx @dan-dnn @ktro2828 @manato

#ros2 node list
WARNING: Be aware that are nodes in the graph that share an exact name, this can have unintended side effects.
/image_transport_decompressor_node_cynthia_liu_25507_8885756925087757029
/image_transport_decompressor_node_cynthia_liu_25507_8885756925087757029
/tensorrt_yolox_cynthia_liu_25507_5677783873391810063
/tensorrt_yolox_cynthia_liu_25507_5677783873391810063