Skip to content
This repository was archived by the owner on Apr 15, 2020. It is now read-only.

Commit 6960959

Browse files
authoredAug 22, 2019
Merge pull request #1933 from kgeorgiev93/pr.tf
Add 'tf' package
2 parents 5527457 + 7b4973a commit 6960959

File tree

6 files changed

+95
-0
lines changed

6 files changed

+95
-0
lines changed
 

‎cmake/configs/default.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ hunter_default_version(tacopie VERSION 3.2.0-h1)
480480
hunter_default_version(taocpp-json VERSION 1.0.0-beta.11-e0895587)
481481
hunter_default_version(tcl VERSION core8.6.8)
482482
hunter_default_version(termcolor VERSION 1.0.0)
483+
hunter_default_version(tf VERSION 1.12.0-p0)
483484
hunter_default_version(tf2 VERSION 0.6.5-p0)
484485
hunter_default_version(thread-pool-cpp VERSION 1.1.0)
485486
hunter_default_version(thrift VERSION 0.12.0-p0)

‎cmake/projects/tf/hunter.cmake

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright (c) 2016-2019, Ruslan Baratov
2+
# All rights reserved.
3+
4+
# !!! DO NOT PLACE HEADER GUARDS HERE !!!
5+
6+
include(hunter_add_version)
7+
include(hunter_cacheable)
8+
include(hunter_download)
9+
include(hunter_pick_scheme)
10+
include(hunter_cmake_args)
11+
12+
hunter_add_version(
13+
PACKAGE_NAME
14+
tf
15+
VERSION
16+
1.12.0-p0
17+
URL
18+
"https://github.com/hunter-packages/tf/archive/v1.12.0-p0.tar.gz"
19+
SHA1
20+
349b34bc9fe31e2f372d52e8b0b03002e229cc2c
21+
)
22+
23+
hunter_cmake_args(
24+
tf
25+
CMAKE_ARGS
26+
CATKIN_ENABLE_TESTING:BOOL=OFF
27+
)
28+
29+
hunter_pick_scheme(DEFAULT url_sha1_cmake)
30+
hunter_cacheable(tf)
31+
hunter_download(PACKAGE_NAME tf)

‎docs/packages/pkg/tf.rst

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. spelling::
2+
3+
tf
4+
ros
5+
6+
.. index:: ROS ; tf
7+
8+
.. _pkg.tf:
9+
10+
tf
11+
==
12+
13+
- `Official <https://github.com/ros/geometry>`__
14+
- `Hunterized <https://github.com/hunter-packages/tf>`__
15+
- `Example <https://github.com/ruslo/hunter/blob/master/examples/tf/CMakeLists.txt>`__
16+
- Added by `Krasimir Georgiev <https://github.com/kgeorgiev93>`__ (`pr-1933 <https://github.com/ruslo/hunter/pull/1933>`__)
17+
- Contribution partially as part of work at `SeeByte Ltd. <http://www.seebyte.com>`__
18+
19+
.. literalinclude:: /../examples/tf/CMakeLists.txt
20+
:language: cmake
21+
:start-after: # DOCUMENTATION_START {
22+
:end-before: # DOCUMENTATION_END }

‎examples/tf/CMakeLists.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) 2016-2017, Ruslan Baratov
2+
# All rights reserved.
3+
4+
cmake_minimum_required(VERSION 3.0)
5+
6+
# Emulate HunterGate:
7+
# * https://github.com/hunter-packages/gate
8+
include("../common.cmake")
9+
10+
project(download_tf)
11+
12+
# DOCUMENTATION_START {
13+
14+
hunter_add_package(tf)
15+
find_package(catkin CONFIG REQUIRED COMPONENTS tf)
16+
17+
catkin_package()
18+
19+
add_executable(main main.cpp)
20+
target_link_libraries(main ${catkin_LIBRARIES})
21+
# DOCUMENTATION_END }

‎examples/tf/main.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <iostream>
2+
#include "tf/tf.h"
3+
4+
int main() {
5+
ros::Time::init();
6+
ros::Duration(3).sleep();
7+
std::cout << "Done" << std::endl;
8+
return 0;
9+
}

‎examples/tf/package.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<package format="2">
2+
<name>download_tf</name>
3+
<version>0.0.0</version>
4+
<description>
5+
This package provides foo capability.
6+
</description>
7+
<maintainer email="kgeorgiev1993@gmail.com">Krasimir Georgiev</maintainer>
8+
<license>BSD</license>
9+
10+
<buildtool_depend>catkin</buildtool_depend>
11+
</package>

0 commit comments

Comments
 (0)
This repository has been archived.