Static and Dynamic Collision Avoidance for Autonomous Robot Navigation in Diverse Scenarios Based on Deep Reinforcement Learning