-
Notifications
You must be signed in to change notification settings - Fork 0
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
[PI Sprint 24/25 / PD-456] - [Feature] Implement Localization #34
base: master
Are you sure you want to change the base?
Conversation
#ifndef SUIRYOKU__LOCOMOTION__MODEL__FIELD_HPP_ | ||
#define SUIRYOKU__LOCOMOTION__MODEL__FIELD_HPP_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where's the copyright? check other files as well.
|
||
} // namespace suiryoku | ||
|
||
#endif // SUIRYOKU__LOCOMOTION__MODEL__FIELD_HPP_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing EOL. Check other file as well.
bool Robot::get_apply_localization() { | ||
return apply_localization; | ||
} | ||
|
||
void Robot::set_apply_localization(bool apply_localization) { | ||
this->apply_localization = apply_localization; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's no spesific requirement for the set get, you can expose the apply_localization
to public instead.
p.orientation = orientation; | ||
|
||
// p.position.x += delta_position.x; | ||
// p.position.y += delta_position.y; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this unused?
for (auto & p : particles) { | ||
sum_weight += p.weight; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional, but it is better to use constant reference to avoid modification.
Jira Link:
https://ichiro-its.atlassian.net/browse/PD-456?atlOrigin=eyJpIjoiYTNmODg5MjBmNGY0NDQ5NWIzOTQwNTVmMGM3YTkwZDAiLCJwIjoiaiJ9
Description
Implementing MCL algorithm in robot class
Type of Change
How Has This Been Tested?
Checklist:
feature/JIRA-ID-SHORT-DESCRIPTION
if has a JIRA ticketenhancement/SHORT-DESCRIPTION
if has/has no JIRA ticket and contain enhancementhotfix/SHORT-DESCRIPTION
if the change doesn't need to be tested (urgent)