Skip to content

Commit 6ecbff6

Browse files
committed
Fix version check to also include CB3
1 parent 0d5a29e commit 6ecbff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ur/ur_driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void UrDriver::init(const UrDriverConfiguration& config)
147147

148148
const control::PDControllerGains pd_gains = control::getPdGainsFromRobotType(robot_type);
149149
std::stringstream pd_gains_ss;
150-
if (robot_version_.major == 5 && robot_version_.minor < 10)
150+
if (robot_version_ < urcl::VersionInformation::fromString("5.10.0"))
151151
{
152152
// Structs are only available in URScript 5.10 and later. It isn't used pre 5.23, so we can safely set it to 0.
153153
pd_gains_ss << 0;

0 commit comments

Comments
 (0)