From a818cb35e89b380fa44f0ede6db4c88a01175c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Gr=C3=B6ger?= <tobias.groeger@student.kit.edu> Date: Mon, 15 Aug 2022 18:04:16 +0200 Subject: [PATCH] Setup of new library human --- source/armarx/navigation/CMakeLists.txt | 1 + source/armarx/navigation/human/CMakeLists.txt | 13 ++++++ source/armarx/navigation/human/types.h | 42 +++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 source/armarx/navigation/human/CMakeLists.txt create mode 100644 source/armarx/navigation/human/types.h diff --git a/source/armarx/navigation/CMakeLists.txt b/source/armarx/navigation/CMakeLists.txt index dfd3bf35..ca819773 100644 --- a/source/armarx/navigation/CMakeLists.txt +++ b/source/armarx/navigation/CMakeLists.txt @@ -15,6 +15,7 @@ add_subdirectory(location) add_subdirectory(memory) add_subdirectory(server) add_subdirectory(platform_controller) +add_subdirectory(human) # Components. add_subdirectory(components) diff --git a/source/armarx/navigation/human/CMakeLists.txt b/source/armarx/navigation/human/CMakeLists.txt new file mode 100644 index 00000000..d8258b10 --- /dev/null +++ b/source/armarx/navigation/human/CMakeLists.txt @@ -0,0 +1,13 @@ +armarx_add_aron_library(human_aron + ARON_FILES +) + +armarx_add_library(human + DEPENDENCIES_PUBLIC + armarx_navigation::core + DEPENDENCIES_PRIVATE + SOURCES + #types.cpp + HEADERS + types.h +) diff --git a/source/armarx/navigation/human/types.h b/source/armarx/navigation/human/types.h new file mode 100644 index 00000000..8acd8c84 --- /dev/null +++ b/source/armarx/navigation/human/types.h @@ -0,0 +1,42 @@ +/** + * This file is part of ArmarX. + * + * ArmarX is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * ArmarX is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * @author Tobias Gröger ( tobias dot groeger at student dot kit dot edu ) + * @date 2022 + * @copyright http://www.gnu.org/licenses/gpl-2.0.txt + * GNU General Public License + */ + +#pragma once + +#include <SimoxUtility/shapes.h> + +#include <armarx/navigation/core/basic_types.h> + +namespace armarx::navigation::human +{ + struct Human + { + core::Pose2D global_T_human; + Eigen::Vector2f linearVelocity; + }; + + struct HumanGroup + { + std::vector<Eigen::Vector2f> vertices; + std::vector<Human> humans; + }; + +} // namespace armarx::navigation::human -- GitLab