[Bug] line 11 self.cmd = Twist() ^Indentation Error:unex

This is an error report.


Screenshot of the error


Error details

line 11 self.cmd = Twist() ^IndentationError: unexpected indent. It's an indentation space error.

You’re getting an IndentationError: unexpected indent at line 11 because Python expects consistent indentation (either all tabs or all spaces), and one or more lines are indented differently than expected.

Check the lines before line 11 to make sure the indentation is consistent.

This is an error report.


Screenshot of the error


Error details

line 11 self.cmd = Twist() ^IndentationError: unexpected indent. I just copy and paste the code and it says this space error, I fix the spaces and then run it and nothing happens.

It seems you pasted the code into the terminal, not into the IDE.

Please open the file in the IDE, copy the code again, and paste it into the IDE.

By the way, it seems your IDE is loading slower than usual (it should load in less than a minute). Please wait for it to load or change to a faster Internet connection.