Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
4354d83
feat: Add Behavior Tree package for robot control
Seongoo Nov 11, 2025
567e697
refactor: Clean up BT code and remove unused parameters
Seongoo Nov 11, 2025
1de4bf0
fix: Fix BT execution issues and clean up code
Seongoo Nov 11, 2025
4bbf551
feat(bt): Refactor to XML-based tree loading with dynamic config support
Seongoo Nov 11, 2025
7b44210
feat: Add action publishing control mechanism for BT
Seongoo Nov 12, 2025
223d2f5
chore: Add test XML files and update launch configuration
Seongoo Nov 12, 2025
e7713c6
refactor: Update test XML files and launch configuration
Seongoo Nov 12, 2025
38137f1
Remove unnecessary joint_names parameter from XML files
Seongoo Nov 12, 2025
38e2c52
Fix: Ensure topic_config is always dict in RuleAction to prevent attr…
Seongoo Nov 13, 2025
aeda9fd
removed unnecessary files
Seongoo Nov 13, 2025
24eec48
Fix RuleAction trajectory publishing: always set header.stamp and tim…
Seongoo Nov 14, 2025
af83275
Refactor BT node and launch: robot_type now only from AI server, conf…
Seongoo Nov 14, 2025
7f4b0d6
Add recovery.py to controls module
Seongoo Nov 14, 2025
f7f2cb1
Remove unused runtime_params logic and fix indentation in XMLTreeLoad…
Seongoo Nov 17, 2025
2972241
Update RuleAction: dynamic angular_z calculation for 90-degree rotati…
Seongoo Nov 17, 2025
1cd6a79
Clean up: Remove unused/legacy BT node code, update RuleWholeBody and…
Seongoo Nov 17, 2025
ffd28cc
Fix XML indentation in ffw_test_2.xml for improved readability
Seongoo Nov 17, 2025
1176c2c
Update InferenceAction: require both gripper_l_joint1 and gripper_r_j…
Seongoo Nov 17, 2025
6a08a53
feat: Extend ControlActionPublish service and actions, implement AI S…
Seongoo Nov 18, 2025
4d6bfb4
Refactor BT actions and rename
Seongoo Nov 18, 2025
ddf9e3c
Update service interface: rename ControlActionPublish to ControlInfer…
Seongoo Nov 18, 2025
39c91ea
Add gripper_triggered state monitoring and debug log to Inference action
Seongoo Nov 18, 2025
645b5f9
Refactor BehaviorTreeNode: unify inference trigger state, remove dupl…
Seongoo Nov 18, 2025
02b9549
refactor: improve odometry-based RuleSwerve control logic and topic d…
Seongoo Nov 18, 2025
829c9ab
Update rule_swerve.py
Seongoo Nov 19, 2025
6aac7a9
refactor: update RuleSwerve odometry-based control logic and tolerance
Seongoo Nov 19, 2025
aaf358c
Add CameraDepth BT node, XML integration, and remove debug logs. Upda…
Seongoo Nov 19, 2025
bded2cf
Add RuleHeadLift BT action node, XML integration, and bugfixes for jo…
Seongoo Nov 24, 2025
1d73bcb
Update RuleHeadLift: only return SUCCESS when head and lift joints re…
Seongoo Nov 24, 2025
b404477
Update RuleArms and RuleHeadLift: set position_threshold to 0.01, imp…
Seongoo Nov 24, 2025
5450e1b
Remove timeout argument from RuleArms instantiation to match unified …
Seongoo Nov 24, 2025
aa2d5d6
Fix RuleArms position_threshold to 0.09 in code, remove XML parameter…
Seongoo Nov 24, 2025
13eb600
Cleanup: remove RuleWholeBody from actions and loader, update ffw_tes…
Seongoo Nov 24, 2025
8c4e416
Remove rule_whole_body.py: deprecated whole-body action node deleted
Seongoo Nov 24, 2025
a0db124
Remove debugging logs from tick_callback and status_callback; keep on…
Seongoo Nov 24, 2025
ba33691
Remove per-joint and feedback debugging logs from RuleArms action nod…
Seongoo Nov 24, 2025
5e78790
Apply latest code and log cleanup for BT node and actions
Seongoo Nov 24, 2025
7c737ee
Remove warning log for missing /task/status; only set inference_detec…
Seongoo Nov 24, 2025
f874393
Remove warning log for missing header.stamp in /task/status; use syst…
Seongoo Nov 24, 2025
035c23f
Commit all recent code and log cleanup changes
Seongoo Nov 24, 2025
f3c1c0b
Refactor SendLanguageInstruction action to update only language instr…
Seongoo Nov 24, 2025
924f059
Remove SendLanguageInstruction action and references from BT loader, …
Seongoo Nov 24, 2025
88101db
Add CLAUDE.md to .gitignore to prevent documentation file from being …
Seongoo Nov 24, 2025
c6d8532
Removed unused file
Seongoo Nov 24, 2025
72e44e3
Update physical_ai_bt
Seongoo Dec 12, 2025
13e811e
Refactor BT node to auto-start on launch without AI Server dependencies
Seongoo Jan 16, 2026
de1307f
Remove all unnecessary services and methods from BT node
Seongoo Jan 16, 2026
d3456d7
Rename XMLTreeLoader to TreeLoader for cleaner naming
Seongoo Jan 16, 2026
db73c1d
Remove AI inference actions, keep only rule-based actions
Seongoo Jan 16, 2026
4071a06
Refactor MoveHeadLift to MoveHead and remove OpenGrippers
Seongoo Jan 16, 2026
74f68cd
Remove RotateLidar action
Seongoo Jan 16, 2026
4b76ed4
Remove control nodes except Sequence
Seongoo Jan 16, 2026
f543ccb
Update ffw_test.xml to remove deleted action descriptions
Seongoo Jan 16, 2026
a1cc6b8
Improve Sequence to reset each child immediately after completion
Seongoo Jan 16, 2026
9da565f
Clean up code: remove comments and update copyright year
Seongoo Jan 16, 2026
a4b6fc9
Reorganize tree XML files and update launch file
Seongoo Jan 16, 2026
37fef3e
Remove build artifacts from install directory
Seongoo Jan 16, 2026
76861ff
Update tree XML reference and remove remaining comments
Seongoo Jan 16, 2026
4544836
Remove docstrings from base_action.py
Seongoo Jan 16, 2026
bd2367a
Add duration parameter to all trajectory actions
Seongoo Jan 16, 2026
71aaed0
Add duration parameters to XML tree definition
Seongoo Jan 16, 2026
3874b69
Remove nanosec from trajectory time_from_start
Seongoo Jan 16, 2026
72c00f3
Remove unused interface
Seongoo Jan 16, 2026
5778083
Add CHANGELOG for physical_ai_bt package
Seongoo Jan 16, 2026
755b11a
Bump physical_ai_bt version to 0.8.0
Seongoo Jan 16, 2026
77a2610
Bump physical_ai_interfaces version to 0.8.0
Seongoo Jan 16, 2026
114026d
Bump physical_ai_manager version to 0.8.0
Seongoo Jan 16, 2026
92a400d
Bump physical_ai_server version to 0.8.0
Seongoo Jan 16, 2026
e3bfb18
Bump physical_ai_tools version to 0.8.0 and add physical_ai_bt depend…
Seongoo Jan 16, 2026
1a1ee8c
Bump rosbag_recorder version to 0.8.0
Seongoo Jan 16, 2026
fa6910e
Add physical_ai_bt to CI workflow
Seongoo Jan 16, 2026
ac1fc53
Fix lint
Seongoo Jan 16, 2026
eea4526
Remove unnecessary comment
Seongoo Jan 16, 2026
b11f883
Fix all ament_flake8 and ament_pep257 linting errors in physical_ai_bt
Seongoo Jan 16, 2026
51898a0
Add automatic node shutdown after BT completion
Seongoo Jan 21, 2026
77636b0
Fix pep257 docstring format in control_action_publish_callback
Seongoo Jan 23, 2026
2005075
Fix flake8 import order and quote style in physical_ai_server
Seongoo Jan 23, 2026
60fe7be
Fix joint state validation bug in BT actions
Seongoo Jan 23, 2026
60c1e15
Remove Isaac-GR00T submodule and update gitignore
Seongoo Jan 23, 2026
6e62845
Refactor MoveArms action to remove duplicate joint checking logic
Seongoo Jan 23, 2026
d00cd2e
Remove unused JointTrajectory publisher from Rotate action
Seongoo Jan 23, 2026
e450539
Clean up project configuration
Seongoo Jan 23, 2026
c171932
Add error handling for unknown node types in TreeLoader
Seongoo Jan 23, 2026
bf83e96
Correct camera topic name
Seongoo Jan 23, 2026
33c2e0a
Remove BaseDecorator
Seongoo Jan 23, 2026
c48512b
Refactor BT node structure to improve code organization
Seongoo Jan 23, 2026
b6c3f3e
Refactor: Extract magic numbers to constants module
Seongoo Jan 23, 2026
3472278
Refactor: Make joint names configurable for multiple robot types
Seongoo Jan 23, 2026
9de531d
Fix: Add thread synchronization to prevent race conditions
Seongoo Jan 26, 2026
5f8280a
Remove unused srv
Seongoo Jan 26, 2026
db5672a
Update .gitignore
Seongoo Jan 26, 2026
dcd356c
Remove unused action publish control code
Seongoo Jan 26, 2026
7690b02
Fix lint
Seongoo Jan 26, 2026
8899a29
Modify omx config
Seongoo Jan 26, 2026
4954e56
Add a logger
Seongoo Jan 26, 2026
95547a2
Add a space
Seongoo Jan 26, 2026
1dbd703
Merge pull request #83 from ROBOTIS-GIT/feature-behavior-tree
Seongoo Jan 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ros-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,4 @@ jobs:
physical_ai_server
physical_ai_interfaces
rosbag_recorder
physical_ai_bt
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,6 @@ CATKIN_IGNORE
AMENT_IGNORE
COLCON_IGNORE


##############################
# ETC.
##############################
Expand Down
11 changes: 11 additions & 0 deletions physical_ai_bt/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Changelog for package physical_ai_bt
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0.8.0 (2026-01-19)
------------------
* Initial release of physical_ai_bt package
* Implemented rule-based behavior tree system with Sequence control node
* Added trajectory-based actions (MoveArms, MoveLift, MoveHead, Rotate)
* Added TreeLoader for XML-based configuration with auto-execution mode
* Contributors: Seongwoo Kim
93 changes: 93 additions & 0 deletions physical_ai_bt/bt_bringup/launch/bt_node.launch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
#!/usr/bin/env python3
#
# Copyright 2026 ROBOTIS CO., LTD.
#
# 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.
#
# Author: Seongwoo Kim

import os

from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.actions import OpaqueFunction
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import Node


def launch_setup(context, *args, **kwargs):

robot_type = LaunchConfiguration('robot_type').perform(context)

server_pkg_share = get_package_share_directory('physical_ai_server')
bt_pkg_share = get_package_share_directory('physical_ai_bt')

server_config_dir = os.path.join(server_pkg_share, 'config')
bt_params_file = 'bt_node_params.yaml'
bt_params_path = os.path.join(
bt_pkg_share, 'bt_bringup', 'params', bt_params_file
)
robot_config = f'{robot_type}_config.yaml'
robot_config_path = os.path.join(server_config_dir, robot_config)

if not os.path.exists(robot_config_path):
print(f'Warning: Config file not found: {robot_config_path}')
print('Falling back to ffw_sg2_rev1_config.yaml')
fallback_config = 'ffw_sg2_rev1_config.yaml'
robot_config_path = os.path.join(server_config_dir, fallback_config)

import yaml
with open(robot_config_path, 'r') as f:
config = yaml.safe_load(f)

server_config = config.get(
'physical_ai_server', {}
).get('ros__parameters', {}).get(robot_type, {})
joint_list = server_config.get('joint_list', [])
joint_order = server_config.get('joint_order', {})
joint_topic_list = server_config.get('joint_topic_list', [])

bt_params = {
f'{robot_type}.joint_list': joint_list,
f'{robot_type}.joint_topic_list': joint_topic_list,
}
for joint_name, order in joint_order.items():
bt_params[f'{robot_type}.joint_order.{joint_name}'] = order

bt_node = Node(
package='physical_ai_bt',
executable='bt_node',
name='bt_node',
output='screen',
parameters=[
bt_params_path,
bt_params
]
)

return [bt_node]


def generate_launch_description():

robot_type_arg = DeclareLaunchArgument(
'robot_type',
default_value='ffw_sg2_rev1',
description='Type of robot (e.g., ffw_sg2_rev1)'
)

return LaunchDescription([
robot_type_arg,
OpaqueFunction(function=launch_setup)
])
5 changes: 5 additions & 0 deletions physical_ai_bt/bt_bringup/params/bt_node_params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bt_node:
ros__parameters:
robot_type: 'ffw_sg2_rev1'
tree_xml: 'ffw_sg2_rev1.xml'
tick_rate: 30.0
22 changes: 22 additions & 0 deletions physical_ai_bt/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>physical_ai_bt</name>
<version>0.8.0</version>
<description>
Python-based Behavior Tree for Physical AI
</description>
<maintainer email="pyo@robotis.com">Pyo</maintainer>
<license>Apache-2.0</license>
<author email="kimsw@robotis.com">Seongwoo Kim</author>
<depend>rclpy</depend>
<depend>physical_ai_interfaces</depend>
<depend>std_msgs</depend>
<depend>sensor_msgs</depend>
<depend>message_filters</depend>
<depend>cv_bridge</depend>
<depend>trajectory_msgs</depend>
<export>
<build_type>ament_python</build_type>
</export>
</package>
19 changes: 19 additions & 0 deletions physical_ai_bt/physical_ai_bt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python3
#
# Copyright 2026 ROBOTIS CO., LTD.
#
# 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.
#
# Author: Seongwoo Kim

"""Physical AI Behavior Tree package."""
33 changes: 33 additions & 0 deletions physical_ai_bt/physical_ai_bt/actions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env python3
#
# Copyright 2026 ROBOTIS CO., LTD.
#
# 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.
#
# Author: Seongwoo Kim

"""Physical AI Behavior Tree actions package."""

from physical_ai_bt.actions.base_action import BaseAction
from physical_ai_bt.actions.move_arms import MoveArms
from physical_ai_bt.actions.move_head import MoveHead
from physical_ai_bt.actions.move_lift import MoveLift
from physical_ai_bt.actions.rotate import Rotate

__all__ = [
'BaseAction',
'MoveArms',
'MoveLift',
'MoveHead',
'Rotate',
]
27 changes: 27 additions & 0 deletions physical_ai_bt/physical_ai_bt/actions/base_action.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env python3
#
# Copyright 2026 ROBOTIS CO., LTD.
#
# 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.
#
# Author: Seongwoo Kim

"""Base class for action nodes in the behavior tree."""

from physical_ai_bt.bt_core import BTNode


class BaseAction(BTNode):
"""Base class for action nodes in the behavior tree."""

pass
Loading
Loading