Bash fails to work in the last two units in URDF course

Whenever I start my bash terminal I saw the following message:
bash: /opt/ros/kinetic/setup.bash: No such file or directory

It seems that there’s no setup.bash for the kinetic distro. But there is one for bash in the previous units. I don’t know why whenever I enter the unit 4 (XACRO basics) or unit 5 (the project) the bash just doesn’t work.

Hi,

Its because theose two units use a newer version of ROS, noetic.

So you need to recompile the catkin ws to adjust to that.

Here are the commands that should make it work. I’ll update the notebooks to have that too just in case

cd ~/catkin_ws
rm -rf build/ devel/
source /home/simulations/public_sim_ws/devel/setup.bash
catkin_make
source devel/setup.bash
rospack profile

After this remeber to always source the catkin_ws in the shell you are using with this command before doing anything else

cd ~/catkin_ws
source devel/setup.bash
rospack profile

Sorry for the inconvenience, we will work on fixing this as soon as possible

Hi after doing this, I still can’t use ros commands. Such as “rostopic list” will return “ERROR: Unable to communicate with master!”

Hi,

This is becuase you dindt launch the simulation. In the noetic part you have to launch the ismulation for everuthing to work. It statued in the notebook like this:

cd ~/catkin_ws
source devel/setup.bash
roslaunch simulation_gazebo main.launch

You should then get in the simulation window something like this:

We will fix this in a few days making the entire course like this, but for now its only Unit4 and Unit5

1 Like

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