You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run "rosrun teleop_twist_keyboard teleop_twist_keyboard.py",I get this error: File "/opt/ros/melodic/lib/teleop_twist_keyboard/teleop_twist_keyboard.py", line 83
pub = rospy.Publisher('cmd_vel', Twist, queue_size = 1)
^
TabError: inconsistent use of tabs and spaces in indentation
then I replace all the "Tab" to "space" ,it works!!
So, does this code need to be modified?
The text was updated successfully, but these errors were encountered:
That's odd. There were definitely mixed tabs and spaces in that file, but they'd been there for quite a few years, so I'm surprised that this is the first time it's been a problem.
The fix for this has been released in version 0.6.2 . Please keep an eye on the release tag on ROS Discourse to see when this reaches the public repositories for your version of ROS.
When I run "rosrun teleop_twist_keyboard teleop_twist_keyboard.py",I get this error:
File "/opt/ros/melodic/lib/teleop_twist_keyboard/teleop_twist_keyboard.py", line 83
pub = rospy.Publisher('cmd_vel', Twist, queue_size = 1)
^
TabError: inconsistent use of tabs and spaces in indentation
then I replace all the "Tab" to "space" ,it works!!
So, does this code need to be modified?
The text was updated successfully, but these errors were encountered: