carla-simulator / ros-bridge

ROS bridge for CARLA Simulator
MIT License
523 stars 431 forks source link

The ID of the vehicles and the ID of the pseudo sensors may be same to cause an confusion #638

Open gawinwong opened 2 years ago

gawinwong commented 2 years ago

The ID of the pseudo sensors is started from 10000, with this code self.id_gen = itertools.count(10000). When I spawn more than 10000 vehicles, some of these vehicle will share the same ID with some pseudo sensors. And this will cause an confusion. For example, I intend to destory a vehicle with the ID '10010', but it will destory the pseudo sensor 'ActorControl'.