- Improved `get_grasp_pose_callback` with regex for grasp pose matching and added fallback mechanisms for `pregrasp_pose` and `postgrasp_pose`. - Introduced `_create_pose_msg` and `_create_pose_msg_from_name` helper functions for dynamic transform-to-pose conversion. - Updated `GetGraspPose.srv` to include `pregrasp_pose` and `postgrasp_pose` in the service response structure. - Enhanced TF listener integration in `assembly_config_service.py` for dynamic pose retrieval and parameter management. - Added `rbs_utils_interfaces` dependency in `CMakeLists.txt` and introduced new `GetGraspPose` node for behavior tree integration. - Replaced `MoveGripper` with `GripperCommand` to improve gripper state transitions. - Refactored `MoveToPose` and `GetWorkspace` nodes for enhanced logging and parameter handling. - Updated `workspace_movement.xml` and `grasp_object.xml` with improved actions and configurations.
33 lines
1.3 KiB
XML
33 lines
1.3 KiB
XML
<?xml version='1.0' encoding='utf-8'?>
|
|
<root BTCPP_format="4">
|
|
<BehaviorTree ID="WorkspaceMovement">
|
|
<Sequence>
|
|
|
|
<!-- <Script code="action:='/'+robot_name+'/cartesian_move_to_pose'" /> -->
|
|
<!-- <Script code="get_workspace:='/'+robot_name+'/get_workspace'"/> -->
|
|
|
|
<Script code="action:='/mtp_jtc'"/>
|
|
<Script code="get_workspace:='/get_workspace'"/>
|
|
|
|
<Action ID="GetWorkspace" type="box" service_name="{get_workspace}" workspace="{workspace}"/>
|
|
|
|
<Action ID="MoveToPoseArray" pose_vec_in="{workspace}" pose_vec_out="{goal_pose}"
|
|
robot_name="{robot_name}" action_name="{action}" />
|
|
<Action ID="MoveToPoseArray" pose_vec_in="{goal_pose}" pose_vec_out="{goal_pose}"
|
|
robot_name="{robot_name}" action_name="{action}" />
|
|
<Action ID="MoveToPoseArray" pose_vec_in="{goal_pose}" pose_vec_out="{goal_pose}"
|
|
robot_name="{robot_name}" action_name="{action}" />
|
|
<Action ID="MoveToPoseArray" pose_vec_in="{goal_pose}" pose_vec_out="{goal_pose}"
|
|
robot_name="{robot_name}" action_name="{action}" />
|
|
</Sequence>
|
|
</BehaviorTree>
|
|
|
|
<TreeNodesModel>
|
|
<Action ID="MoveToPoseArray">
|
|
<input_port name="pose_vec_in" />
|
|
<output_port name="pose_vec_out" />
|
|
<input_port name="robot_name" />
|
|
<input_port name="action_name" />
|
|
</Action>
|
|
</TreeNodesModel>
|
|
</root>
|