Skip to content

Commit 5b6d1bd

Browse files
committed
Merge branch 'humble-devel' of github.com:AGH-CEAI/aegis_ros into Feature/wled_integration
2 parents 234192c + 189f459 commit 5b6d1bd

24 files changed

Lines changed: 61 additions & 41 deletions

.github/workflows/pr-checklist.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: PR checklist enforcement
33
on:
44
pull_request:
55
types: [opened, edited, synchronize, reopened]
6+
workflow_dispatch:
67

78
permissions:
89
pull-requests: write

.github/workflows/pre-commit_prek.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
22
name: Pre-commit (Prek)
33

4-
on: [push]
4+
on:
5+
pull_request:
6+
workflow_dispatch:
7+
push:
58

69
jobs:
710
prek:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ repos:
6363
- id: sort-package-xml
6464

6565
- repo: https://github.com/astral-sh/uv-pre-commit
66-
rev: 0.12.0
66+
rev: 0.11.32
6767
hooks:
6868
- id: uv-lock
6969

aegis_bringup/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Changed
1515

16+
* [PR-130](https://github.com/AGH-CEAI/aegis_ros/pull/130) - New ruff formatting.
1617
* [PR-129](https://github.com/AGH-CEAI/aegis_ros/pull/129) - Updated `launch_diagram.plantuml` with wled_service and pylon_cameras_driver
1718
* [PR-127](https://github.com/AGH-CEAI/aegis_ros/pull/127) - Updated README and UML diagram.
1819

aegis_bringup/launch/bringup.launch.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env python3
2-
31
from launch import LaunchContext, LaunchDescription
42
from launch.actions import (
53
DeclareLaunchArgument,

aegis_control/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
### Changed
1818

19+
* [PR-130](https://github.com/AGH-CEAI/aegis_ros/pull/130) - New ruff formatting.
1920
* [PR-127](https://github.com/AGH-CEAI/aegis_ros/pull/127) - Camera drivers can now be skipped in `start_drivers.launch.py` via the `disable_cameras` argument.
2021

2122
### Deprecated

aegis_control/launch/depthai_cameras_driver.launch.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ def _modify_config(self, enable_nn: bool) -> None:
7474
model_path = Path.home() / "ceai_models" / "yolo.blob"
7575
yolo_src_cfg_path = package_share_path / "config" / "cameras" / "yolo.json"
7676

77-
self.yolo_cfg_path = Path(
78-
tempfile.NamedTemporaryFile(suffix=".json", delete=False).name
79-
)
80-
self.cam_params_path = Path(
81-
tempfile.NamedTemporaryFile(suffix=".yaml", delete=False).name
82-
)
77+
def make_temp_path(suffix: str) -> Path:
78+
with tempfile.NamedTemporaryFile(suffix=suffix, delete=False) as tmp:
79+
return Path(tmp.name)
80+
81+
self.yolo_cfg_path = make_temp_path(".json")
82+
self.cam_params_path = make_temp_path(".yaml")
8383

8484
with open(yolo_src_cfg_path, "r") as file:
8585
yolo_cfg = json.load(file)

aegis_control/launch/start_drivers.launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Bypassing the launch system to access local import
21
import os
32
import sys
43

@@ -14,6 +13,7 @@
1413
from launch_ros.parameter_descriptions import ParameterFile
1514
from launch_ros.substitutions import FindPackageShare
1615

16+
# HACK Bypassing the launch system to access local import
1717
run_path = os.path.dirname(os.path.realpath(__file__))
1818
sys.path.append(run_path)
1919
from include.utils import str2bool

aegis_control/launch/ur_driver.launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Bypassing the launch system to access local import
21
import os
32
import sys
43

@@ -8,6 +7,7 @@
87
from launch.substitutions import FindExecutable, LaunchConfiguration
98
from launch_ros.actions import Node
109

10+
# HACK Bypassing the launch system to access local import
1111
run_path = os.path.dirname(os.path.realpath(__file__))
1212
sys.path.append(run_path)
1313
from include.utils import str2bool, controllers_spawner # noqa E402

aegis_control/scripts/pylon_roi_setter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(self):
2828
with open(config_file, "r") as f:
2929
self.config: dict[str, dict[str, int]] = yaml.safe_load(f)
3030
self.get_logger().info(f"Loaded config from {config_file}")
31-
except Exception as e:
31+
except Exception as e: # noqa: BLE001
3232
self.get_logger().error(f"Failed to load {config_file}: {e}")
3333
return
3434

0 commit comments

Comments
 (0)