-
Notifications
You must be signed in to change notification settings - Fork 21
Bump 0.8.0 #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Bump 0.8.0 #84
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 567e697
refactor: Clean up BT code and remove unused parameters
Seongoo 1de4bf0
fix: Fix BT execution issues and clean up code
Seongoo 4bbf551
feat(bt): Refactor to XML-based tree loading with dynamic config support
Seongoo 7b44210
feat: Add action publishing control mechanism for BT
Seongoo 223d2f5
chore: Add test XML files and update launch configuration
Seongoo e7713c6
refactor: Update test XML files and launch configuration
Seongoo 38137f1
Remove unnecessary joint_names parameter from XML files
Seongoo 38e2c52
Fix: Ensure topic_config is always dict in RuleAction to prevent attr…
Seongoo aeda9fd
removed unnecessary files
Seongoo 24eec48
Fix RuleAction trajectory publishing: always set header.stamp and tim…
Seongoo af83275
Refactor BT node and launch: robot_type now only from AI server, conf…
Seongoo 7f4b0d6
Add recovery.py to controls module
Seongoo f7f2cb1
Remove unused runtime_params logic and fix indentation in XMLTreeLoad…
Seongoo 2972241
Update RuleAction: dynamic angular_z calculation for 90-degree rotati…
Seongoo 1cd6a79
Clean up: Remove unused/legacy BT node code, update RuleWholeBody and…
Seongoo ffd28cc
Fix XML indentation in ffw_test_2.xml for improved readability
Seongoo 1176c2c
Update InferenceAction: require both gripper_l_joint1 and gripper_r_j…
Seongoo 6a08a53
feat: Extend ControlActionPublish service and actions, implement AI S…
Seongoo 4d6bfb4
Refactor BT actions and rename
Seongoo ddf9e3c
Update service interface: rename ControlActionPublish to ControlInfer…
Seongoo 39c91ea
Add gripper_triggered state monitoring and debug log to Inference action
Seongoo 645b5f9
Refactor BehaviorTreeNode: unify inference trigger state, remove dupl…
Seongoo 02b9549
refactor: improve odometry-based RuleSwerve control logic and topic d…
Seongoo 829c9ab
Update rule_swerve.py
Seongoo 6aac7a9
refactor: update RuleSwerve odometry-based control logic and tolerance
Seongoo aaf358c
Add CameraDepth BT node, XML integration, and remove debug logs. Upda…
Seongoo bded2cf
Add RuleHeadLift BT action node, XML integration, and bugfixes for jo…
Seongoo 1d73bcb
Update RuleHeadLift: only return SUCCESS when head and lift joints re…
Seongoo b404477
Update RuleArms and RuleHeadLift: set position_threshold to 0.01, imp…
Seongoo 5450e1b
Remove timeout argument from RuleArms instantiation to match unified …
Seongoo aa2d5d6
Fix RuleArms position_threshold to 0.09 in code, remove XML parameter…
Seongoo 13eb600
Cleanup: remove RuleWholeBody from actions and loader, update ffw_tes…
Seongoo 8c4e416
Remove rule_whole_body.py: deprecated whole-body action node deleted
Seongoo a0db124
Remove debugging logs from tick_callback and status_callback; keep on…
Seongoo ba33691
Remove per-joint and feedback debugging logs from RuleArms action nod…
Seongoo 5e78790
Apply latest code and log cleanup for BT node and actions
Seongoo 7c737ee
Remove warning log for missing /task/status; only set inference_detec…
Seongoo f874393
Remove warning log for missing header.stamp in /task/status; use syst…
Seongoo 035c23f
Commit all recent code and log cleanup changes
Seongoo f3c1c0b
Refactor SendLanguageInstruction action to update only language instr…
Seongoo 924f059
Remove SendLanguageInstruction action and references from BT loader, …
Seongoo 88101db
Add CLAUDE.md to .gitignore to prevent documentation file from being …
Seongoo c6d8532
Removed unused file
Seongoo 72e44e3
Update physical_ai_bt
Seongoo 13e811e
Refactor BT node to auto-start on launch without AI Server dependencies
Seongoo de1307f
Remove all unnecessary services and methods from BT node
Seongoo d3456d7
Rename XMLTreeLoader to TreeLoader for cleaner naming
Seongoo db73c1d
Remove AI inference actions, keep only rule-based actions
Seongoo 4071a06
Refactor MoveHeadLift to MoveHead and remove OpenGrippers
Seongoo 74f68cd
Remove RotateLidar action
Seongoo 4b76ed4
Remove control nodes except Sequence
Seongoo f543ccb
Update ffw_test.xml to remove deleted action descriptions
Seongoo a1cc6b8
Improve Sequence to reset each child immediately after completion
Seongoo 9da565f
Clean up code: remove comments and update copyright year
Seongoo a4b6fc9
Reorganize tree XML files and update launch file
Seongoo 37fef3e
Remove build artifacts from install directory
Seongoo 76861ff
Update tree XML reference and remove remaining comments
Seongoo 4544836
Remove docstrings from base_action.py
Seongoo bd2367a
Add duration parameter to all trajectory actions
Seongoo 71aaed0
Add duration parameters to XML tree definition
Seongoo 3874b69
Remove nanosec from trajectory time_from_start
Seongoo 72c00f3
Remove unused interface
Seongoo 5778083
Add CHANGELOG for physical_ai_bt package
Seongoo 755b11a
Bump physical_ai_bt version to 0.8.0
Seongoo 77a2610
Bump physical_ai_interfaces version to 0.8.0
Seongoo 114026d
Bump physical_ai_manager version to 0.8.0
Seongoo 92a400d
Bump physical_ai_server version to 0.8.0
Seongoo e3bfb18
Bump physical_ai_tools version to 0.8.0 and add physical_ai_bt depend…
Seongoo 1a1ee8c
Bump rosbag_recorder version to 0.8.0
Seongoo fa6910e
Add physical_ai_bt to CI workflow
Seongoo ac1fc53
Fix lint
Seongoo eea4526
Remove unnecessary comment
Seongoo b11f883
Fix all ament_flake8 and ament_pep257 linting errors in physical_ai_bt
Seongoo 51898a0
Add automatic node shutdown after BT completion
Seongoo 77636b0
Fix pep257 docstring format in control_action_publish_callback
Seongoo 2005075
Fix flake8 import order and quote style in physical_ai_server
Seongoo 60fe7be
Fix joint state validation bug in BT actions
Seongoo 60c1e15
Remove Isaac-GR00T submodule and update gitignore
Seongoo 6e62845
Refactor MoveArms action to remove duplicate joint checking logic
Seongoo d00cd2e
Remove unused JointTrajectory publisher from Rotate action
Seongoo e450539
Clean up project configuration
Seongoo c171932
Add error handling for unknown node types in TreeLoader
Seongoo bf83e96
Correct camera topic name
Seongoo 33c2e0a
Remove BaseDecorator
Seongoo c48512b
Refactor BT node structure to improve code organization
Seongoo b6c3f3e
Refactor: Extract magic numbers to constants module
Seongoo 3472278
Refactor: Make joint names configurable for multiple robot types
Seongoo 9de531d
Fix: Add thread synchronization to prevent race conditions
Seongoo 5f8280a
Remove unused srv
Seongoo db5672a
Update .gitignore
Seongoo dcd356c
Remove unused action publish control code
Seongoo 7690b02
Fix lint
Seongoo 8899a29
Modify omx config
Seongoo 4954e56
Add a logger
Seongoo 95547a2
Add a space
Seongoo 1dbd703
Merge pull request #83 from ROBOTIS-GIT/feature-behavior-tree
Seongoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -75,3 +75,4 @@ jobs: | |
| physical_ai_server | ||
| physical_ai_interfaces | ||
| rosbag_recorder | ||
| physical_ai_bt | ||
This file contains hidden or 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 hidden or 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,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 |
This file contains hidden or 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,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) | ||
Seongoo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| import yaml | ||
Seongoo marked this conversation as resolved.
Show resolved
Hide resolved
Seongoo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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) | ||
| ]) | ||
This file contains hidden or 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 @@ | ||
| bt_node: | ||
| ros__parameters: | ||
| robot_type: 'ffw_sg2_rev1' | ||
| tree_xml: 'ffw_sg2_rev1.xml' | ||
| tick_rate: 30.0 |
This file contains hidden or 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,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> |
This file contains hidden or 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,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.""" |
This file contains hidden or 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,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', | ||
| ] |
This file contains hidden or 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,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 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.