Skip to content

Commit 23b5b21

Browse files
author
KhalilSelyan
committed
feat: Update visible rectangle coordinates in VehicleMapDisplay
Signed-off-by: KhalilSelyan <khalil@leodrive.ai>
1 parent 82f470f commit 23b5b21

File tree

1 file changed

+2
-1
lines changed
  • common/autoware_overlay_rviz_plugin/autoware_minimap_overlay_rviz_plugin/src

1 file changed

+2
-1
lines changed

common/autoware_overlay_rviz_plugin/autoware_minimap_overlay_rviz_plugin/src/minimap.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ void VehicleMapDisplay::drawCircle(QPainter & painter, const QRectF & background
160160
painter.setBrush(colorFromHSV);
161161

162162
// Define the visible rectangle
163-
QRectF visibleRect(backgroundRect.width() / 2 - 112, backgroundRect.height() / 2 - 112, 225, 225);
163+
QRectF visibleRect(
164+
backgroundRect.width() / 2 - 112.5, backgroundRect.height() / 2 - 112.5, 225, 225);
164165

165166
// Define the circular clipping path
166167
QPainterPath path;

0 commit comments

Comments
 (0)