Approach of gray code structured light for mapping automation