A system, including one or more processors configured to receive imaging data of a surgical site, where an end effector held by a surgical robot is positioned in the surgical site, determine one or more control parameters from the imaging data, and drive the surgical robot accordingly.