Comprehensive Gradient Computation Framework of PCS Model for Soft Robot Simulation