Skip to content

Commit

Permalink
Fix gitignore being too exclusive, add cuda host compiler to ci confi…
Browse files Browse the repository at this point in the history
…g, fix node and nodelet mixup in cmake, fix tag detector node compile
  • Loading branch information
qhdwight committed Oct 15, 2023
1 parent fc36ce9 commit d15510a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
15 changes: 0 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,3 @@ moteus-cal*

# CSV
*.csv

# STM32 workspace
.metadata

Debug/
Release/
.metadata/
.settings/
RemoteSystemsTempFiles/

*.chm
*.settings.xml

*.xml
*.launch
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ endmacro()

macro(mrover_add_nodelet name sources includes)
# A nodelet runs inside another process so it is a library
mrover_add_library(${name}_node ${sources} ${includes})
mrover_add_library(${name}_nodelet ${sources} ${includes})
# Also add a node for quick debugging
mrover_add_node(${name}_nodelet ${sources})
mrover_add_node(${name}_node ${sources})
target_compile_definitions(${name}_nodelet PRIVATE MROVER_IS_NODELET)
# Optional PCH
if (ARGV3)
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/build/files/profiles/ci/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cmake_args:
- -DCMAKE_CXX_FLAGS=-pipe
- -DCMAKE_CXX_COMPILER=clang++-16
- -DCMAKE_CXX_CLANG_TIDY=clang-tidy-16
- -DCMAKE_CUDA_HOST_COMPILER=clang++-16
- -Wno-dev
devel_layout: linked
devel_space: devel
Expand Down
2 changes: 2 additions & 0 deletions src/perception/tag_detector/tag_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,7 @@ int main(int argc, char** argv) {
return EXIT_SUCCESS;
}

#ifdef MROVER_IS_NODELET
#include <pluginlib/class_list_macros.h>
PLUGINLIB_EXPORT_CLASS(mrover::TagDetectorNodelet, nodelet::Nodelet)
#endif

0 comments on commit d15510a

Please sign in to comment.