Skip to content

Commit 9d6d126

Browse files
committed
feat: add python utility module
1 parent 3cbce6c commit 9d6d126

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
66
endif()
77

88
find_package(ament_cmake REQUIRED)
9+
find_package(ament_cmake_python REQUIRED)
910

1011
include_directories(include)
1112

@@ -31,4 +32,6 @@ ament_export_dependencies()
3132
ament_export_include_directories(include)
3233
ament_export_libraries(${PROJECT_NAME})
3334

35+
ament_python_install_package(${PROJECT_NAME})
36+
3437
ament_package()

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<license>MIT</license>
99

1010
<buildtool_depend>ament_cmake</buildtool_depend>
11+
<buildtool_depend>ament_cmake_python</buildtool_depend>
1112

1213
<export>
1314
<build_type>ament_cmake</build_type>

vortex_utils/__init__.py

Whitespace-only changes.

vortex_utils/python_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import numpy as np
2+
3+
def ssa(angle: float) -> float:
4+
return (angle + np.pi) % (2 * np.pi) - np.pi

0 commit comments

Comments
 (0)