Skip to content

Commit 8c9196e

Browse files
author
David Conner
committed
Merge branch 'ros2-devel' into jazzy
2 parents d7ab05f + 51c958a commit 8c9196e

107 files changed

Lines changed: 441 additions & 160 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.flake8

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[flake8]
22
exclude = .git
33
max-line-length = 130
4-
ignore = W503, D100, D105, D107 # Ignore docstring requirements for public modules, magic methods, and __init__ functions.
5-
# For W503 - https://www.flake8rules.com/rules/W503.html and https://peps.python.org/pep-0008/#should-a-line-break-before-or-after-a-binary-operator
4+
ignore = W503, D100, D105, D107

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ Please refer to the FlexBE Homepage ([flexbe.github.io](http://flexbe.github.io)
1313

1414
You may also want to check out the quick start tutorial demonstrations at [FlexBE Turtlesim Demo](https://github.com/FlexBE/flexbe_turtlesim_demo).
1515

16-
![FlexBE CI](https://github.com/FlexBE/flexbe_behavior_engine/workflows/FlexBE%20CI/badge.svg?branch=jazzy)
16+
[![FlexBE CI](https://github.com/FlexBE/flexbe_behavior_engine/actions/workflows/flexbe_ci.yml/badge.svg)](https://github.com/FlexBE/flexbe_behavior_engine/actions/workflows/flexbe_ci.yml)
1717

18-
Jazzy ![ROS Build Farm](https://build.ros2.org/job/Jdev__flexbe_behavior_engine__ubuntu_noble_amd64/badge/icon)
18+
Jazzy [![Jazzy ROS Build Status](https://build.ros2.org/buildStatus/icon?job=Jdev__flexbe_behavior_engine__ubuntu_noble_amd64)](https://build.ros2.org/job/Jdev__flexbe_behavior_engine__ubuntu_noble_amd64/)
19+
20+
Kilted [![Kilted ROS Build Status](https://build.ros2.org/buildStatus/icon?job=Kdev__flexbe_behavior_engine__ubuntu_noble_amd64)](https://build.ros2.org/job/Kdev__flexbe_behavior_engine__ubuntu_noble_amd64/)
21+
22+
Rolling [![Rolling ROS Build Status](https://build.ros2.org/buildStatus/icon?job=Rdev__flexbe_behavior_engine__ubuntu_noble_amd64)](https://build.ros2.org/job/Rdev__flexbe_behavior_engine__ubuntu_noble_amd64/)
1923

2024
> Note: This version 4+ breaks compatibility with the FlexBE App. You must use the FlexBE WebUI [flexbe_webui](https://github.com/FlexBE/flexbe_webui.git) now.
2125

flexbe_behavior_engine/.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
exclude = .git
3+
max-line-length = 130
4+
ignore = W503, D100, D105, D107

flexbe_behavior_engine/CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Changelog for package flexbe_behavior_engine
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
4.0.2 (2025-11-08)
6+
------------------
7+
* update test set up for colcon testing and build farm
8+
59
4.0.1 (2024-09-26)
610
------------------
711

flexbe_behavior_engine/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package format="2">
33
<name>flexbe_behavior_engine</name>
4-
<version>4.0.1</version>
4+
<version>4.0.2</version>
55
<description>
66
A meta-package to aggregate all the FlexBE packages
77
</description>

flexbe_core/.flake8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[flake8]
2-
exclude = .git
2+
exclude = .git, build, install, dist
33
max-line-length = 130
4+
ignore = B902, W503, D100, D105, D107

flexbe_core/CHANGELOG.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
Changelog for package flexbe_core
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
4.0.2 (2025-11-08)
6+
------------------
7+
* flake8 cleanup and CI badge update
8+
* fixed state_logger and be_action_server for ros2
9+
* clean warn --> warning
10+
* clean of latest flake8 tests
11+
* update test set up for colcon testing and build farm
12+
* specify python3
13+
* protect against package parsing errors
14+
* add verify_action_status with timeout; clear status and other terms in remove_result
15+
516
4.0.1 (2024-09-26)
617
------------------
718
* codespell clean up

flexbe_core/flexbe_core/behavior.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2024 Philipp Schillinger, Team ViGIR, Christopher Newport University
44
#

flexbe_core/flexbe_core/behavior_library.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,18 @@ def parse_packages(self):
6363
"""Parse all ROS2 packages to update the internal behavior library."""
6464
self._behavior_lib = {}
6565
for pkg_name, pkg_path in get_packages_with_prefixes().items():
66-
pkg = parse_package(os.path.join(pkg_path, 'share', pkg_name))
67-
for export in pkg.exports:
68-
if export.tagname == 'flexbe_behaviors':
69-
try:
70-
self._add_behavior_manifests(os.path.join(pkg_path, 'lib', pkg_name, 'manifest'), pkg_name)
71-
except KeyError as exc:
72-
print(f"Error : duplicate behavior name found in '{pkg_name}' \n {exc}", flush=True)
73-
raise exc
66+
pkg_share_path = os.path.join(pkg_path, 'share', pkg_name)
67+
try:
68+
pkg = parse_package(pkg_share_path)
69+
for export in pkg.exports:
70+
if export.tagname == 'flexbe_behaviors':
71+
try:
72+
self._add_behavior_manifests(os.path.join(pkg_path, 'lib', pkg_name, 'manifest'), pkg_name)
73+
except KeyError as exc:
74+
print(f"Error : duplicate behavior name found in '{pkg_name}' \n {exc}", flush=True)
75+
raise exc
76+
except OSError:
77+
print(f"BehaviorLibrary - '{pkg_share_path}' cannot be parsed to find FlexBE relevant behaviors.")
7478

7579
def _add_behavior_manifests(self, path, pkg=None):
7680
"""
@@ -151,7 +155,7 @@ def find_behavior(self, be_identifier):
151155
be_package, be_name = be_split[0], '/'.join(be_split[1:])
152156

153157
def __find_behavior():
154-
return next((id, be) for (id, be)
158+
return next((beh_id, be) for (beh_id, be)
155159
in self._behavior_lib.items()
156160
if be['name'] == be_name and be['package'] == be_package)
157161
else:

flexbe_core/flexbe_core/core/concurrency_container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2024 Philipp Schillinger, Team ViGIR, Christopher Newport University
44
#
@@ -289,7 +289,7 @@ def on_exit(self, userdata, states=None):
289289
if state.name in self._returned_outcomes and self._returned_outcomes[state.name] is not None:
290290
if not state._exited:
291291
Logger.localinfo(f"\x1b[93mCC '{self.name}' - '{state.name}' is in returned outcomes "
292-
f"w/ '{self._returned_outcomes[state.name] }' but has not exited!\x1b[0m")
292+
f"w/ '{self._returned_outcomes[state.name]}' but has not exited!\x1b[0m")
293293
continue # skip states that already exited themselves
294294
self._execute_single_state(state, force_exit=True)
295295

0 commit comments

Comments
 (0)