I am in Linux for robotics Unit 3 Advanced Utilities, i was running the code rosrun move_bb8_pkg move_bb8_square.py. i am getting this attribute error
user:~/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts$ rosrun move_bb8_pkg move_bb8_square.pyTraceback (most recent call last): File “/home/user/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts/move_bb8_square.py”, line 65, in movebb8_object = MoveBB8()
File “/home/user/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts/move_bb8_square.py”, line 13, in init
rospy.on_shutdown(self.shutdownhook)
AttributeError: ‘MoveBB8’ object has no attribute ‘shutdownhook’
user:~/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts$
I checked my file again several times to see if there is a mistake in code, but i copied the code correctly.