A surgical robotic system includes a robotic arm, an elongated slide coupled to the robotic arm, and an instrument drive unit coupled to a track defined by the slide. The instrument drive unit is configured to move along the track and includes a motor configured to interface with an electromechanical instrument to actuate functions of the electromechanical instrument. The slide is configured to rotate relative to the robotic arm about a longitudinal axis defined by the instrument drive unit.