Skip to content

Commit

Permalink
add lint test and fix errors for odriver
Browse files Browse the repository at this point in the history
Signed-off-by: Daisuke Sato <[email protected]>
  • Loading branch information
daisukes committed Nov 19, 2024
1 parent 93d87c6 commit 07d1ed9
Show file tree
Hide file tree
Showing 4 changed files with 385 additions and 401 deletions.
13 changes: 13 additions & 0 deletions motor_controller/odriver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ find_package(ament_cmake REQUIRED)
find_package(rclpy REQUIRED)
find_package(std_msgs REQUIRED)

if(BUILD_TESTING)
find_package(ament_cmake_copyright REQUIRED)
find_package(ament_cmake_flake8 REQUIRED)
find_package(ament_cmake_lint_cmake REQUIRED)
find_package(ament_cmake_xmllint REQUIRED)

set(MAX_LINE_LENGTH 200)
ament_copyright()
ament_flake8(MAX_LINE_LENGTH ${MAX_LINE_LENGTH})
ament_lint_cmake()
ament_xmllint()
endif()

install(DIRECTORY launch/ DESTINATION share/${PROJECT_NAME}/launch)

install(PROGRAMS
Expand Down
2 changes: 1 addition & 1 deletion motor_controller/odriver/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SOFTWARE.
-->
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="2">
<package format="3">
<name>odriver</name>
<version>2.0.0</version>
<description>The odriver package</description>
Expand Down
Loading

0 comments on commit 07d1ed9

Please sign in to comment.