jdrew1303 / ros_duckie

An educational self driving car with ROS based on the Duckiebot
1 stars 0 forks source link

Make nodes Python 2 and 3 compatible #19

Open jdrew1303 opened 5 years ago

jdrew1303 commented 5 years ago

A user should not need to worry about the Python version installed on their system. This is particularly useful as versions in dev (desktop) and prod (raspberry pi) can and will change independently of each other. It will also happen between versions of ROS. By making them backwards and forwards compatible we can avoid this as a source of environmental issue.

Take a look at http://book.pythontips.com/en/latest/targeting_python_2_3.html for some ideas.