

fix cpplint warnings
@b9853a10ea167d1d2ac1fece760e75032b006301
--- .vscode/cspell.json
+++ .vscode/cspell.json
... | ... | @@ -2,18 +2,19 @@ |
2 | 2 |
"version": "0.2", |
3 | 3 |
"language": "en", |
4 | 4 |
"words": [ |
5 |
- "rclcpp", |
|
6 |
- "m12watanabe1a", |
|
7 |
- "rosdistro", |
|
8 |
- "distro", |
|
9 |
- "colcon", |
|
10 |
- "roboteq", |
|
11 |
- "rviz", |
|
12 |
- "xacro", |
|
13 |
- "urdf", |
|
14 | 5 |
"bringup", |
6 |
+ "colcon", |
|
7 |
+ "distro", |
|
8 |
+ "dpad", |
|
15 | 9 |
"dualsense", |
16 | 10 |
"dualshock", |
17 |
- "teleop" |
|
11 |
+ "m12watanabe1a", |
|
12 |
+ "rclcpp", |
|
13 |
+ "roboteq", |
|
14 |
+ "rosdistro", |
|
15 |
+ "rviz", |
|
16 |
+ "teleop", |
|
17 |
+ "urdf", |
|
18 |
+ "xacro", |
|
18 | 19 |
] |
19 | 20 |
}(파일 끝에 줄바꿈 문자 없음) |
+++ CPPLINT.cfg
... | ... | @@ -0,0 +1,14 @@ |
1 | +# Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_cpplint/ament_cpplint/main.py#L64-L120 | |
2 | +set noparent | |
3 | +linelength=100 | |
4 | +includeorder=standardcfirst | |
5 | +filter=-build/c++11 # we do allow C++11 | |
6 | +filter=-build/namespaces_literals # we allow using namespace for literals | |
7 | +filter=-runtime/references # we consider passing non-const references to be ok | |
8 | +filter=-whitespace/braces # we wrap open curly braces for namespaces, classes and functions | |
9 | +filter=-whitespace/indent # we don't indent keywords like public, protected and private with one space | |
10 | +filter=-whitespace/parens # we allow closing parenthesis to be on the next line | |
11 | +filter=-whitespace/semicolon # we allow the developer to decide about whitespace after a semicolon | |
12 | +filter=-build/header_guard # we automatically fix the names of header guards using pre-commit | |
13 | +filter=-build/include_order # we use the custom include order | |
14 | +filter=-build/include_subdir # we allow the style of "foo.hpp" |
--- p9n_interface/include/p9n_interface/p9n_interface.hpp
+++ p9n_interface/include/p9n_interface/p9n_interface.hpp
... | ... | @@ -14,6 +14,9 @@ |
14 | 14 |
|
15 | 15 |
#pragma once |
16 | 16 |
|
17 |
+#include <string> |
|
18 |
+#include <memory> |
|
19 |
+ |
|
17 | 20 |
#include "p9n_interface/hw_types.hpp" |
18 | 21 |
|
19 | 22 |
#include "p9n_interface/ps3_dualshock3.hpp" |
... | ... | @@ -49,7 +52,6 @@ |
49 | 52 |
|
50 | 53 |
typedef struct |
51 | 54 |
{ |
52 |
- |
|
53 | 55 |
size_t d_pad_x; |
54 | 56 |
size_t d_pad_y; |
55 | 57 |
size_t stick_lx; |
... | ... | @@ -67,6 +69,9 @@ |
67 | 69 |
|
68 | 70 |
class PlayStationInterface |
69 | 71 |
{ |
72 |
+public: |
|
73 |
+ using UniquePtr = std::unique_ptr<PlayStationInterface>; |
|
74 |
+ |
|
70 | 75 |
private: |
71 | 76 |
HW_TYPE HW_TYPE_; |
72 | 77 |
sensor_msgs::msg::Joy::ConstSharedPtr joy_; |
+++ setup.cfg
... | ... | @@ -0,0 +1,15 @@ |
1 | +[flake8] | |
2 | +# Modified from https://github.com/ament/ament_lint/blob/ebd524bb9973d5ec1dc48a670ce54f958a5a0243/ament_flake8/ament_flake8/configuration/ament_flake8.ini | |
3 | +extend-ignore = B902,C816,D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404,I202,CNL100,E203,E501,Q000 | |
4 | +import-order-style = pep8 | |
5 | +max-line-length = 100 | |
6 | +show-source = true | |
7 | +statistics = true | |
8 | + | |
9 | +[isort] | |
10 | +profile=black | |
11 | +line_length=100 | |
12 | +force_sort_within_sections=true | |
13 | +force_single_line=true | |
14 | +reverse_relative=true | |
15 | +known_third_party=launch |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?