Local package path is not prioritized over installed package path
I have build one package locally in separate workspace and using that package path (install/setup.bash) to build my package. But when I try to build my package it doesn't take locally build package path but it takes path of installed package because same package is there in crystal setup.
Does any one know how to solve this issue ?
Update
cd my_package_ws
source /opt/ros/crystal/setup.bash
source /opt/ros/locally_build_package/install/setup.bash
colcon build
As you said package used is depends on the order in which they appear in your environment variable. In my build steps, environment variable "/opt/ros/crystal/setup.bash" path appears first so colcon build finds package from installed packages.
Do you know how can I forcefully tell 'colcon build' to avoid using installed path ?
Related: https://answers.ros.org/question/3756...