Ask Your Question
0

How do you add the path "/usr/local/lib/python2.7/" to your catkin environment?

asked 2018-02-06 18:43:20 -0600

OwnageManFromLOL gravatar image

Every time I do a source devel/setup.bash in my environment my ROS packages in the environment are unable to whatever is in the path I mentioned. How can I make this happen?

edit retag flag offensive close merge delete

Comments

I'm not understanding your question. Your packages are unable to what?

jayess gravatar imagejayess ( 2018-02-06 22:42:46 -0600 )edit

The package cv resides in the path "/usr/local/lib/python2.7/dist-packages", but the $PYTHONPATH after I do a source devel/setup.bash is in "/opt/ros/kinetic/". How can I reconcile this difference?

OwnageManFromLOL gravatar imageOwnageManFromLOL ( 2018-02-06 23:11:16 -0600 )edit

OpenCV has been included with ROS since Indigo. Have you seen the OpenCV 3 page on the wiki?

jayess gravatar imagejayess ( 2018-02-07 00:50:47 -0600 )edit

In the code that I am using, there is a line in the python script that saids "import cv", but this library is not in the path for my ROS workspace.

OwnageManFromLOL gravatar imageOwnageManFromLOL ( 2018-02-07 08:18:44 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-11-06 06:31:25 -0600

wonwon0 gravatar image

updated 2019-11-06 06:32:11 -0600

This is not a direct answer to your question, but more to your initial problem...

After sourcing setup.bash, maybe try

pip install opencv-python --user

edit flag offensive delete link more

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: 2018-02-06 18:43:20 -0600

Seen: 94 times

Last updated: Nov 06