From d69566974ae0cd10c9d46ac54ddbacf4863c3272 Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Mon, 22 Nov 2021 18:13:57 -0800 Subject: [PATCH] Set marker point size from message (#317) Signed-off-by: Louise Poubel --- src/plugins/marker_manager/MarkerManager.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/marker_manager/MarkerManager.cc b/src/plugins/marker_manager/MarkerManager.cc index a78531c2a..d9a3e75ed 100644 --- a/src/plugins/marker_manager/MarkerManager.cc +++ b/src/plugins/marker_manager/MarkerManager.cc @@ -544,6 +544,10 @@ void MarkerManagerPrivate::SetMarker(const ignition::msgs::Marker &_msg, _markerPtr->AddPoint(vector, color); } + if (_msg.has_scale()) + { + _markerPtr->SetSize(_msg.scale().x()); + } } /////////////////////////////////////////////////