Skip to content

Commit

Permalink
updating and annotating package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Herpderk committed Aug 17, 2023
1 parent 154168d commit af34c12
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 12 deletions.
36 changes: 26 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,35 @@ endif()

# find dependencies
find_package(ament_cmake REQUIRED)
# uncomment the following section in order to fill in
# further dependencies manually.
find_package(ament_cmake_python REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclpy REQUIRED)
# find_package(<dependency> REQUIRED)

include_directories(include)

install(
DIRECTORY include
DESTINATION include
)
ament_python_install_package(${PROJECT_NAME})



if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
# the following line skips the linter which checks for copyrights
# uncomment the line when a copyright and license is not present in all source files
#set(ament_cmake_copyright_FOUND TRUE)
# the following line skips cpplint (only works in a git repo)
# uncomment the line when this package is not in a git repo
#set(ament_cmake_cpplint_FOUND TRUE)
ament_lint_auto_find_test_dependencies()
find_package(ament_cmake_pytest REQUIRED)
set(_pytest_tests
# tests/test.py
# Add other test files here
)
foreach(_test_path ${_pytest_tests})
get_filename_component(_test_name ${_test_path} NAME_WE)
ament_add_pytest_test(${_test_name} ${_test_path}
APPEND_ENV PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}
TIMEOUT 60
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
endforeach()
endif()

ament_package()
1 change: 1 addition & 0 deletions include/px4_offboard_mpc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This directory is for C++ headers.
9 changes: 7 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
<name>px4_offboard_mpc</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="herpderkfanie@gmail.com">herpderk</maintainer>
<license>TODO: License declaration</license>
<maintainer email="derekfan.18.2002@gmail.com">Herpderk</maintainer>
<license>MIT License</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>ament_cmake_python</buildtool_depend>

<exec_depend>rclcpp</exec_depend>
<exec_depend>rclpy</exec_depend>
<exec_depend>px4_msgs</exec_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
Expand Down
1 change: 1 addition & 0 deletions px4_offboard_mpc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This directory is for Python modules to be imported.
Empty file added px4_offboard_mpc/__init__.py
Empty file.
1 change: 1 addition & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This directory is for Python nodes.
1 change: 1 addition & 0 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This directory is for C++ nodes.

0 comments on commit af34c12

Please sign in to comment.