Man sentenced to 10 years for robbery