Skip to content

Commit

Permalink
Add 'actionlib' package
Browse files Browse the repository at this point in the history
  • Loading branch information
Krasimir Georgiev authored and ruslo committed Aug 16, 2019
1 parent 160fd5d commit 91a121c
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ hunter_default_version(ZMQPP VERSION 4.2.0-p0)
hunter_default_version(ZeroMQ VERSION 4.2.3-p1)

hunter_default_version(acf VERSION 0.1.14)
hunter_default_version(actionlib VERSION 1.11.13-p0)
hunter_default_version(aes VERSION 0.0.1-p1)
hunter_default_version(aglet VERSION 1.2.2)
hunter_default_version(android_arm64_v8a_system_image_packer VERSION 1.0.0)
Expand Down
31 changes: 31 additions & 0 deletions cmake/projects/actionlib/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright (c) 2016-2019, Ruslan Baratov
# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_download)
include(hunter_pick_scheme)
include(hunter_cmake_args)

hunter_add_version(
PACKAGE_NAME
actionlib
VERSION
1.11.13-p0
URL
"https://github.com/hunter-packages/actionlib/archive/v1.11.13-p0.tar.gz"
SHA1
f8efaa72ea2d28727832b99b1900f1c1bd21c438
)

hunter_cmake_args(
actionlib
CMAKE_ARGS
CATKIN_ENABLE_TESTING:BOOL=OFF
)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(actionlib)
hunter_download(PACKAGE_NAME actionlib)
22 changes: 22 additions & 0 deletions docs/packages/pkg/actionlib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. spelling::

actionlib
ros

.. index:: ROS ; actionlib

.. _pkg.actionlib:

actionlib
=========

- `Official <https://github.com/ros/actionlib>`__
- `Hunterized <https://github.com/hunter-packages/actionlib>`__
- `Example <https://github.com/ruslo/hunter/blob/master/examples/actionlib/CMakeLists.txt>`__
- Added by `Krasimir Georgiev <https://github.com/kgeorgiev93>`__ (`pr-N <https://github.com/ruslo/hunter/pull/N>`__)
- Contribution partially as part of work at `SeeByte Ltd. <http://www.seebyte.com>`__

.. literalinclude:: /../examples/actionlib/CMakeLists.txt
:language: cmake
:start-after: # DOCUMENTATION_START {
:end-before: # DOCUMENTATION_END }
21 changes: 21 additions & 0 deletions examples/actionlib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2016-2017, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(download_actionlib)

# DOCUMENTATION_START {

hunter_add_package(actionlib)
find_package(catkin CONFIG REQUIRED COMPONENTS actionlib)

catkin_package()

add_executable(main main.cpp)
target_link_libraries(main ${catkin_LIBRARIES})
# DOCUMENTATION_END }
10 changes: 10 additions & 0 deletions examples/actionlib/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <iostream>
#include <actionlib/client/simple_action_client.h>
#include <actionlib/server/simple_action_server.h>

int main() {
ros::Time::init();
ros::Duration(3).sleep();
std::cout << "Done" << std::endl;
return 0;
}
11 changes: 11 additions & 0 deletions examples/actionlib/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<package format="2">
<name>download_actionlib</name>
<version>0.0.0</version>
<description>
This package provides foo capability.
</description>
<maintainer email="[email protected]">Krasimir Georgiev</maintainer>
<license>BSD</license>

<buildtool_depend>catkin</buildtool_depend>
</package>

0 comments on commit 91a121c

Please sign in to comment.