mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 10:00:48 +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()) {
|
while (!robot_.sec_interface_->robot_state_->getNewDataAvailable()) {
|
||||||
msg_cond_.wait(locker);
|
msg_cond_.wait(locker);
|
||||||
}
|
}
|
||||||
|
int i_max = 10;
|
||||||
for (unsigned int i = 0; i < 18; i++) {
|
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;
|
ur_msgs::Digital digi;
|
||||||
digi.pin = i;
|
digi.pin = i;
|
||||||
digi.state =
|
digi.state =
|
||||||
|
|||||||
Reference in New Issue
Block a user