

Merge pull request #7 from HarvestX/fix/dualsense-case
Dualsense -> DualSense
@d413fe61ae17b5b38c74fbdfe069842167f1705c
--- README.md
+++ README.md
... | ... | @@ -4,18 +4,18 @@ |
4 | 4 |
|
5 | 5 |
## Supported controllers |
6 | 6 |
|
7 |
-| Status | Hardware Name | |
|
8 |
-| ------ | ------------- | |
|
7 |
+| Status | Hardware Name | |
|
8 |
+| -------------------- | ------------- | |
|
9 | 9 |
| :white_large_square: | `DualShock3` | |
10 | 10 |
| :white_large_square: | `DualShock4` | |
11 |
-| :heavy_check_mark: | `Dualsense` | |
|
11 |
+| :heavy_check_mark: | `DualSense` | |
|
12 | 12 |
|
13 | 13 |
|
14 | 14 |
## How to use the interface library |
15 | 15 |
1. Initialize controller interface with the specific hardware type. |
16 | 16 |
```cpp |
17 | 17 |
// Initialize Interface |
18 |
-const std::string hw_type = "Dualsense"; |
|
18 |
+const std::string hw_type = "DualSense"; |
|
19 | 19 |
ps_interface = |
20 | 20 |
std::make_unique<p9n_interface::PlayStationInterface>(hw_type); |
21 | 21 |
``` |
--- p9n_example/launch/display.launch.py
+++ p9n_example/launch/display.launch.py
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 |
launch_args = [ |
29 | 29 |
DeclareLaunchArgument( |
30 | 30 |
'hw_type', |
31 |
- default_value=TextSubstitution(text='Dualsense') |
|
31 |
+ default_value=TextSubstitution(text='DualSense') |
|
32 | 32 |
) |
33 | 33 |
] |
34 | 34 |
nodes = [ |
--- p9n_interface/include/p9n_interface/hw_types.hpp
+++ p9n_interface/include/p9n_interface/hw_types.hpp
... | ... | @@ -30,6 +30,6 @@ |
30 | 30 |
{ |
31 | 31 |
const char DUALSHOCK3[] = "DualShock3"; |
32 | 32 |
const char DUALSHOCK4[] = "DualShock4"; |
33 |
-const char DUALSENSE[] = "Dualsense"; |
|
33 |
+const char DUALSENSE[] = "DualSense"; |
|
34 | 34 |
} // namespace HW_NAME |
35 | 35 |
} // namespace p9n_interface |
--- p9n_test/README.md
+++ p9n_test/README.md
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 |
 |
6 | 6 |
|
7 | 7 |
```bash |
8 |
-ros2 launch p9n_test test.launch.py hw_type:=Dualsense |
|
8 |
+ros2 launch p9n_test test.launch.py hw_type:=DualSense |
|
9 | 9 |
``` |
10 | 10 |
|
11 | 11 |
This process asks you to press the specific key. Then you need to press the actual hardware button of your controller and check all button interface step by step. |
... | ... | @@ -14,4 +14,5 @@ |
14 | 14 |
And this repository supports following hardware. |
15 | 15 |
- `DualShock3` |
16 | 16 |
- `DualShock4` |
17 |
-- `Dualsense` |
|
17 |
+- `Dual |
|
18 |
+- Sense` |
--- p9n_test/launch/test.launch.py
+++ p9n_test/launch/test.launch.py
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 |
launch_args = [ |
29 | 29 |
DeclareLaunchArgument( |
30 | 30 |
'hw_type', |
31 |
- default_value=TextSubstitution(text='Dualsense') |
|
31 |
+ default_value=TextSubstitution(text='DualSense') |
|
32 | 32 |
) |
33 | 33 |
] |
34 | 34 |
nodes = [ |
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?