Skip to content

Commit 1776c4f

Browse files
committed
Exit dashboard example early on PolyScope X < 10.11.0
1 parent 0820448 commit 1776c4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/dashboard_example.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ int main(int argc, char* argv[])
7070
{
7171
policy = DashboardClient::ClientPolicy::G5;
7272
}
73+
else if (version_information->minor < 11)
74+
{
75+
URCL_LOG_ERROR("DashboardClient examples require PolyScope version 10.11.0 or higher. Exiting now.");
76+
return 0;
77+
}
7378

7479
// Connect to the robot Dashboard Server
7580
auto my_dashboard = std::make_unique<DashboardClient>(robot_ip, policy);

0 commit comments

Comments
 (0)