b-it-bots / mas_domestic_robotics

Robot-independent ROS packages for domestic applications
GNU General Public License v3.0
28 stars 45 forks source link

Migration of packages to Python 3 #175

Open argenos opened 5 years ago

alex-mitrevski commented 5 years ago

I can't recall if there was a discussion about this, but I think we should treat this issue independent of the Melodic migration for the time being. Because of ROPOD, we cannot (fully) migrate to Melodic now (i.e. we need our development machines to have Ubuntu 16.04/ROS kinetic), but most of the code can be migrated to Python 3 anyway since ROS kinetic works fine with Python 3 (with the exception of a few packages that need some fixing, notably mongodb_store and tf2).

argenos commented 5 years ago

This is only an issue for the staff, the rest of the team could migrate. We could, of course, try to make our kinetic and melodic branches compatible, I’m just not sure what the current issues are of setting up kinetic with python 3. What about using docker?

alex-mitrevski commented 5 years ago

I’m just not sure what the current issues are of setting up kinetic with python 3

As I said, I've only had problems with a few packages (I forgot to mention OpenCV in the above list, which is also problematic); everything else is working fine with Python 3.

What about using docker?

You mean docker for melodic, right?

argenos commented 5 years ago

I’m just not sure what the current issues are of setting up kinetic with python 3

As I said, I've only had problems with a few packages (I forgot to mention OpenCV in the above list, which is also problematic); everything else is working fine with Python 3.

Alright, based on that we would need:

What about using docker?

You mean docker for melodic, right?

Yes, we (the staff) could use docker for melodic. The rest can upgrade or have a bionic partition.

minhnh commented 5 years ago

In general, OpenCV shouldn't be an issue. The big change was indigo->kinetic since they went from OpenCV 2 to 3. kinetic->melodic is just OpenCV 3. I haven't got a chance to add tests for cv_bridge, however.

argenos commented 5 years ago

I reopened #176 and updated it to kinetic, and I can take care of it once someone creates the script.

alex-mitrevski commented 5 years ago

@minhnh I was referring to Python 3 on kinetic when I said there are problems with OpenCV; kinetic to melodic might not be a problem.

argenos commented 4 years ago

FWIW, on an unrelated test, I ended up having to test something with opencv and python3. cv_bridge needs to be built with python3, e.g. see here