I am trying to install a new version of OpenCV for ROS installed in ROSBot 2.0 to run a detection algorithm written in C++. Currently when I type
pkg-config --modversion opencv, the version of openCV displayed is 3.2.0 but for the algorithm, the openCV version should be greater than equal to 3.4. Is there a prescribed way to do this. Some of the platforms suggested to manually set the environment variable OpenCV_DIR in a CMakeLists.txt file. But I have not been able to find this file. Is there a presecribed way to change the Open CV version in ROS in ROSbot ?