ray tracing in dummy perception publisher is too heavy to publish objects in 10Hz #460
Closed
Description
When ray tracing is enabled and I set multiple pedestrians by using rviz plugins, the topic /perception/object_recognition/detection/labeled_clusters
may not be output at 10Hz due to heavy ray tracing processing.
I measured following process:
autoware.universe/simulator/dummy_perception_publisher/src/node.cpp
Lines 177 to 211 in 407c802
and when there were a large number of pedestrians, the processing time was actually increased as follows.
- no or few pedestrians
[dummy_perception_publisher_node-32] processing_time 0.000497871 ms
[dummy_perception_publisher_node-32] processing_time 0.00054048 ms
[dummy_perception_publisher_node-32] processing_time 0.00111424 ms
[dummy_perception_publisher_node-32] processing_time 0.00144731 ms
[dummy_perception_publisher_node-32] processing_time 0.000327956 ms
[dummy_perception_publisher_node-32] processing_time 0.000686971 ms
- many pedestrians
[dummy_perception_publisher_node-32] processing_time 0.16171 ms
[dummy_perception_publisher_node-32] processing_time 0.157384 ms
[dummy_perception_publisher_node-32] processing_time 0.300267 ms
[dummy_perception_publisher_node-32] processing_time 0.299193 ms
[dummy_perception_publisher_node-32] processing_time 0.28528 ms
[dummy_perception_publisher_node-32] processing_time 0.313369 ms
I think default reaf size should be changeable from launch file.
my environment
ThinkPad Extreme
Memory 32GB
CPU Intel® Core™ i7-10750H CPU @ 2.60GHz × 12
GPU NVIDIA Corporation / NVIDIA GeForce GTX 1650 Ti with Max-Q Design/PCIe/SSE2
OS Ubuntu20.04