Automated plank preparation and sorting for drying with a robotic manipulator