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

feat(centerpoint): cherrypicked upstream changes for x2_gen2/v0.29.0 #1700

Merged
merged 15 commits into from
Dec 16, 2024

Conversation

knzo25
Copy link

@knzo25 knzo25 commented Dec 16, 2024

Description

Cherrypicked improvements to centerpoint

List:

Does not include the autoware's namespace PR

The cherrypicks were done using git cherry-pick HASH and not copied manually as proposed before.
If done sequence, skipping the ones with breaking changes (autoware prefix), there were minimal conflicts

Related links

Parent Issue:

  • Link

How was this PR tested?

Run https://console.data-search.tier4.jp/projects/x2_dev/environments/190ce3fb-2480-4710-a8db-b976814f90cb/rosbags/977d3e84-f61a-40d0-8629-7c01f7aa4700

and centerpoint seemed to be working ok

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

knzo25 and others added 15 commits December 16, 2024 11:27
…utowarefoundation#6989)

* feat: accelerated preprocessing for centerpoint

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* chore: changed includes to quotes instead of brackets

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* chore: fixed variable name

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* fix: addressed the case where the points in the cache is over the maximum capacity

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* fix: fixed the offset of the output buffer in the kernel

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* chore: reimplemented old logic in the pointpainting package since the new centerpoint logic is incompatible

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* fix: eigen matrices are column major by default. this commit fixes the code that assumed row-major, implements check for data layout, and updates tests

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* chore: fixed missing virtual destructor

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

---------

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
Co-authored-by: kminoda <[email protected]>
fix: ml detector buffer capacity and parameterization (autowarefoundation#7936)

* fix: increased the buffer capacity in ML-based detectors (1M -> 2M due to new models) but parameterized to users can adapt it to their use cases

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* chore: added schema parts

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* chore: points are countable !

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

---------

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
…utowarefoundation#8731)

add centerpoint sigma parameter

Signed-off-by: yoshiri <[email protected]>
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
… to the model (autowarefoundation#8814)

* feat: shuffling points before feeding them into the model to achieve uniform sampling into the voxels

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* Update perception/autoware_lidar_centerpoint/src/node.cpp

Co-authored-by: kminoda <[email protected]>

* Update perception/autoware_lidar_centerpoint/src/node.cpp

Co-authored-by: kminoda <[email protected]>

* Update perception/autoware_lidar_centerpoint/lib/centerpoint_trt.cpp

Co-authored-by: kminoda <[email protected]>

* Update perception/autoware_lidar_centerpoint/include/autoware/lidar_centerpoint/centerpoint_config.hpp

Co-authored-by: kminoda <[email protected]>

---------

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
Co-authored-by: kminoda <[email protected]>
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
…_t (autowarefoundation#8820)

* refactor(autoware_lidar_centerpoint): use std::size_t instead of size_t

Signed-off-by: kminoda <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: kminoda <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…its definition (autowarefoundation#8980)

* fix: convert object's velocity to follow its definition in box3DToDetectedObject function

Signed-off-by: Taekjin LEE <[email protected]>

* Update perception/autoware_lidar_centerpoint/lib/ros_utils.cpp

Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]>

---------

Signed-off-by: Taekjin LEE <[email protected]>
Co-authored-by: Kenzo Lobos Tsunekawa <[email protected]>
…towarefoundation#8996)

* fix(autoware_lidar_centerpoint): fix covariance converter considering the twist covariance matrix is based on the object coordinate

Signed-off-by: Taekjin LEE <[email protected]>

fix style

* fix: update test of box3DToDetectedObject function

Signed-off-by: Taekjin LEE <[email protected]>

---------

Signed-off-by: Taekjin LEE <[email protected]>
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
… now I wil leave it as a default parameter

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
@knzo25
Copy link
Author

knzo25 commented Dec 16, 2024

@YoshiRi
The new parameter cloud_capacity is not part of the current launcher's config files.
In the meantime I left it as a default parameter (what we are not supposed to do anymore). Would it be better to send a PR for this parameter? Or can we leave it as is since this branch will not live that much?

@YoshiRi
Copy link

YoshiRi commented Dec 16, 2024

@YoshiRi The new parameter cloud_capacity is not part of the current launcher's config files. In the meantime I left it as a default parameter (what we are not supposed to do anymore). Would it be better to send a PR for this parameter? Or can we leave it as is since this branch will not live that much?

@knzo25
Thanks! I agree with your option since this version is not for a long time support.

Copy link

@YoshiRi YoshiRi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
It also worked in my environemnt.

@knzo25 knzo25 merged commit 16569fc into beta/x2_gen2/v0.29.0 Dec 16, 2024
22 of 25 checks passed
@knzo25 knzo25 deleted the x2_gen2/v0.29.0/centerpoint_cherrypicks branch December 16, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants