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

task: manual exclusion zones #13

Open
wants to merge 1 commit into
base: knight
Choose a base branch
from

Conversation

vaibhavviswanathan
Copy link

Added helper functions for manual exclusion zones.

#2274

@vaibhavviswanathan vaibhavviswanathan changed the title Vviswanathan/manual exclusion task: manual exclusion zones Oct 29, 2020
@vaibhavviswanathan vaibhavviswanathan marked this pull request as ready for review October 29, 2020 20:57
Comment on lines +80 to +88
Eigen::Vector2f GetPointFromCellIndex(const Eigen::Array2i& cellIndex) const {
// Index values are row major and the top left has Eigen::Array2i::Zero()
// and contains (centered_max_x, centered_max_y). We need to flip and
// rotate.
return Eigen::Vector2f(
max_.y() - resolution_ * ((float)cellIndex.x() + 0.5),
max_.x() - resolution_ * ((float)cellIndex.y() + 0.5));
}

Choose a reason for hiding this comment

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

The function below perform same operations. Any particular reason we need this here?

Choose a reason for hiding this comment

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

The only difference I see is that instead of returning (x, y) in meters this function returns (y, x). Is that intended?

Choose a reason for hiding this comment

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

makes sense

Copy link

@ajakhotia ajakhotia left a comment

Choose a reason for hiding this comment

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

Requesting changes

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.

3 participants