The system has been updated many times since then, although we kept the ROS distro configuration. You did it correctly to run the simulation manually.
I’m trying to reproduce the same environment but here I could not have the simulation running.
I have the fresh rosject copied but when I try to run the command
roslaunch duckietown_gazebo main.launch
I had some errors related to gazebo libs. Did you install something previously?
[Err] [SystemPaths.cc:429] File or path does not exist["/home/user/.gazebo/models/apartment/meshes/model.dae"]
[Err] [MeshShape.cc:67] No mesh specified
[Err] [Plugin.hh:165] Failed to load plugin libanimated_box.so: libanimated_box.so: cannot open shared object file: No such file or directory
[Err] [Plugin.hh:165] Failed to load plugin libanimated_box_south.so: libanimated_box_south.so: cannot open shared object file: No such file or directory
Please, let me know if you had something extra installed so I can reproduce exactly the same environment as you have.
note: in the video its shown with distro=kinetic and in the video the author has mentioned that we don’t need to build i.e. run as is. But its not happening for distro=noetic.
I have made some following changes to rosject i.e. earlier it was using the distro=kinetic. The problem with kinetic was that I was not getting the menu in the gazebo.
.roslaunch duckietown_gazebo main.launch
So to try different option I edited the distro to noetic. But when I try to do a roslaunch i.e.
.roslaunch duckietown_gazebo main.launch
I am getting the following error i.e.
RLException: [main.launch] is neither a launch file in package [duckietown_gazebo] nor is [duckietown_gazebo] a launch file nameThe traceback for the exception was written to the log file
then I did:
user:~$ source /home/user/simulation_ws/devel/setup.bash
~$ roslaunch duckietown_gazebo main.launch
bash: roslaunch: command not found
I am getting the error as : bash: roslaunch: command not found
What do you mean by “without the build” ?
We can run launch files without building them, but the build and devel folders must be present to be sourced, they will create the paths to the installation folders of ROS and all its libraries.Do you have such folders in the simulation_ws?
I tried the rosject you send to me with the same changes and still got the simulation launched like I’ve shown, but with some errors.
I need some time to understand it, I’ll get back with more details after debugging it.
By the way, are you running it inside ROSDS or in another environment?
As I mentioned earlier I am using the project as is without any modification i.e. both the devel and build folders are present both in simultaion_ws and catkin_ws (I have not done any kind of build or changed anything)
Again, as mentioned earlier if I use distro=kinetic then the project works. But I don’t get the menu in gazebo.
To get the menu in gazebo I have changed the distro=noetic. But the project doesn’t works even with errors as mentioned above I am getting the error : roslaunch command not found(so bascially even if I am setting the path to source ~/simulation_ws/devel/setup.bash. I am still get the error as roslaunch command not found)
Please do your research, fix the issue and then get back to me. Its almost a week now and still there is no solution.
Let me break into 2 parts the steps I followed.
The 1st part is compiling the environment properly using kinetic, since this project was designed for that distro.
1 - Remove build and devel folders from catkin_ws and simulation_ws
2 - Source /home/simulations/public_sim_ws/devel/setup.bash, it contains other dependencies of our platform
3 - Modify the files below, because they are referencing the package duckietown_msgs when it is not included in our system anymore, and not being used in the packages we are compiling
Finally, for simpler simulations, like the one you attached in the 1st image, you can also use the simulator coordinate frames. By convention, we have Blue for z-axis, red for x-axis and green for y-axis. The ground is divided in squares of 1 meter