ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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 -0500

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 image jayess  ( 2018-02-06 22:42:46 -0500 )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 image OwnageManFromLOL  ( 2018-02-06 23:11:16 -0500 )edit

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

jayess gravatar image jayess  ( 2018-02-07 00:50:47 -0500 )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 image OwnageManFromLOL  ( 2018-02-07 08:18:44 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

wonwon0 gravatar image

updated 2019-11-06 06:32:11 -0500

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

Question Tools

1 follower

Stats

Asked: 2018-02-06 18:43:20 -0500

Seen: 306 times

Last updated: Nov 06 '19