Skip to content

Commit 087c461

Browse files
committed
Removed unnecessary check
1 parent 1ed3574 commit 087c461

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

examples/script_command_interface.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,9 @@ void sendScriptCommands()
7878
g_my_robot->getUrDriver()->setPDControllerGains({ 500.0, 500.0, 300.0, 124.0, 124.0, 124.0 },
7979
{ 44.72, 44.72, 34.64, 22.27, 22.27, 22.27 });
8080
});
81-
auto robot_version = g_my_robot->getUrDriver()->getVersion();
82-
if (robot_version > urcl::VersionInformation::fromString("10.10.0") ||
83-
(robot_version.major == 5 && robot_version.minor >= 23))
84-
{
85-
run_cmd("Setting max joint torques",
86-
[]() { g_my_robot->getUrDriver()->setMaxJointTorques({ 27.0, 27.0, 14.0, 4.5, 4.5, 4.5 }); });
87-
}
81+
// The following will have no effect on PolyScope < 5.23 / 10.10
82+
run_cmd("Setting max joint torques",
83+
[]() { g_my_robot->getUrDriver()->setMaxJointTorques({ 27.0, 27.0, 14.0, 4.5, 4.5, 4.5 }); });
8884
}
8985
URCL_LOG_INFO("Script command thread finished.");
9086
}

0 commit comments

Comments
 (0)