Closed RicardoM17 closed 3 years ago
After investigating a bit I realized that these lines are missing:
set instance recharge_zone zone
set predicate (is_recharge_zone recharge_zone)
set predicate (robot_available r2d2)
I'm also not sure if it's by design for simplicity but all the pieces are already in the assembly zone at the start, making the plan rather simple.
That being said I'm now facing 2 different issues:
> get plan
plan:
0 (move r2d2 wheels_zone assembly_zone) 5
5.001 (move r2d2 assembly_zone recharge_zone) 5
10.002 (recharge r2d2 recharge_zone) 5
15.003 (move r2d2 recharge_zone assembly_zone) 5
20.004 (assemble r2d2 assembly_zone wheel_1 body_car_1 steering_wheel_1 car_1) 5
[bt_action_node-2] [PublisherZMQ] Server quitting.
[bt_action_node-2] [PublisherZMQ] just died. Exeption Context was terminated
[bt_action_node-2] [PublisherZMQ] Publisher quitting.
[bt_action_node-2] [PublisherZMQ] just died. Exeption Context was terminated
[bt_action_node-2] [PublisherZMQ] just died. Exeption Socket operation on non-socket
[bt_action_node-2] [INFO] [1627635879.350604671] [move_1]: Waiting for "navigate_to_pose" action server
[bt_action_node-2] [INFO] [1627635879.350792166] [move_1]: "move" BtActionNode initialized
[bt_action_node-2] [ERROR] [1627635879.358654112] []: Caught exception in callback for transition 13
[bt_action_node-2] [ERROR] [1627635879.358664422] []: Original error: parameter 'waypoints' has already been declared
[bt_action_node-2] [WARN] [1627635879.358680232] []: Error occurred while doing error handling.
The first move actions succeeds however.
Let me check...
Hi,
- The plan is not optimal as it doesn't move directly to the recharge zone but goes first to the assembly zone:
I am afraid that this problem is related to how the planner calculates the plan. Maybe with some extra parameters calling popf could fix it.
- When running the actual plan it can't go to the second move action giving the following error:
Fixed in https://github.com/IntelligentRoboticsLabs/ros2_planning_system_examples/pull/25
Best
- The plan is not optimal as it doesn't move directly to the recharge zone but goes first to the assembly zone:
I am afraid that this problem is related to how the planner calculates the plan. Maybe with some extra parameters calling popf could fix it.
Could be but FYI using TFD the optimal plan is computed. All the info is there from the pddl POV but it seems to always want to assemble first without checking all the requirements.
When running the actual plan it can't go to the second move action giving the following error:
Fixed in #25
Correct! Tested on my end with both POPF and TFD and it now runs smoothly.
Thanks a lot for the help @fmrico. I'm closing this issue. if still want to investigate the non-optimal plan by POPF we can create a new issue instead but it's not really relevant for this repo.
I'm following the instructions for this example on the documentation: Link
When I enter the commands in the plansys2 terminal I get a "Plan not found" error
I'm using the fake sim for reference with Ubuntu 20.04 and ROS2 Galactic.
Any ideas @fmrico ?