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.
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.
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.