From 32c781fb45678a1c9d9b9e2d70d757ebf1674ec2 Mon Sep 17 00:00:00 2001 From: Jhaskel Date: Wed, 6 Dec 2023 03:07:45 -0700 Subject: [PATCH] multiply radius by 2 so its diameter when publishing --- src/rviz_visual_tools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rviz_visual_tools.cpp b/src/rviz_visual_tools.cpp index 7cf66ea..4ae6d4c 100644 --- a/src/rviz_visual_tools.cpp +++ b/src/rviz_visual_tools.cpp @@ -1582,8 +1582,8 @@ bool RvizVisualTools::publishCylinder(const geometry_msgs::Pose& pose, const std cylinder_marker_.pose = pose; // Set marker size - cylinder_marker_.scale.x = radius; - cylinder_marker_.scale.y = radius; + cylinder_marker_.scale.x = radius*2; + cylinder_marker_.scale.y = radius*2; cylinder_marker_.scale.z = height; // Set marker color