ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I have two versions of src file in the package under the workspace
I understand it as both your src
folder contains files with the same names and same CMakeList
but only some lines of code differs between the two.
That being said when you run catkin_make
after swapping your folders catkin
doesn't notice any change in your files (I don't really know how, probably CMake
related, but if someone can enlighten me on this part) so if nothing has changed catkin
won't rebuild everything as usual.
To avoid that you have two options :
build
and devel
folder each time you change the src
folderThe best option is the first one but I would recommend for that kind of things to use a version-control tool such as GIT
or SVN
.