Skip to content

Commit d498590

Browse files
Felix Exnerfmauch
authored andcommitted
Added a comment about controller reset
1 parent 49bede6 commit d498590

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ur_robot_driver/src/ros/hardware_interface.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,13 @@ void HardwareInterface::read(const ros::Time& time, const ros::Duration& period)
464464
}
465465
else
466466
{
467+
// If reading from RTDE fails, this means that we lost RTDE connection (or that our connection
468+
// is not reliable). If we ignore this, the joint_state_controller will continue to publish old
469+
// data (e.g. if we unplug the cable from the robot). However, this also means that any
470+
// trajectory execution will be aborted from time to time if the connection to the robot isn't
471+
// reliable.
472+
// TODO: This doesn't seem too bad currently, but we have to keep this in mind, when we
473+
// implement trajectory execution strategies that require a less reliable network connection.
467474
controller_reset_necessary_ = true;
468475
if (!non_blocking_read_)
469476
{

0 commit comments

Comments
 (0)