Co-Design Of Mobile Robots: Integrating Perception Systems And Motion Planning For Task-Specific Optimization