When attempting to launch simulation, source command does not work and when Gazebo comes up the robot model does not appear

Hello, I’m on part 2 of the Python Basics Real Robot Project. I’ve completed all functions that were asked for in the file for no class implementation and for class implementation. I was trying to bring up the simulation by executing the commands specified in the notebook

source ~/simulation_ws/install/setup.bash
ros2 launch fastbot_realrobot main_fastbot_lab.launch.xml

When executing in the shell, source didn’t work. It says the local_setup.bash file was not found. The second command worked and gazebo was launched. However, the robot model never appears.

P.S I tried the commands multiple times. The same thing happens.

Any help is appreciated, thanks.

@oniwarrior
That command should be run after you have connected to the real robot. The command for the simulation is specified earlier in the notebook. Please scroll up to find it.

If you have problems with the command for starting the simulation, please back up your work on your local PC, then delete the rosject and copy it again.

I just tested the code that you pasted in the response and it works. The simulation along with the model comes up and appears. Thanks for your help.

1 Like