Python 3 - the state of things
Hello, a newcomer to the ROS scene here,
If this is discussed or described somewhere in depth, and I have just missed it, please let me know!
I am building a ROS programme which will contain a mixture of C++ and Python nodes. I am wondering what the best practice is regarding Python versions? I assume it makes sense to use a consistent version of Python, as in all projects, ROS or not. However, since one basic concept of ROS is that messages are published in a consistent syntax (allowing nodes of C++ and Python to communicate), I am wondering why mixing Python version should pose an issue.
I found this question as a Github issue for rospy. Dirk hints that it is possible if the code works under both python2 and python3, but I wondering if anyone has tips or references for doing this. Are things any different if using ROS2?
P.s. - rospy
says that the best place for such questions is here :)