Skip to content

Commit b14c6c1

Browse files
authored
Add Generic Tensor Type (#12)
* adding generic tensor type * indentation of docstring * no inline, and readme * stuff * updating package.xml * addressing batching with images * added 16 bit yuv * is view
1 parent ec3601f commit b14c6c1

File tree

16 files changed

+2007
-534
lines changed

16 files changed

+2007
-534
lines changed

deep_core/CMakeLists.txt

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Copyright (c) 2025-present WATonomous. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# Copyright (c) 2025-present Polymath Robotics, Inc. All rights reserved
15+
# Proprietary. Any unauthorized copying, distribution, or modification of this software is strictly prohibited.
16+
cmake_minimum_required(VERSION 3.22)
17+
project(deep_core)
18+
19+
if(NOT CMAKE_CXX_STANDARD)
20+
set(CMAKE_CXX_STANDARD 17)
21+
endif()
22+
23+
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
24+
add_compile_options(-Wall -Wextra -Wpedantic)
25+
add_link_options(-Wl,-no-undefined)
26+
endif()
27+
28+
find_package(ament_cmake REQUIRED)
29+
find_package(rclcpp REQUIRED)
30+
find_package(rclcpp_lifecycle REQUIRED)
31+
32+
set(include_dir ${CMAKE_CURRENT_SOURCE_DIR}/include)
33+
34+
# deep_core library
35+
set(DEEP_CORE_LIB ${PROJECT_NAME}_lib)
36+
add_library(${DEEP_CORE_LIB} SHARED
37+
src/deep_node_base.cpp
38+
)
39+
target_include_directories(${DEEP_CORE_LIB} PUBLIC
40+
$<BUILD_INTERFACE:${include_dir}>
41+
$<INSTALL_INTERFACE:include>
42+
)
43+
target_link_libraries(${DEEP_CORE_LIB}
44+
PRIVATE
45+
rclcpp::rclcpp
46+
rclcpp_lifecycle::rclcpp_lifecycle
47+
)
48+
49+
install(TARGETS
50+
${DEEP_CORE_LIB}
51+
EXPORT ${PROJECT_NAME}Targets
52+
ARCHIVE DESTINATION lib
53+
LIBRARY DESTINATION lib
54+
RUNTIME DESTINATION bin
55+
)
56+
57+
install(EXPORT ${PROJECT_NAME}Targets
58+
NAMESPACE ${PROJECT_NAME}::
59+
DESTINATION share/${PROJECT_NAME}/cmake
60+
)
61+
62+
install(DIRECTORY include/
63+
DESTINATION include
64+
)
65+
66+
if(BUILD_TESTING)
67+
find_package(deep_test REQUIRED)
68+
69+
endif()
70+
71+
ament_export_targets(${PROJECT_NAME}Targets HAS_LIBRARY_TARGET)

deep_core/COLCON_IGNORE

Whitespace-only changes.

deep_core/include/deep_core/types/tensor.hpp

Lines changed: 0 additions & 126 deletions
This file was deleted.

deep_core/package.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<package format="3">
3+
<name>deep_core</name>
4+
<version>0.1.0</version>
5+
<description>C++ language generic utilities, independent of any other dependencies or frameworks</description>
6+
<maintainer email="hello@watonomous.ca">WATonomous</maintainer>
7+
<license>Apache 2.0</license>
8+
9+
<buildtool_depend>ament_cmake</buildtool_depend>
10+
11+
<depend>rclcpp</depend>
12+
<depend>rclcpp_lifecycle</depend>
13+
14+
<test_depend>deep_test</test_depend>
15+
16+
<export>
17+
<build_type>ament_cmake</build_type>
18+
</export>
19+
</package>

0 commit comments

Comments
 (0)