Why doesn't my workspace see a package in /opt/ros/indigo/share?

asked 2019-03-07 22:46:37 -0500

mugenzebra gravatar image

updated 2019-03-07 22:51:02 -0500

I installed the people package with "sudo apt-get install ros-indigo-people" which install the people package, people_msgs package and others. But when I try to use the package either by printing out a topic of a message from the people_msgs, or do "from people_msgs.msg import PositionMeasurement" in my python code, both fails to find the people_msgs package. But when I do "source /opt/ros/indigo/setup.bash" then I can see the package. Does anyone know why?

I'm also trying to add the people_msgs to my workspace under /my_ws/src or /my_ws/src/my_pkg/src, and modify the CMakeList.txt and package.xml, then try catkin_make which also fail because of dependency issue.

edit retag flag offensive close merge delete

Comments

1

But when I do "source /opt/ros/indigo/setup.bash" then I can see the package. Does anyone know why?

one possible cause would be that you've build your workspace without souring /opt/ros/indigo/setup.bash.

gvdhoorn gravatar imagegvdhoorn ( 2019-03-08 02:21:41 -0500 )edit