From 61974117adaf5f632800ccc906fe84d3204d5a93 Mon Sep 17 00:00:00 2001 From: Miguel Riem de Oliveira Date: Sat, 16 Jul 2022 08:30:10 +0100 Subject: [PATCH] Update src/rviz/image/mouse_click.cpp Co-authored-by: Robert Haschke --- src/rviz/image/mouse_click.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rviz/image/mouse_click.cpp b/src/rviz/image/mouse_click.cpp index c911ce4f5d..2461dc031e 100644 --- a/src/rviz/image/mouse_click.cpp +++ b/src/rviz/image/mouse_click.cpp @@ -81,7 +81,7 @@ bool MouseClick::eventFilter(QObject* obj, QEvent* event) // Publish if clicked point is inside the image. if (pix_x >= 0 && pix_x < img_width_ && pix_y >= 0 && pix_y < img_height_) { - geometry_msgs::PointStamped point_msgs; + geometry_msgs::PointStamped point_msg; point_msgs.header.stamp = ros::Time::now(); point_msgs.point.x = pix_x; point_msgs.point.y = pix_y;