Baidu Apollo's ROS indigo optimizations for ROS kinetic.
mkdir -p ~/kinetic-ws/src
cp apollo-kinetic-wet-git.rosinstall ~/kinetic-ws
cp build.sh ~/kinetic-ws/src
mkdir -p ~/kinetic-ws/third_party
cp build-third-party.sh ~/kinetic-ws/third_party
cd ~/kinetic-ws
wstool init -j8 src apollo-kinetic-wet-git.rosinstall
wstool update -j4 -t src
# Add new package to .rosinstall
# You can find the package info from the file generated by:
# rosinstall_generator desktop_full --rosdistro kinetic --deps --wet-only > kinetic-desktop-full-wet-git.rosinstall
# e.g. octomap/octomap :
# - git:
# local-name: octomap/octomap
# uri: https://github.com/ros-gbp/octomap-release.git
# version: release/kinetic/octomap/1.8.1-0
# add the section above to .rosinstall file like other packages, and then do a merge and update
# wstool merge -t src apollo-kinetic-wet-git.rosinstall
# wstool update -t src octomap/octomap
# start building
# build third party library.
cd src/third_party
./build-third-party.sh
cd ..
cd src
# build Kinetic. (build.sh is borrowed from [apollo-platform](https://github.com/ApolloAuto/apollo-platform/blob/master/ros/build.sh))
./build.sh build