Computing force from collision

So I am trying to roll a ball from the plank and measure collision force when it encounters a manipulator. I am able to do both separately but I am not sure of the command, which will give me the contact force of the collision force of the ball with the manipulator. Any guidance regarding it will be highly appreciated.