Fix ROS 1 detection logic
Fix ROS 1 detection logic

Original commit: https://salsa.debian.org/robotics-team/mrpt/-/commit/44d4359027b5e0d6c3d52670f92e6698b5e86d9b
Author: Jochen Sprickerhof

MRPT/mrpt,MRPT/mrpt,MRPT/mrpt,MRPT/mrpt,MRPT/mrpt