Ros Melodic, can I mix Python2.7 and Python3.0?
Hey gang,
I have a system that was developed for Noetic with python 3.x based stuff. Part of that is a UI we built using TkInterMapView which only is available for Python 3.x.
We have a need to backport our system to run on Melodic (don't ask), and I've been able to convert all my nodes to Python 2.7 no problem, but this UI is turning into a headache because of this TkInterMapView dependency not being available for Python 2.7.
The UI is bidirectional (it both publishes out messages and subscribes to them) so I need to be able to exchange messages with the rest of the system.
Is there some way I can build and run this particular UI running in Python3 and have the other nodes in the system run on Python 2.7? I'm actually running all the pieces of the system in Docker containers (each node in it's own container) so if I absolutely had to, I could run the container that the UI runs in on top of Noetic, but I know that typically you don't want to mix ROS version (Melodic Nodes talking with Noetic Nodes).
Anyone have any ideas how I can get around this issue? Or if somebody knows of a Python 2.7 equivalent of TkInterMapView that I could change the UI over to?
I should also add that we're using custom messages, which use mostly pretty standard simple types like ints, floats, strings, and in some cases geometry_msgs/Vector3 and geometry_msgs/Point32.