ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Python updates vs ROS updates

asked 2022-12-08 10:47:01 -0600

Iony_M gravatar image

Hi dear friends,

Python is clearly (at least to me) being upgraded faster than new Distros of ROS are being released. As python 3.11 is on the verge of being released, I had the following doubt(s):

  1. Is is even possible to profit from this improvements and new functionalities? Say if I wanted my ROS code to run on >3.5?
  2. Is there something to consider or to change for it to happen?

Disregarding whether yes or no, I'd appreciate some comment on the WHY.

love for all

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-12-10 10:32:16 -0600

Mike Scheutzow gravatar image

The answer depends on if you want the convenience of using the binary repositories. If you are willing to build all your ros packages from source code, then fix the bugs introduced by the newer version of python, then yes, you can upgrade your environment to a later version of python.

Most people who are writing code want to focus on one specific part of ros, so the complexity and amount of work (e.g. debugging other people's source code) is not worth the benefit of a slightly more featured python.

edit flag offensive delete link more

Comments

But that is regarding the binaries of the packages written in 3.x python right? I was more asking about whether is possible to have both 3.X (x>5) python code running indeed on that python and having that code interface correctly with binaries built on a python version probably not as new?

Iony_M gravatar image Iony_M  ( 2023-01-06 11:01:17 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2022-12-08 10:47:01 -0600

Seen: 257 times

Last updated: Dec 10 '22