35 int main(
int argc,
char* argv[])
43 robot_ip = std::string(argv[1]);
48 std::unique_ptr<DashboardClient> my_dashboard;
50 if (!my_dashboard->connect())
56 if (!my_dashboard->commandPowerOff())
62 my_dashboard->commandCloseSafetyPopup();
65 if (!my_dashboard->commandPowerOn())
72 if (!my_dashboard->commandBrakeRelease())
79 const std::string program_file_name_to_be_loaded(
"wait_program.urp");
80 if (!my_dashboard->commandLoadProgram(program_file_name_to_be_loaded))
82 URCL_LOG_ERROR(
"Could not load %s program", program_file_name_to_be_loaded.c_str());
87 if (!my_dashboard->commandPlay())
94 if (!my_dashboard->commandPause())
101 if (!my_dashboard->commandPlay())
108 if (!my_dashboard->commandStop())
115 if (!my_dashboard->commandPowerOff())
122 if (!my_dashboard->commandSaveLog())
#define URCL_LOG_ERROR(...)
void setLogLevel(LogLevel level)
Set log level this will disable messages with lower log level.
int main(int argc, char *argv[])
const std::string DEFAULT_ROBOT_IP
This class is a wrapper around the dashboard server.