Skip to content

Commit c36655a

Browse files
committed
Fix version check to also include CB3
1 parent bcc60b7 commit c36655a

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
@@ -144,7 +144,7 @@ void UrDriver::init(const UrDriverConfiguration& config)
144144

145145
const control::PDControllerGains pd_gains = control::getPdGainsFromRobotType(robot_type);
146146
std::stringstream pd_gains_ss;
147-
if (robot_version_.major == 5 && robot_version_.minor < 10)
147+
if (robot_version_ < urcl::VersionInformation::fromString("5.10.0"))
148148
{
149149
// 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.
150150
pd_gains_ss << 0;

0 commit comments

Comments
 (0)