From fbd236e41c38c667d4cf711187107705feb2ff2a Mon Sep 17 00:00:00 2001 From: Max SCHMELLER Date: Wed, 26 Jun 2024 18:53:16 +0900 Subject: [PATCH] chore(pre-commit): make pre-commit pass --- build_depends.repos | 2 +- nebula_ros/launch/continental_launch_all_hw.xml | 2 +- nebula_ros/schema/SRR520.schema.json | 8 ++++++-- nebula_ros/schema/sub/communication.json | 16 +++++++++++++--- .../continental/parameter_descriptors.cpp | 2 ++ .../continental/parameter_descriptors.hpp | 14 ++++++++++++++ 6 files changed, 37 insertions(+), 7 deletions(-) diff --git a/build_depends.repos b/build_depends.repos index 8e7351482..6b7e58ff7 100644 --- a/build_depends.repos +++ b/build_depends.repos @@ -8,4 +8,4 @@ repositories: ros2_socketcan: type: git url: https://github.com/knzo25/ros2_socketcan - version: feat/continental_fd \ No newline at end of file + version: feat/continental_fd diff --git a/nebula_ros/launch/continental_launch_all_hw.xml b/nebula_ros/launch/continental_launch_all_hw.xml index 9e9ffe421..0255e89f9 100644 --- a/nebula_ros/launch/continental_launch_all_hw.xml +++ b/nebula_ros/launch/continental_launch_all_hw.xml @@ -17,7 +17,7 @@ - + diff --git a/nebula_ros/schema/SRR520.schema.json b/nebula_ros/schema/SRR520.schema.json index 19356adff..0c3004a64 100644 --- a/nebula_ros/schema/SRR520.schema.json +++ b/nebula_ros/schema/SRR520.schema.json @@ -60,10 +60,14 @@ "$ref": "#/definitions/SRR520" } }, - "required": ["ros__parameters"], + "required": [ + "ros__parameters" + ], "additionalProperties": false } }, - "required": ["/**"], + "required": [ + "/**" + ], "additionalProperties": false } diff --git a/nebula_ros/schema/sub/communication.json b/nebula_ros/schema/sub/communication.json index b01c22e06..f7f3b6d86 100644 --- a/nebula_ros/schema/sub/communication.json +++ b/nebula_ros/schema/sub/communication.json @@ -72,7 +72,11 @@ "ptp_profile": { "type": "string", "default": "1588v2", - "enum": ["1588v2", "802.1as", "automotive"], + "enum": [ + "1588v2", + "802.1as", + "automotive" + ], "description": "PTP profile." }, "ptp_domain": { @@ -85,13 +89,19 @@ "ptp_transport_type": { "type": "string", "default": "UDP", - "enum": ["UDP", "L2"], + "enum": [ + "UDP", + "L2" + ], "description": "1588v2 supports 'UDP' or 'L2', other profiles only L2 (HW)." }, "ptp_switch_type": { "type": "string", "default": "TSN", - "enum": ["TSN", "NON_TSN"], + "enum": [ + "TSN", + "NON_TSN" + ], "description": "For automotive profile,'TSN' or 'NON_TSN'." }, "receiver_timeout_sec": { diff --git a/nebula_tests/continental/parameter_descriptors.cpp b/nebula_tests/continental/parameter_descriptors.cpp index d2d265780..3f26adf10 100644 --- a/nebula_tests/continental/parameter_descriptors.cpp +++ b/nebula_tests/continental/parameter_descriptors.cpp @@ -1,3 +1,5 @@ +// Copyright 2024 TIER IV, Inc. + #include "parameter_descriptors.hpp" namespace nebula diff --git a/nebula_tests/continental/parameter_descriptors.hpp b/nebula_tests/continental/parameter_descriptors.hpp index 6d4e38504..db37cdb10 100644 --- a/nebula_tests/continental/parameter_descriptors.hpp +++ b/nebula_tests/continental/parameter_descriptors.hpp @@ -1,3 +1,17 @@ +// Copyright 2024 TIER IV, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #pragma once #include