Skip to content

Commit

Permalink
[utils/RobotVisualizer] Correctly compile without ROS support
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet committed Feb 5, 2024
1 parent 6dbe368 commit c13b726
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/RobotVisualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit c13b726

Please sign in to comment.