Why doesn't my workspace see a package in /opt/ros/indigo/share?
I installed the people package with "sudo apt-get install ros-indigo-people" which install the people package, peoplemsgs package and others. But when I try to use the package either by printing out a topic of a message from the peoplemsgs, or do "from peoplemsgs.msg import PositionMeasurement" in my python code, both fails to find the peoplemsgs 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 peoplemsgs to my workspace under /myws/src or /myws/src/mypkg/src, and modify the CMakeList.txt and package.xml, then try catkin_make which also fail because of dependency issue.
Asked by mugenzebra on 2019-03-07 23:46:37 UTC
Comments
one possible cause would be that you've build your workspace without souring
/opt/ros/indigo/setup.bash
.Asked by gvdhoorn on 2019-03-08 03:21:41 UTC