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

How to use python2 and python3 at the same time on ROS melodic

asked 2022-09-17 01:06:05 -0500

nagi gravatar image

updated 2023-06-18 10:05:55 -0500

lucasw gravatar image

Hi everyone,

I'm fairly new to ROS. My first node is written in Python 2, and my second is written in Python 3. Because it has Python3, the master node is not sending data to the second node. Is there anything I need to install or configure to run Python 2 and Python 3 concurrently? If anyone has any suggestions. Please advise on the best way to resolve this.

Thanks.

edit retag flag offensive close merge delete

Comments

Create two separate workspace, say py2_ws and py3_ws. Keep Python 2 codes in py2_ws and so on.

ravijoshi gravatar image ravijoshi  ( 2022-09-17 12:47:48 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-03-17 11:06:05 -0500

tufail gravatar image

Hi, I think this question has been answered here. As you can see, there are a few workarounds necessary to enable Python 2 and Python 3 nodes on ROS Melodic. For beginners, it could be a little challenging, but it is worth a shot. Good luck!

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-09-17 01:06:05 -0500

Seen: 447 times

Last updated: Mar 17 '23