A robotic surgical system includes a robotic arm, a surgical device coupled with the robotic arm and configured to extend through a body wall of a patient, and a controller in communication with the robotic arm. The controller is configured to determine a position of the surgical device relative to the patient. The controller is also configured to acknowledge a maximum allowable metric associated with the body wall at the determined position, and determine a metric associated with the body wall at the determined position. The controller is furthermore configured to drive the robotic arm to manipulate the surgical device such that the determined metric does not exceed the maximum allowable metric.