Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why using raw ptr for detector instead of smart ptr? #15646

Open
ryanyej opened this issue Feb 13, 2025 · 1 comment
Open

Why using raw ptr for detector instead of smart ptr? #15646

ryanyej opened this issue Feb 13, 2025 · 1 comment

Comments

@ryanyej
Copy link

ryanyej commented Feb 13, 2025

As title, i am wondering why using raw ptr for detector instead of shared_ptr

For example:
bool Detect(const LidarDetectorOptions& options, LidarFrame* frame) override;
why using LidarFrame* ,not shared_ptr ?

waiting for your back.

@hearto1314
Copy link
Contributor

Hi, it can be defined as shared_ptr, a lidar_frame_.get() is passed in this implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants