Move_bb8_square.py not working

I am getting this error after executing move_bb8_square.py:

user:~/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts$ rosrun move_bb8_pkg move_bb8_square.py
File “/home/user/catkin_ws/src/linux_course_files/move_bb8_pkg/my_scripts/move_bb8_square.py”, line 11
self.cmd = Twist()
^
IndentationError: unexpected indent

You are having trouble with Python indentation. In which lesson/course ?
Why using self.cmd = Twist() ? Post full code please.

I am facing this problem in the course- Linux for robotics - Advanced utilities - I

Problem Solved
Just use : set paste

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