From c13b726fb3ca485656fc99f9e69e4601ced55fda Mon Sep 17 00:00:00 2001 From: Pierre Gergondet Date: Mon, 5 Feb 2024 10:00:05 +0900 Subject: [PATCH] [utils/RobotVisualizer] Correctly compile without ROS support --- utils/RobotVisualizer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/RobotVisualizer.cpp b/utils/RobotVisualizer.cpp index 30a6bea550..ebe4ccebe5 100644 --- a/utils/RobotVisualizer.cpp +++ b/utils/RobotVisualizer.cpp @@ -35,7 +35,9 @@ void RobotVisualizer::run() while(1) { auto now = std::chrono::high_resolution_clock::now(); +#ifdef MC_RTC_HAS_ROS if(robots) { mc_rtc::ROSBridge::update_robot_publisher("control", 0.005, robots->robot()); } +#endif server.handle_requests(builder); server.publish(builder); std::this_thread::sleep_until(now + std::chrono::milliseconds(5));