描述目标的数据结构

1. struct

how to describe one object attribute. use a struct to represent one object, the struct include object state, dimension, id , yaw

2. array/vector

how to describe objects list. use a array or vector to represent objects list.

3. pointer/smart pointer eg: make_shared

how to use a pointer to point to objects list

4. std::map eg: at first second count

how to use a map structure to describe objects list from different sensors.

so while give a std::map, how to get the specific attribute.

posted @ 2022-10-25 17:00  Yi1990  阅读(12)  评论(0编辑  收藏  举报