Source of ws fails in Turtlebot Course project

I have followed the guideline given by you, but it does not seem to work when sourcing, see below.
If I cannot source files, I am not able to do anything.

Source simulation_ws fails:

user:~$ source ~/simulation_ws/install/setup.bash
not found: "/home/user/ros2_ws/install/turtlebot3_node/share/turtlebot3_node/local_setup.bash"

Source ros_ws fail

user:~$ source ros2_ws/install/setup.bash
ROS_DISTRO was set to 'foxy' before. Please make sure that the environment does not mix paths from different distributions.
not found: "/home/user/simulation_ws/devel/local_setup.bash"
ROS_DISTRO was set to 'noetic' before. Please make sure that the environment does not mix paths from different distributions.
not found: "/home/user/ros2_ws/install/turtlebot3_node/share/turtlebot3_node/local_setup.bash"

Are you talking about the Real Robot Project? I can’t find the project that you speak of. Could you please share a screenshot to clarify?

Yes it is the Real Robots project

How are we supposed to know what your problem is if you provide such little information?!?!?

We have hundreds of projects and courses, and we cannot know what did you do before getting the error unless you clearly explain what are you talking about (which course, rosject, exercise or whatever are you talking about) and which steps did you do until you encounter the problem.

Just an incomplete screenshot (you just posted a small part of the screen) will not clarify the problem.

Also your information makes no sense because you posted the issue in the ROS Basics in 5 Days (C++) Forum support , which is about ROS1, but the commands you are showing are about ROS2.

Please explain clearly what where you trying to do, which steps you took, and what was the unexpected result you got. If possible, clarify with several screen captures

Hi,
Reason for so little information regarding the issue, is that it is all I have.
I litteraly just started the “Real Robot Project” from the GUI, and the first thing that is asked for is to run the “source ~/simulation_ws/install/setup.bash” command.

Since it failed, I don’t know what to do.
You are correct that it is the " ROS2 Basics in 5 Days (C++)" and not “ROS”, my mistake.

My goal is to just be able to start the project to go on with the course.

Let me know what more information you need? I will be happy to provide that. But as mentioned it is the first time I opened “ROSDS”, I have not altered anything:

What happens when others try to open this specific ROSJECT “Real Robot Project” for ROS2 and run the source command? Could it be that it has not been tried recently and your environment is broken?

I apologize for the glitch; there appears to be a compilation error in ros2_ws, but it does not affect the simulation.

So if you run:

source ~/simulation_ws/install/setup.bash
ros2 launch turtlebot3_gazebo main_turtlebot3_lab.launch.xml

The simulation works as expected, despite that error.

Please fix the ros2_ws error by running:

cd ~/ros2_ws
rm -rf build/ install/ log/
colcon build
source install/setup.bash

cd ~/simulation_ws
source install/setup.bash # no errors

We’ll correct the master project.

Thanks for the help. It now can source the files.

1 Like

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