Linux Basics Project: Can launch first simulation. Unable to "/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/local_setup.bash"

I’m going through the Learning week and reached the project phase on Linux Basics.
First command intended to setup simulation returns an error:

user:~$ source ~/simulation_ws/install/setup.bash

not found: “/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/local_setup.bash”

Did anyone got this error?

1 Like

Recompile the workspace and see if the issue is resolved. The missing file should be there if the workspace was properly compiled.

I suppose you are taking the ROS2 Learning Week, so the proper command for that should be

cd ~/simulation_ws
rm -rf build/ install/ log/
colcon build
source install/setup.bash
1 Like

I tried that also, but it doesnt work after that also

This is the problem

c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gmake[2]: *** [CMakeFiles/turtlebot3_drive.dir/build.make:76: CMakeFiles/turtlebot3_drive.dir/src/turtlebot3_drive.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:143: CMakeFiles/turtlebot3_drive.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs…
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
gmake[2]: *** [CMakeFiles/obstacles.dir/build.make:76: CMakeFiles/obstacles.dir/models/turtlebot3_dqn_world/obstacle_plugin/obstacles.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:221: CMakeFiles/obstacles.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

Failed <<< turtlebot3_gazebo [6min 45s, exited with code 2]

Summary: 10 packages finished [6min 46s]
1 package failed: turtlebot3_gazebo
2 packages had stderr output: turtlebot3_gazebo turtlebot3_msgs
1 package not processed

@rmatatraining
@hritzj1100

Please give us more information on the specific material you are following:

  • Is it a course - please provide the name and, if possible, the details link
  • Is it a rosject - please provide the name and, if possible, the share link

Thank you so much, for the solution, but mostly for taking the time to support!!
In my case, it seems to have worked, there was some initial errors/warnings but seems to have completed successfully and I was able to launch the simulation.

In my case it was the project for the Linux basic training for the learning week as you guessed.

Terminal execution:---------------------------------------------------------------------------------
user:~$ source ~/simulation_ws/install/setup.bashnot found: “/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/local_setup.bash”
user:~$ cd ~/simulation_wsuser:~/simulation_ws$ rm -rf build/ install/ log/user:~/simulation_ws$ colcon build
Starting >>> turtlebot3_description
[1.876s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/simulation_ws/install/turtlebot3’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[1.876s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/simulation_ws/install/turtlebot3_teleop’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[1.876s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/simulation_ws/install/turtlebot3_realrobot’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[1.877s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/simulation_ws/install/turtlebot3_navigation2’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[1.877s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/simulation_ws/install/turtlebot3_example’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[1.877s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/simulation_ws/install/turtlebot3_msgs’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[1.877s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/simulation_ws/install/turtlebot3_bringup’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[1.877s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/simulation_ws/install/turtlebot3_description’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[1.877s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/simulation_ws/install/turtlebot3_cartographer’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[1.877s] WARNING:colcon.colcon_ros.prefix_path.ament:The path ‘/home/user/simulation_ws/install/fastbot_realrobot’ in the environment variable AMENT_PREFIX_PATH doesn’t exist
[1.880s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/simulation_ws/install/turtlebot3’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[1.880s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/simulation_ws/install/turtlebot3_realrobot’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[1.880s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/simulation_ws/install/turtlebot3_navigation2’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[1.880s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/simulation_ws/install/turtlebot3_msgs’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[1.880s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/simulation_ws/install/turtlebot3_bringup’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[1.880s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/simulation_ws/install/turtlebot3_description’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[1.880s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/simulation_ws/install/turtlebot3_cartographer’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
[1.881s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path ‘/home/user/simulation_ws/install/fastbot_realrobot’ in the environment variable CMAKE_PREFIX_PATH doesn’t exist
Starting >>> turtlebot3_msgs
Starting >>> turtlebot3_cartographer
Starting >>> turtlebot3_gazebo
Starting >>> turtlebot3_navigation2
Starting >>> turtlebot3_teleop
Starting >>> fastbot_realrobot
Starting >>> turtlebot3_realrobot
Finished <<< turtlebot3_teleop [8.72s]
Finished <<< turtlebot3_navigation2 [9.39s]
Finished <<< turtlebot3_cartographer [9.46s]
Finished <<< fastbot_realrobot [9.81s]
Finished <<< turtlebot3_description [10.3s]
Starting >>> turtlebot3_bringup
Finished <<< turtlebot3_bringup [2.62s]
Finished <<< turtlebot3_realrobot [14.4s]
[Processing: turtlebot3_gazebo, turtlebot3_msgs]
— stderr: turtlebot3_msgs
CMake Warning at /home/simulations/ros2_sims_ws/install/rosidl_generator_rs/share/rosidl_generator_rs/cmake/rosidl_generator_rs_generate_interfaces.cmake:62 (message):
Rust actions generation is not implemented
Call Stack (most recent call first):
/opt/ros/humble/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
/opt/ros/humble/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions)
CMakeLists.txt:45 (rosidl_generate_interfaces)


Finished <<< turtlebot3_msgs [53.5s]
Starting >>> turtlebot3_example
Finished <<< turtlebot3_example [1.96s]
Starting >>> turtlebot3
Finished <<< turtlebot3 [2.00s]
[Processing: turtlebot3_gazebo]
— stderr: turtlebot3_gazebo
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (PkgConfig)
does not match the name of the calling package (gazebo). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
/usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake:72 (include)
CMakeLists.txt:23 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.


Finished <<< turtlebot3_gazebo [1min 31s]
Starting >>> turtlebot3_simulations
Finished <<< turtlebot3_simulations [1.49s]

Summary: 12 packages finished [1min 34s]
2 packages had stderr output: turtlebot3_gazebo turtlebot3_msgs
user:~/simulation_ws$ source ~/simulation_ws/install/setup.bash
user:~/simulation_ws$ ros2 launch turtlebot3_gazebo main_turtlebot3_lab.launch.xml
[INFO] [launch]: All log files can be found below /home/user/.ros/log/2025-11-14-22-35-01-391286-3_xterm-4756
[INFO] [launch]: Default logging verbosity is set to INFO
urdf_file_name : turtlebot3_burger.urdf
[INFO] [gzserver-1]: process started with pid [4757]
[INFO] [gzclient-2]: process started with pid [4759]
[gzclient-2] ++ ls /usr/bin/gzclient-11.10.2
[gzclient-2] + gzclient_path=/usr/bin/gzclient-11.10.2
[gzclient-2] + DISPLAY=:2
[gzclient-2] + /usr/bin/gzclient-11.10.2 ‘’ ’ ’ ‘’ ’ ’ ‘’ ’ ’ ‘’
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag formodel: ring_road_v2. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag formodel: triangular_prism. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag formodel: triangular_prism_direccion_obligada. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag formodel: triangular_prism_direccion_obligada. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag formodel: triangular_prism. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag formodel: triangular_prism_pedestrian. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag formodel: triangular_prism_pedestrian. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] ALSA lib confmisc.c:855:(parse_card) cannot find card ‘0’
[gzserver-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
[gzserver-1] ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
[gzserver-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[gzserver-1] ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
[gzserver-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error:No such file or directory
[gzserver-1] ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
[gzserver-1] ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
[gzserver-1] AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device ‘default’: No such file or directory
urdf_file_name : turtlebot3_burger.urdf
[INFO] [rviz2-5]: process started with pid [4966]
[INFO] [robot_state_publisher-3]: process started with pid [4962]
[INFO] [spawn_entity.py-4]: process started with pid [4964]
[robot_state_publisher-3] [INFO] [1763159719.968952453] [robot_state_publisher]: got segment base_footprint
[robot_state_publisher-3] [INFO] [1763159719.969091164] [robot_state_publisher]: got segment base_link
[robot_state_publisher-3] [INFO] [1763159719.969104005] [robot_state_publisher]: got segment base_scan
[robot_state_publisher-3] [INFO] [1763159719.969112658] [robot_state_publisher]: got segment caster_back_link
[robot_state_publisher-3] [INFO] [1763159719.969120888] [robot_state_publisher]: got segment imu_link
[robot_state_publisher-3] [INFO] [1763159719.969129259] [robot_state_publisher]: got segment wheel_left_link
[robot_state_publisher-3] [INFO] [1763159719.969137808] [robot_state_publisher]: got segment wheel_right_link
[rviz2-5] QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-user’
[rviz2-5] [INFO] [1763159721.005144722] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-5] [INFO] [1763159721.008547303] [rviz2]: OpenGl version: 4.5 (GLSL 4.5)
[rviz2-5] [INFO] [1763159721.375565135] [rviz2]: Stereo is NOT SUPPORTED
[spawn_entity.py-4] [INFO] [1763159722.604188645] [spawn_entity]: Spawn Entity started
[spawn_entity.py-4] [INFO] [1763159722.617817940] [spawn_entity]: Loading entity XML from file /home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/models/turtlebot3_burger/model.sdf
[spawn_entity.py-4] [INFO] [1763159722.637312303] [spawn_entity]: Waiting for service /spawn_entity, timeout = 30
[spawn_entity.py-4] [INFO] [1763159722.638738184] [spawn_entity]: Waiting for service /spawn_entity
[spawn_entity.py-4] [INFO] [1763159724.000701263] [spawn_entity]: Calling service /spawn_entity
[gzserver-1] [INFO] [1763159724.693767905] [turtlebot3_imu]: <initial_orientation_as_reference> is unset, using default value of false to comply with REP 145 (world as orientation reference)
[spawn_entity.py-4] [INFO] [1763159725.096927024] [spawn_entity]: Spawn status: SpawnEntity: Successfully spawned entity [burger]
[gzserver-1] [INFO] [1763159725.275979061] [turtlebot3_diff_drive]: Wheel pair 1 separation set to [0.160000m]
[gzserver-1] [INFO] [1763159725.276055637] [turtlebot3_diff_drive]: Wheel pair 1 diameter set to[0.066000m]
[gzserver-1] [INFO] [1763159725.295715374] [turtlebot3_diff_drive]: Subscribed to [/cmd_vel]
[gzserver-1] [INFO] [1763159725.299723428] [turtlebot3_diff_drive]: Advertise odometry on [/odom]
[gzserver-1] [INFO] [1763159725.308646712] [turtlebot3_diff_drive]: Publishing odom transforms between [odom] and [base_footprint]
[gzserver-1] [INFO] [1763159725.357501997] [turtlebot3_joint_state]: Going to publish joint [wheel_left_joint]
[gzserver-1] [INFO] [1763159725.359201260] [turtlebot3_joint_state]: Going to publish joint [wheel_right_joint]
[INFO] [spawn_entity.py-4]: process has finished cleanly [pid 4964]
[rviz2-5] [INFO] [1763159739.296970057] [rviz_node]: Message Filter dropping message: frame ‘base_scan’ at time 16.280 for reason ‘the timestamp on the message is earlier than all the data in the transform cache’


Kudos to you!!

1 Like

The course is Linux basic for Ros, and the project is also for this curse.

Your issue is different because he was talking about the ROS2 Learning Week rosject, and you are talking about the Linux course and its rosject.

Could you kindly create another post explaining the issue you are having? Please provide as many details as possible so we can check and provide a solution ASAP.

Same problem, I’ve got on Linux Basics first rosject.
Please, I need a solution

@adedayoelijah
We have fixed the problem in the source rosject. I apologize for the inconvenience.

Please delete the current rosject from “My Rosjects” and make another copy.

Ok thanks!!
I think there was some issue with the files itself

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.