Skip to content

kheaactua/conan-tf2

Repository files navigation

Conan recipe to build ROS's TF2 library. This script should work on all platforms.

Introduction

This is designed to be a ROS Independent build of TF2. It was built by setting up an 18.04 VM, following the ROS install instructions, cloning the ros/geometry2 and roscpp_cpp repositories, and copying in the required files from the apt install.

Specifically:

  • Followed these instructions. e.g. added the ppa, and installed ros-melodic-ros-base
  • Cloned geomtry2 at tag 0.6.5 / 39b89b987e1333d39557ad0555c96214cea17dc8
  • Cloned roscpp_core at tag 0.6.11 / d2bb8cbcfd4944e48d16cdb20edfab5d225db265
  • Manually copied the ros, geometry_msgs, tf2_msgs, and std_msgs includes installed to the system into include/
  • Re-wrote the CMakeLists.txt file
  • Authored the conanfile.txt to provide boost and console_bridge

Updating Source

If the tf2 source needs to be updated, e.g. if the melodic-develop is updated, you should be able to clone the geometry2 repository, filter tf2 out, and pull the updates in.

cd /tmp
git clone https://github.com/ros/geometry2
cd geometry2
git filter-branch --subdirectory-filter tf2 -- --all

cd /tmp
git clone https://github.com/ros/roscpp_core
cd roscpp_core
git filter-branch --subdirectory-filter rostime -- --all

cd /tmp
git clone https://github.com/kheaactua/conan-tf2.git
git checkout melodic
git remote add updates-tf2 file:///tmp/geometry2
git remote add updates-rostime file:///tmp/roscpp_core

git pull --allow-unrelated-histories updates-tf2 0.6.5
git pull --allow-unrelated-histories updates-rostime 0.6.11
git reset package.xml CHANGELOG.rst CMakeLists.txt; git checkout package.xml CHANGELOG.rst CMakeLists.txt

About

Build ROS TF2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages