Skip to content

Commit 4aad523

Browse files
committed
Fix decision breaker for position control. Make decision effect instantaneous.
1 parent e091563 commit 4aad523

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ur_robot_driver/include/ur_robot_driver/hardware_interface.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ class URPositionHardwareInterface : public hardware_interface::SystemInterface
138138

139139
bool robot_program_running_;
140140
bool non_blocking_read_;
141-
142141
bool position_interface_in_use_;
143142

144143
std::unique_ptr<urcl::UrDriver> ur_driver_;

ur_robot_driver/src/hardware_interface.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ return_type URPositionHardwareInterface::write()
393393
if (pos_diff_sum != 0.0)
394394
position_interface_in_use_ = true;
395395
}
396-
else if (position_interface_in_use_)
396+
397+
if (position_interface_in_use_)
397398
{
398399
ur_driver_->writeJointCommand(urcl_position_commands_, urcl::comm::ControlMode::MODE_SERVOJ);
399400
}

0 commit comments

Comments
 (0)