Python 2 is deprecated since January 1st, 2020. The Clover platform moves to Python 3.
For running flight script instead of
Python 3 has certain syntax differences in comparison with the old version. Instead of
print 'Clover is the best' # this won't work
print('Clover is the best')
The division operator operates floating points by default (instead of integer). Python 2:
10 / 4 2
10 / 4 2.5
unicode type is used by default (instead of
Encoding specification (
# coding: utf8) is not necessary any more.
More details on all the language changes see in appropriate article.
ROS Melodic version was updated to ROS Noetic. See the full list of changes in the ROS official documentation.