From 74ab7f90e346a63d3293a2bef87a788d5d818c7d Mon Sep 17 00:00:00 2001 From: urrsk <41109954+urrsk@users.noreply.github.com> Date: Wed, 24 Jun 2026 15:56:39 +0200 Subject: [PATCH 1/2] Enhance robot program state logging with clearer running messages Updated console output to indicate when the robot control program is running and when it is connected but not yet running. --- src/example_robot_wrapper.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/example_robot_wrapper.cpp b/src/example_robot_wrapper.cpp index 896da21c6..647a1d5f6 100644 --- a/src/example_robot_wrapper.cpp +++ b/src/example_robot_wrapper.cpp @@ -232,16 +232,18 @@ bool ExampleRobotWrapper::initializeRobotWithPrimaryClient() void ExampleRobotWrapper::handleRobotProgramState(bool program_running) { - // Print the text in green so we see it better - std::cout << "\033[1;32mProgram running: " << std::boolalpha << program_running << "\033[0m\n" << std::endl; if (program_running) { + // Print the text in green so we see it better + std::cout << "\033[1;32mRobot control program is running and connected to the driver\033[0m\n" << std::endl; std::lock_guard lk(program_running_mutex_); program_running_ = program_running; program_running_cv_.notify_one(); } else { + // Print the text in yellow to indicate the robot is connected but the control program is not (yet) running + std::cout << "\033[1;33mRobot connected - Control program not running yet\033[0m\n" << std::endl; std::lock_guard lk(program_not_running_mutex_); program_running_ = program_running; program_not_running_cv_.notify_one(); From a6e098d0aa4d8fa5ee2b74cf6bc58e30799f01b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rune=20S=C3=B8e-Knudsen?= <41109954+urrsk@users.noreply.github.com> Date: Thu, 25 Jun 2026 13:42:23 +0200 Subject: [PATCH 2/2] Update src/example_robot_wrapper.cpp Co-authored-by: Felix Exner --- src/example_robot_wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/example_robot_wrapper.cpp b/src/example_robot_wrapper.cpp index 647a1d5f6..16cbe93ac 100644 --- a/src/example_robot_wrapper.cpp +++ b/src/example_robot_wrapper.cpp @@ -243,7 +243,7 @@ void ExampleRobotWrapper::handleRobotProgramState(bool program_running) else { // Print the text in yellow to indicate the robot is connected but the control program is not (yet) running - std::cout << "\033[1;33mRobot connected - Control program not running yet\033[0m\n" << std::endl; + std::cout << "\033[1;33mRobot should be connected - Control program not running yet\033[0m\n" << std::endl; std::lock_guard lk(program_not_running_mutex_); program_running_ = program_running; program_not_running_cv_.notify_one();