How use simulation in the rosject

I am doing the first part of my first project in Rosject and I have a basic question. I have created my package and files in the /catkin_ws/src directory. My problem is that I do not know how should I use gazebo to see the the result of my code in the simulation environment. Could you please help me out or tell me where I can read about this?


To launch the simulation, do the following:

  1. Open a terminal by pressing on the terminal icon at the bottom left.

  2. On the opened terminal, type the following ROS command that launches the simulation:

roslaunch realrobotlab main.launch

To see the simulation, press the Gazebo button in the bottom left side of your screen, and select Open Gazebo

I personally had to zoom out Gazebo in order to see the map and robot.
Once you see them and launch your codes ou should see it moving.

thank you the problem was the same.