From 0401a3636989a618626e7be9a7ada0ab99db27f8 Mon Sep 17 00:00:00 2001 From: kobayu858 <129580202+kobayu858@users.noreply.github.com> Date: Tue, 10 Sep 2024 18:30:58 +0900 Subject: [PATCH] fix(tier4_dummy_object_rviz_plugin): fix functionConst (#8830) fix:functionConst Signed-off-by: kobayu858 --- .../src/tools/interactive_object.cpp | 2 +- .../src/tools/interactive_object.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simulator/tier4_dummy_object_rviz_plugin/src/tools/interactive_object.cpp b/simulator/tier4_dummy_object_rviz_plugin/src/tools/interactive_object.cpp index ca55bc20276e9..bcd56256bde34 100644 --- a/simulator/tier4_dummy_object_rviz_plugin/src/tools/interactive_object.cpp +++ b/simulator/tier4_dummy_object_rviz_plugin/src/tools/interactive_object.cpp @@ -221,7 +221,7 @@ boost::optional InteractiveObjectCollection::transform( return {}; } -size_t InteractiveObjectCollection::nearest(const Ogre::Vector3 & point) +size_t InteractiveObjectCollection::nearest(const Ogre::Vector3 & point) const { const size_t npos = objects_.size(); if (objects_.empty()) { diff --git a/simulator/tier4_dummy_object_rviz_plugin/src/tools/interactive_object.hpp b/simulator/tier4_dummy_object_rviz_plugin/src/tools/interactive_object.hpp index c1ec65a0488bd..c0942d9a6cdd1 100644 --- a/simulator/tier4_dummy_object_rviz_plugin/src/tools/interactive_object.hpp +++ b/simulator/tier4_dummy_object_rviz_plugin/src/tools/interactive_object.hpp @@ -124,7 +124,7 @@ class InteractiveObjectCollection const std::array & uuid) const; private: - size_t nearest(const Ogre::Vector3 & point); + size_t nearest(const Ogre::Vector3 & point) const; InteractiveObject * target_; std::vector> objects_; };