two cv_bridge packages for python 2 and 3

asked 2020-12-28 06:32:58 -0500

atagulmert gravatar image

hi, i need to use cv_bridge on two nodes that are running on python 2 and 3. I have compiled cv_bridge for python3 and sourced it but that broke python2 cv_bridge as it tries to access to python3 compiled cv_bridge and it won't work. What I want to do is have 2 different packages one for python2 and one for python3 I've tried to rename cv_bridge package following this, didn't really work. I was wondering if this is possible or are there better options? Also I need to launch my python3 node using roslaunch api for python, which makes me wonder if I wanted to use different environment how would that work?

ros melodic

thanks in advance

edit retag flag offensive close merge delete