mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 01:50:46 +02:00
Limited the published IO state to 10 for pre 3.0
This commit is contained in:
@@ -384,8 +384,10 @@ private:
|
||||
while (!robot_.sec_interface_->robot_state_->getNewDataAvailable()) {
|
||||
msg_cond_.wait(locker);
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < 18; i++) {
|
||||
int i_max = 10;
|
||||
if (robot_.sec_interface_->robot_state_->getVersion() > 3.0)
|
||||
i_max = 18; // From version 3.0, there are up to 18 inputs and outputs
|
||||
for (unsigned int i = 0; i < i_max; i++) {
|
||||
ur_msgs::Digital digi;
|
||||
digi.pin = i;
|
||||
digi.state =
|
||||
|
||||
Reference in New Issue
Block a user