Skip to content

Commit d6412f2

Browse files
committed
Apply Dawid suggestions
1 parent 1281f94 commit d6412f2

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

mecanum_drive_controller/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if(NOT CMAKE_CXX_STANDARD)
1111
endif()
1212

1313
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
14-
add_compile_options(-Wall -Wextra)
14+
add_compile_options(-Wall -Wextra -Wpedantic -Wshadow -Wold-style-cast)
1515
endif()
1616

1717
set(THIS_PACKAGE_INCLUDE_DEPENDS
@@ -44,7 +44,6 @@ generate_parameter_library(
4444

4545
add_library(mecanum_drive_controller SHARED src/mecanum_drive_controller.cpp
4646
src/odometry.cpp)
47-
target_compile_features(mecanum_drive_controller PUBLIC cxx_std_17)
4847
target_include_directories(
4948
mecanum_drive_controller
5049
PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
@@ -57,6 +56,8 @@ ament_target_dependencies(mecanum_drive_controller PUBLIC
5756
pluginlib_export_plugin_description_file(controller_interface
5857
mecanum_drive_plugin.xml)
5958

59+
install(DIRECTORY include/ DESTINATION include/mecanum_drive_controller)
60+
6061
install(
6162
TARGETS mecanum_drive_controller mecanum_drive_controller_parameters
6263
EXPORT export_mecanum_drive_controller

mecanum_drive_controller/src/mecanum_drive_controller_parameter.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,34 @@ mecanum_drive_controller:
22
front_left_wheel_name: {
33
type: string,
44
description: "Link name of the front left side wheel",
5+
read_only: true,
6+
validation: {
7+
not_empty<>: null,
8+
}
59
}
610
front_right_wheel_name: {
711
type: string,
812
description: "Link name of the front right side wheel",
13+
read_only: true,
14+
validation: {
15+
not_empty<>: null,
16+
}
917
}
1018
rear_left_wheel_name: {
1119
type: string,
1220
description: "Link name of the rear left side wheel",
21+
read_only: true,
22+
validation: {
23+
not_empty<>: null,
24+
}
1325
}
1426
rear_right_wheel_name: {
1527
type: string,
1628
description: "Link name of the rear right side wheel",
29+
read_only: true,
30+
validation: {
31+
not_empty<>: null,
32+
}
1733
}
1834
wheel_separation_x: {
1935
type: double,

0 commit comments

Comments
 (0)