Compact robot for arc welding