From 566173bd66df04af8665de8fb4be0010f4c4bf17 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Tue, 2 Nov 2021 23:40:26 +0100 Subject: [PATCH] Fix scaling of PointVisual's sphere --- src/rviz/default_plugin/point_visual.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rviz/default_plugin/point_visual.cpp b/src/rviz/default_plugin/point_visual.cpp index 812fc76f4b..d6a6b2c989 100644 --- a/src/rviz/default_plugin/point_visual.cpp +++ b/src/rviz/default_plugin/point_visual.cpp @@ -40,7 +40,7 @@ PointStampedVisual::~PointStampedVisual() void PointStampedVisual::setMessage(const geometry_msgs::PointStamped::ConstPtr& msg) { - Ogre::Vector3 scale(radius_, radius_, radius_); + Ogre::Vector3 scale(2 * radius_, 2 * radius_, 2 * radius_); point_->setScale(scale); // Set the orientation of the arrow to match the direction of the