Ask Your Question
1

How can work with ros inside a python 3 conda env

asked 2019-02-09 07:42:07 -0600

mohamedaminhuidi gravatar image

I am working on a mobile robot that can detect and track people. for the detection and tracking, i want to use my own models and write a ros node that will publish the coordinates of the person you want to follow to the action server. i have ros kinetic installed,and i installed anaconda and made a conda env with all the deep learning libraries i need.however i am wondering how can i work with ros inside my conda env in which python 3 is the default language. ps:i have seen that you can modify your bash rc to work with either of them,but you cant work with both at the same time (with ros while inside my conda env) ps: the solution at https://github.com/udacity/RoboND-Pyt... made me unable to work with ros at all.and conda still worked even when i didnt do the unset pythonpath. ps: i cant install kinetic for python 3 because i need to use other packages in the navigation stack.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-02-25 03:22:22 -0600

mohamedaminhuidi gravatar image

got my answer.you can't use conda and ros together. i think there is a way that can get you to use ros in a conda environment,but then you won't be able to use it outside of that env. basically its not worth the effort. just install whatever deep learrning library you want without conda, and specifiy in the shebang of your ros node what version of python you are using(python or python3).

edit flag offensive delete link more

Comments

1

I created a small wrapper that might ease the process of using ROS inside a Conda environment. It can be found here.

rickstaa gravatar imagerickstaa ( 2019-11-08 10:36:03 -0600 )edit

well that's awesome, its an amazing application. thank you sir.

mohamedaminhuidi gravatar imagemohamedaminhuidi ( 2019-11-08 13:58:56 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-02-09 07:42:07 -0600

Seen: 230 times

Last updated: Feb 25