pyrobosim.core.robot.Robot.is_in_collision

Robot.is_in_collision(pose: Pose | None = None) bool

Checks whether the last step of dynamics put the robot in collision.

Pose:

Optional pose to use for collision checking. If not specified, uses the robot’s current pose.

Returns:

True if the robot is in collision, False otherwise.