From 959958e4e257a8cc1c7c569b95a530d3d4e1a2dd Mon Sep 17 00:00:00 2001 From: Arnaud TANGUY Date: Fri, 2 Feb 2024 11:32:12 +0100 Subject: [PATCH] [panel/visual] Fix display of scaleV --- mc_rtc_rviz_panel/src/VisualWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mc_rtc_rviz_panel/src/VisualWidget.cpp b/mc_rtc_rviz_panel/src/VisualWidget.cpp index c6d8fca..5269208 100644 --- a/mc_rtc_rviz_panel/src/VisualWidget.cpp +++ b/mc_rtc_rviz_panel/src/VisualWidget.cpp @@ -100,9 +100,9 @@ void VisualWidget::update(const rbd::parsers::Visual & visual, const sva::PTrans { auto & m = boost::get(geom_data); marker_.type = visualization_msgs::Marker::MESH_RESOURCE; - marker_.scale.x = m.scale; - marker_.scale.y = m.scale; - marker_.scale.z = m.scale; + marker_.scale.x = m.scaleV.x(); + marker_.scale.y = m.scaleV.y(); + marker_.scale.z = m.scaleV.z(); marker_.mesh_resource = m.filename; marker_.mesh_use_embedded_materials = true; }