09799dffdda04977e956d9148cb8d2a2edb1bc7c
Five add* functions each named the same argument differently - map_name, laser_scan_name, point_cloud_name, point_cloud2_name, odometry_name - while addDepthCameraData already called it topic. The get* and remove* families disagreed in the same way, though they take the same key. It is not a label. It has to match the topic a costmap layer names in observation_sources, and the entry in sensor_store_params.yaml. A key matching nothing is accepted in silence and read by nobody, which surfaces as an empty costmap with no error anywhere - so the parameter name is the first place to say what the string is for. Fourteen declarations now say topic. A parameter name has no effect at a call site, so this touches no host: no ABI change, nothing to rebuild in lockstep. addDepthCameraData is the one add* taking a const pointer rather than a value, and the header now says why, because the next reader will otherwise see an inconsistency and even it up. Every other sensor is reduced by the host before it arrives - a laser scan is 5.5 KB, a depth cloud is voxel-filtered from 3.26 MB to 24 KB - and copying all four together costs about 25 microseconds per second of runtime, measured against a running simulation. A depth image arrives whole at 398 KB because the voxel layer needs the full frame for its clearing frustum, and copying that costs roughly 250 times the other four combined. That is what earns a pointer, and a 5 KB scan does not.
pnkx_nav_core
Phần mềm quản lý việc di chuyển navigation
Description
Languages
C++
84%
CMake
7.9%
C
5.5%
Python
1.5%
MATLAB
0.9%
Other
0.2%