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

Add a conditional check for level transformation #520

Merged

Conversation

TanJunKiat
Copy link
Contributor

Bug fix

Fixed bug

From PR #513, the compute_transform function is modified to take into consideration level rotations when doing inter-level transformation.

But a segmentation fault will occur when a new level is created because there are no fiducials.

Fix applied

I've added a conditional check to make sure that the fiducials are 2 or more, before allowing the function to continue.

Signed-off-by: tanjunkiat <tanjunkiat@outlook.sg>
Copy link
Member

@luca-della-vedova luca-della-vedova left a comment

Choose a reason for hiding this comment

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

Ouch yes that [0] 💀, thanks!

@luca-della-vedova luca-della-vedova merged commit cb95b26 into open-rmf:main Dec 20, 2024
6 checks passed
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@5ed7be2). Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff          @@
##             main   #520   +/-   ##
=====================================
  Coverage        ?      0           
=====================================
  Files           ?      0           
  Lines           ?      0           
  Branches        ?      0           
=====================================
  Hits            ?      0           
  Misses          ?      0           
  Partials        ?      0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants