Dynamic Obstacle Spawner for Gazebo Classic
Spawns walking people (Scrubs 3D model) and moves them along paths
using sinusoidal interpolation for smooth, realistic movement.
Nav2 detects them via lidar and avoids them in real-time.
Uses gazebo_msgs services:
/spawn_entity (gazebo_msgs/srv/SpawnEntity)
/set_entity_state (gazebo_msgs/srv/SetEntityState)
/delete_entity (gazebo_msgs/srv/DeleteEntity)
Usage:
ros2 run robot_simulation obstacle_spawner.py
ros2 run robot_simulation obstacle_spawner.py --ros-args -p scenario:=hospital