Ros for Windows 10, ros doesn't recognise my catkin packages!
I am new to ros, and trying to learn from examples.
I create a catkin workspace using catkin_make, and then try to rosrun one of the contents inside of package but ros doesn't recognise package. I think it is about the setup.bat file. In ubuntu there are these lines of code to run after catkin_make:
echo "source ~/robotics/devel/setup.bash" >> ~/.bashrc source ~/.bashrc
But in windows, I just call the setup.bat file which is in the /robotics/devel folder. But it doesn't work anyway.
Thanks.
@JustNewToROS, after running the
devel\setup.bat
, your/robotics/src
should be added to this environment variable%ROS_PACKAGE_PATH%
. Can you check if it is the case? Also, you can runrospack list
to see what's the packages visible to your workspace. If it looks for the correct location and you still cannot see your package, I'd suggest you sharing yourpackage.xml
and your package folder structure, and then we can see what you can check in advance.Thank you for your answer, I have checked like you suggested:
C:\Windows\System32>echo %ROS_PACKAGE_PATH%
C:\opt\ros\melodic\x64\share
and nothing more.
The procedure didn't add my package's path to the environment variable %ROS_PACKAGE_PATH%.
After a quick research I have found this piece of command -setx- will solve my problem but apparently, it didn't.
After, I run the command and check if the path is changed in a new terminal, it didn't.
How can I add my package's path to the %ROS_PACKAGE_PATH% ?
Thanks again.