[Bug] Exercise 3.1 Error

This is an error report.


Screenshot of the error


Error details

From Unit 2, we were told to move the my_scripts folder to move_bb8_pkg folder, which has the move_bb8_square.py file. However the error says that the package is not found. The program will still run with python move_bb8_square.py but not with rosrun command.

Hi,
Just reexecuted all teh commands form unit2 and unit3 and the command

user:~/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts$ rosrun move_bb8_pkg move_bb8_square.py

Worked. Can you check you didn’t miss the change in the permissions?
Try Pressing the restart button in the terminal and run again, it looks like a sourcing issue for some reason in your environment something has changed.

Also if that doesn’t work, lets recompile your environment so that its clean and working:

cd ~/catkin_ws/;rm -rf build/ devel/;source /opt/ros/noetic/setup.bash ;catkin_make;source devel/setup.bash

rosrun move_bb8_pkg move_bb8_square.py

It has to work, otherwise something in the package you downloaded has ben changed .
Please check that. If nothing works please let us know.

Hello,

The first command did not work. I tried to recompile the environment using the second command and ran “rosrun move_bb8_pkg move_bb8_square.py” and it worked! Thank you for your help.

1 Like

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