File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -232,16 +232,18 @@ bool ExampleRobotWrapper::initializeRobotWithPrimaryClient()
232232
233233void ExampleRobotWrapper::handleRobotProgramState (bool program_running)
234234{
235- // Print the text in green so we see it better
236- std::cout << " \033 [1;32mProgram running: " << std::boolalpha << program_running << " \033 [0m\n " << std::endl;
237235 if (program_running)
238236 {
237+ // Print the text in green so we see it better
238+ std::cout << " \033 [1;32mRobot control program is running and connected to the driver\033 [0m\n " << std::endl;
239239 std::lock_guard<std::mutex> lk (program_running_mutex_);
240240 program_running_ = program_running;
241241 program_running_cv_.notify_one ();
242242 }
243243 else
244244 {
245+ // Print the text in yellow to indicate the robot is connected but the control program is not (yet) running
246+ std::cout << " \033 [1;33mRobot should be connected - Control program not running yet\033 [0m\n " << std::endl;
245247 std::lock_guard<std::mutex> lk (program_not_running_mutex_);
246248 program_running_ = program_running;
247249 program_not_running_cv_.notify_one ();
You can’t perform that action at this time.
0 commit comments