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

fix(lanelet2_extension): fix low FPS when visualizing center_line_arrows at a large map #1032

Merged
merged 3 commits into from
Jun 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: fix size
  • Loading branch information
h-ohta authored Jun 3, 2022
commit e0f69050fb0dff6522b13a28b44754c389ed26bf
4 changes: 2 additions & 2 deletions map/lanelet2_extension/lib/visualization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1241,8 +1241,8 @@ void visualization::pushArrowsMarker(
for (auto i = ls.begin(); i + 1 != ls.end(); i++) {
const float heading = std::atan2((*(i + 1)).y() - (*i).y(), (*(i + 1)).x() - (*i).x());

const float sin_offset = lss * 0.5 * std::sin(heading);
const float cos_offset = lss * 0.5 * std::cos(heading);
const float sin_offset = lss * std::sin(heading);
const float cos_offset = lss * std::cos(heading);

geometry_msgs::msg::Point p;
p.x = (*i).x() + sin_offset;
Expand Down