-
Notifications
You must be signed in to change notification settings - Fork 1
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 mkchiu/traffic_sign_detection
- Loading branch information
Showing
13 changed files
with
238 additions
and
41 deletions.
There are no files selected for viewing
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,77 @@ | ||
name: Check source file changes | ||
|
||
outputs: | ||
modified_modules: | ||
description: "Space deliminated list of modified modules" | ||
value: ${{ steps.output-changes.outputs.modified_modules }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Find changed files outside of src directory | ||
id: changed-files-outside-src | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: '!src/**' | ||
|
||
- name: Find changed files inside src/wato_msgs folder | ||
id: changed-files-wato-msgs | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: src/wato_msgs/** | ||
|
||
- name: Find changed files inside src/action folder | ||
id: changed-files-action | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: src/action/** | ||
|
||
- name: Get changed files inside src/interfacing folder | ||
id: changed-files-interfacing | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: src/interfacing/** | ||
|
||
- name: Get changed files inside src/perception folder | ||
id: changed-files-perception | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: src/perception/** | ||
|
||
- name: Get changed files inside src/samples folder | ||
id: changed-files-samples | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: src/samples/** | ||
|
||
- name: Get changed files inside src/simulation folder | ||
id: changed-files-simulation | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: src/simulation/** | ||
|
||
- name: Get changed files inside src/world_modeling folder | ||
id: changed-files-world-modeling | ||
uses: tj-actions/changed-files@v42 | ||
with: | ||
files: src/world_modeling/** | ||
|
||
- name: Create list of changed modules | ||
id: output-changes | ||
env: | ||
INFRASTRUCTURE_CHANGED: > | ||
${{ steps.changed-files-wato-msgs.outputs.any_changed == 'true' | ||
|| steps.changed-files-outside-src.outputs.any_changed == 'true' }} | ||
ACTION_CHANGED: ${{ steps.changed-files-action.outputs.any_changed }} | ||
INTERFACING_CHANGED: ${{ steps.changed-files-interfacing.outputs.any_changed }} | ||
PERCEPTION_CHANGED: ${{ steps.changed-files-perception.outputs.any_changed }} | ||
SAMPLES_CHANGED: ${{ steps.changed-files-samples.outputs.any_changed }} | ||
SIMULATION_CHANGED: ${{ steps.changed-files-simulation.outputs.any_changed }} | ||
WORLD_MODELING_CHANGED: ${{ steps.changed-files-world-modeling.outputs.any_changed }} | ||
|
||
run: ${{ github.action_path }}/check_src_changes.sh | ||
shell: bash |
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,53 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
################# Create a space delimited list of modified modules ################# | ||
# Outputs a list of modified modules by comparing changes between main and current commit | ||
# References previous GitHub workflow steps | ||
|
||
# Action | ||
if [ $ACTION_CHANGED == 'true' ]; then | ||
echo "Detected action changes" | ||
MODIFIED_MODULES+="action " | ||
fi | ||
|
||
# Interfacing | ||
if [ $INTERFACING_CHANGED == 'true' ]; then | ||
echo "Detected interfacing changes" | ||
MODIFIED_MODULES+="interfacing " | ||
fi | ||
|
||
# Perception | ||
if [ $PERCEPTION_CHANGED == 'true' ]; then | ||
echo "Detected perception changes" | ||
MODIFIED_MODULES+="perception " | ||
fi | ||
|
||
# Samples | ||
if [ $SAMPLES_CHANGED == 'true' ]; then | ||
echo "Detected samples changes" | ||
MODIFIED_MODULES+="samples " | ||
fi | ||
|
||
# Simulation | ||
if [ $SIMULATION_CHANGED == 'true' ]; then | ||
echo "Detected simulation changes" | ||
MODIFIED_MODULES+="simulation " | ||
fi | ||
|
||
# World-modeling | ||
if [ $WORLD_MODELING_CHANGED == 'true' ]; then | ||
echo "Detected world_modeling changes" | ||
MODIFIED_MODULES+="world_modeling" | ||
fi | ||
|
||
# Infrastructure | ||
if [ $INFRASTRUCTURE_CHANGED == 'true' ]; then | ||
echo "::notice:: Detected infrastructure changes" | ||
MODIFIED_MODULES="infrastructure" | ||
else | ||
echo "::notice:: MODIFIED_MODULES are $MODIFIED_MODULES" | ||
fi | ||
|
||
# Output lis | ||
echo "modified_modules=$MODIFIED_MODULES" >> $GITHUB_OUTPUT |
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
23 changes: 23 additions & 0 deletions
23
src/perception/camera_object_detection/config/eve_config.yaml
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,23 @@ | ||
left_camera_object_detection_node: | ||
ros__parameters: | ||
camera_topic: /camera/left/image_color | ||
publish_vis_topic: /camera/left/annotated_img | ||
publish_detection_topic: /camera/left/detections | ||
model_path: /perception_models/yolov8m.pt | ||
image_size: 1024 | ||
|
||
center_camera_object_detection_node: | ||
ros__parameters: | ||
camera_topic: /camera/center/image_color | ||
publish_vis_topic: /camera/center/annotated_img | ||
publish_detection_topic: /camera/center/detections | ||
model_path: /perception_models/yolov8m.pt | ||
image_size: 1024 | ||
|
||
right_camera_object_detection_node: | ||
ros__parameters: | ||
camera_topic: /camera/right/image_color | ||
publish_vis_topic: /camera/right/annotated_img | ||
publish_detection_topic: /camera/right/detections | ||
model_path: /perception_models/yolov8m.pt | ||
image_size: 1024 |
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
7 changes: 0 additions & 7 deletions
7
src/perception/camera_object_detection/config/sim_config.yaml
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
src/perception/camera_object_detection/launch/eve_launch.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,42 @@ | ||
from launch import LaunchDescription | ||
from launch_ros.actions import Node | ||
from ament_index_python.packages import get_package_share_directory | ||
import os | ||
|
||
|
||
def generate_launch_description(): | ||
ld = LaunchDescription() | ||
config = os.path.join( | ||
get_package_share_directory('camera_object_detection'), | ||
'config', | ||
'eve_config.yaml' | ||
) | ||
|
||
# nodes | ||
left_camera_object_detection_node = Node( | ||
package='camera_object_detection', | ||
executable='camera_object_detection_node', | ||
name='left_camera_object_detection_node', | ||
parameters=[config] | ||
) | ||
|
||
center_camera_object_detection_node = Node( | ||
package='camera_object_detection', | ||
executable='camera_object_detection_node', | ||
name='center_camera_object_detection_node', | ||
parameters=[config] | ||
) | ||
|
||
right_camera_object_detection_node = Node( | ||
package='camera_object_detection', | ||
executable='camera_object_detection_node', | ||
name='right_camera_object_detection_node', | ||
parameters=[config] | ||
) | ||
|
||
# finalize | ||
ld.add_action(left_camera_object_detection_node) | ||
ld.add_action(center_camera_object_detection_node) | ||
ld.add_action(right_camera_object_detection_node) | ||
|
||
return ld |
26 changes: 0 additions & 26 deletions
26
src/perception/camera_object_detection/launch/sim_launch.py
This file was deleted.
Oops, something went wrong.