Skip to content

feat(autoware): Add Centroid struct - #810

Open
romancardenas wants to merge 1 commit into
tier4:mainfrom
romancardenas:autoware/centroid
Open

romancardenas wants to merge 1 commit into
tier4:mainfrom
romancardenas:autoware/centroid

Conversation

@romancardenas

Copy link
Copy Markdown
Contributor

Description

This PR is part of #750.

It adds a generic Centroid struct that accumulates scalar vectors and computes its average centroid.

Related links

The implementation is inspired by the original Autoware implementation.

The main difference is that error checking is more restrictive in this implementation. It checks that no overflow happens at creation, point addition, and centroid computation.

How was this PR tested?

  • scripts/ci.sh passes on my machine.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant