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

How to get ROS and Anaconda to play well together?

asked 2018-11-06 15:27:33 -0500

chrisalbertson gravatar image

I want to make sure I've done the simple and obvious things first before I post detailed questions. I have Python 3 based software I want to bring into a ROS nodes and I use Anaconda to manage Python.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2021-02-18 10:56:53 -0500

Silvio Traversaro gravatar image

updated 2021-02-19 09:38:09 -0500

Hi! I found this answer from a Google search, just for your information in 2021 installing ROS directly in conda (without using apt-installed ROS at all, so removing any risk of incompatibility) should be much straightforward.

In particular you can simply install ROS Noetic packages in a conda environment with the following command:

conda install -c conda-forge -c robostack ros-noetic-desktop

See the following links for more details:

edit flag offensive delete link more

Comments

Instead of posting a link to a blog post could you please update your answer with a summary of it or the relevant information from it?

jayess gravatar image jayess  ( 2021-02-18 16:37:38 -0500 )edit
1

I should have done this, feel free to let me know if you think the new answer is ok, thanks!

Silvio Traversaro gravatar image Silvio Traversaro  ( 2021-02-19 09:35:06 -0500 )edit
1

answered 2018-11-07 04:44:27 -0500

bpinaya gravatar image

I know linking to videos is not much of an answer but from this video you can see the necessary steps to achieve what you are asking. I'll put them here but the video is worth the check out:

  1. Create a conda env with python 3 in your case.
  2. Activate it.
  3. pip install -U rospkg
  4. Activate again.
  5. Done

I've tested this with conda with python 2.7 and the basic pub/sub and it works.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-11-06 15:27:33 -0500

Seen: 11,109 times

Last updated: Feb 19 '21