Day 3
From Bambi
- Setup ROS development environment using Eclipse Oxygen
-
catkin config -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER_ARG1=-std=c++11 -D__cplusplus=201103L -D__GXX_EXPERIMENTAL_CXX0X__=1
-
bash -i -c "eclipse"
-
- Discussed messages and nodes design
- Switched back to QtCreator for new bambi ros package, because we noticed the catkin build tool support (not
catkin_make
) - Refactored bambi repository!
- Created submodules for mavlink and mavros
- Checked it in as whole catkin workspace
- PROVIDED developer setup shell script (!)
LESSONS LEARNED
In a submodule we are initially detached from the original repository, i.e. git push
will not push to the originating remote repository (which makes actually sense, since we are in a submodule and won't necessary change the original repository (we are formally not working on them). So any commit in the submodule will result in a HEAD DETACHED
state.
If we anyhow want to commit to the main repository of the submodule we have to checkout first:
-
git checkout <original-branch>
e.g. release/kinetic/mavlink
To fix head detached state:
-
git checkout <original-branch>
e.g. release/kinetic/mavlink -
git merge <your-temporary-branch-number-from-head-detached>
e.g. HEAD detached from 2ad55e0 -->2ad55e0
-
git push