Gazebo GUI didn't work when i used the "ros2 launch gazebo_ros gazebo.launch.py" command, It did appear with the "gazebo" command. Does anyone know how to fix this? I have tried to reinstall gazebo and gazebo_ros pkg for couples of time, but It didnt work.
After running the "ros2 launch gazebo_ros gazebo.launch.py --debug" command, It said: "Failed to load the launch file without a context: ThisLaunchFileDir used outside of a launch file (in a script)"
Solution: "source /usr/share/gazebo/setup.bash" is required, I dont know why it is required because all tutorial that i watched this source command was not added. After adding this command, My problem is solved.
ros2 launch gazebo_ros gazebo.launch.py --debug
. If this mode gives more information, please update the question accordingly. $\endgroup$