-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mau/fix/sensing/vehicle_velocity_converter
- Loading branch information
Showing
136 changed files
with
18,312 additions
and
660 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
### Automatically generated from package.xml ### | ||
autoware_dependency_checker/** [email protected] | ||
bag2lanelet/** [email protected] [email protected] | ||
common/autoware_debug_tools/** [email protected] [email protected] [email protected] | ||
common/mission_planner_rviz_plugin/** [email protected] | ||
common/rtc_manager_rviz_plugin/** [email protected] [email protected] | ||
common/tier4_automatic_goal_rviz_plugin/** [email protected] [email protected] [email protected] [email protected] | ||
|
@@ -11,6 +13,7 @@ common/tier4_debug_tools/** [email protected] | |
common/tier4_logging_level_configure_rviz_plugin/** [email protected] [email protected] [email protected] | ||
common/tier4_screen_capture_rviz_plugin/** [email protected] [email protected] [email protected] | ||
common/tier4_simulated_clock_rviz_plugin/** [email protected] | ||
common/tier4_string_viewer_rviz_plugin/** [email protected] | ||
common/tier4_target_object_type_rviz_plugin/** [email protected] | ||
control/control_debug_tools/** [email protected] [email protected] | ||
control/stop_accel_evaluator/** [email protected] | ||
|
@@ -20,6 +23,11 @@ driving_environment_analyzer/** [email protected] | |
evaluation/tier4_metrics_rviz_plugin/** [email protected] [email protected] [email protected] [email protected] [email protected] | ||
localization/deviation_estimation_tools/deviation_estimator/** [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] | ||
localization/deviation_estimation_tools/deviation_evaluator/** [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] | ||
map/autoware_lanelet2_map_utils/** [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] | ||
map/autoware_lanelet2_map_validator/** [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] | ||
map/autoware_pointcloud_divider/** [email protected] | ||
map/autoware_pointcloud_merger/** [email protected] | ||
planning/autoware_planning_data_analyzer/** [email protected] [email protected] | ||
planning/autoware_route_client/** [email protected] | ||
planning/autoware_rtc_replayer/** [email protected] [email protected] | ||
planning/planning_debug_tools/** [email protected] [email protected] [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
|
||
jobs: | ||
cancel-previous-workflows: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
|
||
jobs: | ||
label: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/labeler@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
5 changes: 5 additions & 0 deletions
5
...debug_tools/autoware_debug_tools/topic_connection_checker/launch_file_analyse/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .launch_tree import LaunchTree # noqa | ||
from .launch_tree import LaunchTreeNode # noqa | ||
from .main import launch_file_analyse_main # noqa | ||
from .string_utils import find_cmake_projects # noqa | ||
from .string_utils import find_package # noqa |
83 changes: 83 additions & 0 deletions
83
...ug_tools/autoware_debug_tools/topic_connection_checker/launch_file_analyse/launch_tree.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
import json | ||
from typing import List | ||
|
||
|
||
class LaunchTreeNode: | ||
"""Each node in the launch tree is a LaunchTreeNode. It represents a launch file or a ros node.""" | ||
|
||
def __init__(self, name: str, **kwargs): | ||
self.name = name | ||
self.children: List[LaunchTreeNode] = [] | ||
self.parameters = kwargs | ||
|
||
def add_child(self, child: "LaunchTreeNode"): | ||
self.children.append(child) | ||
|
||
def jsonify(self): | ||
return { | ||
"name": self.name, | ||
"children": [child.jsonify() for child in self.children], | ||
"parameters": self.parameters, | ||
} | ||
|
||
|
||
class LaunchTree: | ||
"""Tree Structure to store the launch file structure.""" | ||
|
||
def __init__(self): | ||
self.root = None | ||
self.edges_manager = [] | ||
self.nodes_manager = {} | ||
|
||
def get_node(self, node_name): | ||
return self.nodes_manager[node_name] | ||
|
||
def add_root(self, root_name, **kwargs): | ||
if self.root is None: | ||
self.root = LaunchTreeNode(root_name) | ||
self.nodes_manager[root_name] = self.root | ||
else: | ||
print("Root already exists") | ||
|
||
def add_child(self, parent_name, child_name, **kwargs): | ||
if self.root is None: | ||
self.root = LaunchTreeNode(parent_name) | ||
self.nodes_manager[parent_name] = self.root | ||
|
||
if parent_name not in self.nodes_manager: | ||
# print(f"Parent node {parent_name} not found") | ||
return | ||
|
||
if child_name in self.nodes_manager: | ||
# print(f"Child node {child_name} already exists") | ||
return | ||
|
||
child = LaunchTreeNode(child_name, **kwargs) | ||
self.nodes_manager[child_name] = child | ||
self.nodes_manager[parent_name].add_child(child) | ||
self.edges_manager.append((parent_name, child_name)) | ||
|
||
def add_argument(self, node_name, argument_name, argument_value): | ||
if node_name not in self.nodes_manager: | ||
print(f"Node {node_name} not found") | ||
return | ||
|
||
self.nodes_manager[node_name].arguments[argument_name] = argument_value | ||
|
||
def jsonify(self): | ||
json_object = self.root.jsonify() | ||
return json_object | ||
|
||
def __repr__(self) -> str: | ||
json_object = self.jsonify() | ||
return json.dumps(json_object, indent=4) | ||
|
||
|
||
def find_unset_parameters(tree: LaunchTree): | ||
"""Find all unset parameters in the launch tree.""" | ||
unset_parameters = [] | ||
for node_name, node in tree.nodes_manager.items(): | ||
for parameter_name, parameter_value in node.parameters.items(): | ||
if parameter_value == "ERROR_PARAMETER_NOT_SET": | ||
unset_parameters.append((node_name, parameter_name)) | ||
return unset_parameters |
Oops, something went wrong.