[rospack] Error: stack/package roscpp not found
I'm using Ubuntu 12.04 and ROS Hydro.
While creating a package in one of my directories, i wrote the following line of code to the terminal (because i was facing the problem mentioned in here):
export ROS_PACKAGE_PATH=~/<PATH TO THE DIRECTORY I WAS MAKING THE PACKAGE IN>
After adding this line, i'm facing this error:
[rospack] Error: stack/package roscpp not found
whenever i type the following code:
rospack find roscpp
Although the package roscpp
is still present at this path: /opt/ros/hydro/share$
What is causing this issue? How do i solve it?