Hello,
I am using Doosan API for my program to switch from manual mode to auto to be able to execute a drl program, which consists of a path. After the path is done, i want to get back to manual mode, however, the robot fails to do so. The code is as following:
C++
drlf.set_robot_mode(ROBOT_MODE_AUTONOMOUS);
drlf.drl_start(ROBOT_SYSTEM_REAL, strDrlProgram));
// wait for robot to stop movement
while (drlf.get_program_state() == DRL_PROGRAM_STATE_PLAY)
{
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
drlf.set_robot_mode(ROBOT_MODE_MANUAL);
I've noticed that if I comment out the drl_start() line the modes switch correctly. However, I fail to understand what could be wrong here.
Any help is appreciated