-
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
task: manual exclusion zones #13
base: knight
Are you sure you want to change the base?
Conversation
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)); | ||
} | ||
|
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.
The function below perform same operations. Any particular reason we need this here?
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.
The only difference I see is that instead of returning (x, y) in meters this function returns (y, x). Is that intended?
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.
makes sense
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.
Requesting changes
Added helper functions for manual exclusion zones.
#2274