![]() |
plansys2_simple_example_py package from ros2_planning_system_examples repoplansys2_bt_example plansys2_cascade_example plansys2_examples plansys2_multidomain_example plansys2_patrol_navigation_example plansys2_simple_example plansys2_simple_example_py |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.4 |
License | Apache License, Version 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/plansys2/ros2_planning_system_examples.git |
VCS Type | git |
VCS Version | rolling |
Last Updated | 2025-07-23 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Francisco Martin Rico
Authors
PlanSys2 Simple Example in Python
Description
This is a simple example that shows the basic operation of PlanSys2. A simple PDDL domain has been specified, and we will use the PlanSys2 Terminal to insert commands. Actions simulate their execution.
How to run
In terminal 1:
ros2 launch plansys2_simple_example_py plansys2_simple_example_launch.py
In terminal 2:
ros2 run plansys2_terminal plansys2_terminal # enters in PlanSys2 Terminal
set instance leia robot
set instance entrance room
set instance kitchen room
set instance bedroom room
set instance dinning room
set instance bathroom room
set instance chargingroom room
get problem instances # Checks instances
set predicate (connected entrance dinning)
set predicate (connected dinning entrance)
set predicate (connected dinning kitchen)
set predicate (connected kitchen dinning)
set predicate (connected dinning bedroom)
set predicate (connected bedroom dinning)
set predicate (connected bathroom bedroom)
set predicate (connected bedroom bathroom)
set predicate (connected chargingroom kitchen)
set predicate (connected kitchen chargingroom)
set predicate (charging_point_at chargingroom)
set predicate (battery_low leia)
set predicate (robot_at leia entrance)
get problem predicates # Checks predicates
set goal (and(robot_at leia bathroom)) # Sets the goal
get plan # Creates plan and shows it
run # Creates plan and runs it
Changelog for package plansys2_simple_example
0.0.4 (2020-01-09)
0.0.3 (2020-01-09)
0.0.2 (2020-01-08)
- Package description Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- First functional version complete Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Execute actions independently. Example Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Contributors: Francisco Martin Rico
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
python_cmake_module | |
plansys2_bringup | |
plansys2_terminal | |
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
rclcpp | |
plansys2_executor | |
plansys2_support_py |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
plansys2_examples |
Launch files
Messages
Services
Plugins
Recent questions tagged plansys2_simple_example_py at Robotics Stack Exchange
![]() |
plansys2_simple_example_py package from ros2_planning_system_examples repoplansys2_bt_example plansys2_cascade_example plansys2_examples plansys2_multidomain_example plansys2_patrol_navigation_example plansys2_simple_example plansys2_simple_example_py |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.4 |
License | Apache License, Version 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/plansys2/ros2_planning_system_examples.git |
VCS Type | git |
VCS Version | rolling |
Last Updated | 2025-07-23 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Francisco Martin Rico
Authors
PlanSys2 Simple Example in Python
Description
This is a simple example that shows the basic operation of PlanSys2. A simple PDDL domain has been specified, and we will use the PlanSys2 Terminal to insert commands. Actions simulate their execution.
How to run
In terminal 1:
ros2 launch plansys2_simple_example_py plansys2_simple_example_launch.py
In terminal 2:
ros2 run plansys2_terminal plansys2_terminal # enters in PlanSys2 Terminal
set instance leia robot
set instance entrance room
set instance kitchen room
set instance bedroom room
set instance dinning room
set instance bathroom room
set instance chargingroom room
get problem instances # Checks instances
set predicate (connected entrance dinning)
set predicate (connected dinning entrance)
set predicate (connected dinning kitchen)
set predicate (connected kitchen dinning)
set predicate (connected dinning bedroom)
set predicate (connected bedroom dinning)
set predicate (connected bathroom bedroom)
set predicate (connected bedroom bathroom)
set predicate (connected chargingroom kitchen)
set predicate (connected kitchen chargingroom)
set predicate (charging_point_at chargingroom)
set predicate (battery_low leia)
set predicate (robot_at leia entrance)
get problem predicates # Checks predicates
set goal (and(robot_at leia bathroom)) # Sets the goal
get plan # Creates plan and shows it
run # Creates plan and runs it
Changelog for package plansys2_simple_example
0.0.4 (2020-01-09)
0.0.3 (2020-01-09)
0.0.2 (2020-01-08)
- Package description Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- First functional version complete Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Execute actions independently. Example Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Contributors: Francisco Martin Rico
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
python_cmake_module | |
plansys2_bringup | |
plansys2_terminal | |
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
rclcpp | |
plansys2_executor | |
plansys2_support_py |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
plansys2_examples |
Launch files
Messages
Services
Plugins
Recent questions tagged plansys2_simple_example_py at Robotics Stack Exchange
![]() |
plansys2_simple_example_py package from ros2_planning_system_examples repoplansys2_bt_example plansys2_cascade_example plansys2_examples plansys2_multidomain_example plansys2_patrol_navigation_example plansys2_simple_example plansys2_simple_example_py |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.4 |
License | Apache License, Version 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/plansys2/ros2_planning_system_examples.git |
VCS Type | git |
VCS Version | rolling |
Last Updated | 2025-07-23 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Francisco Martin Rico
Authors
PlanSys2 Simple Example in Python
Description
This is a simple example that shows the basic operation of PlanSys2. A simple PDDL domain has been specified, and we will use the PlanSys2 Terminal to insert commands. Actions simulate their execution.
How to run
In terminal 1:
ros2 launch plansys2_simple_example_py plansys2_simple_example_launch.py
In terminal 2:
ros2 run plansys2_terminal plansys2_terminal # enters in PlanSys2 Terminal
set instance leia robot
set instance entrance room
set instance kitchen room
set instance bedroom room
set instance dinning room
set instance bathroom room
set instance chargingroom room
get problem instances # Checks instances
set predicate (connected entrance dinning)
set predicate (connected dinning entrance)
set predicate (connected dinning kitchen)
set predicate (connected kitchen dinning)
set predicate (connected dinning bedroom)
set predicate (connected bedroom dinning)
set predicate (connected bathroom bedroom)
set predicate (connected bedroom bathroom)
set predicate (connected chargingroom kitchen)
set predicate (connected kitchen chargingroom)
set predicate (charging_point_at chargingroom)
set predicate (battery_low leia)
set predicate (robot_at leia entrance)
get problem predicates # Checks predicates
set goal (and(robot_at leia bathroom)) # Sets the goal
get plan # Creates plan and shows it
run # Creates plan and runs it
Changelog for package plansys2_simple_example
0.0.4 (2020-01-09)
0.0.3 (2020-01-09)
0.0.2 (2020-01-08)
- Package description Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- First functional version complete Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Execute actions independently. Example Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Contributors: Francisco Martin Rico
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
python_cmake_module | |
plansys2_bringup | |
plansys2_terminal | |
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
rclcpp | |
plansys2_executor | |
plansys2_support_py |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
plansys2_examples |
Launch files
Messages
Services
Plugins
Recent questions tagged plansys2_simple_example_py at Robotics Stack Exchange
![]() |
plansys2_simple_example_py package from ros2_planning_system_examples repoplansys2_bt_example plansys2_cascade_example plansys2_examples plansys2_multidomain_example plansys2_patrol_navigation_example plansys2_simple_example plansys2_simple_example_py |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.4 |
License | Apache License, Version 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/plansys2/ros2_planning_system_examples.git |
VCS Type | git |
VCS Version | rolling |
Last Updated | 2025-07-23 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Francisco Martin Rico
Authors
PlanSys2 Simple Example in Python
Description
This is a simple example that shows the basic operation of PlanSys2. A simple PDDL domain has been specified, and we will use the PlanSys2 Terminal to insert commands. Actions simulate their execution.
How to run
In terminal 1:
ros2 launch plansys2_simple_example_py plansys2_simple_example_launch.py
In terminal 2:
ros2 run plansys2_terminal plansys2_terminal # enters in PlanSys2 Terminal
set instance leia robot
set instance entrance room
set instance kitchen room
set instance bedroom room
set instance dinning room
set instance bathroom room
set instance chargingroom room
get problem instances # Checks instances
set predicate (connected entrance dinning)
set predicate (connected dinning entrance)
set predicate (connected dinning kitchen)
set predicate (connected kitchen dinning)
set predicate (connected dinning bedroom)
set predicate (connected bedroom dinning)
set predicate (connected bathroom bedroom)
set predicate (connected bedroom bathroom)
set predicate (connected chargingroom kitchen)
set predicate (connected kitchen chargingroom)
set predicate (charging_point_at chargingroom)
set predicate (battery_low leia)
set predicate (robot_at leia entrance)
get problem predicates # Checks predicates
set goal (and(robot_at leia bathroom)) # Sets the goal
get plan # Creates plan and shows it
run # Creates plan and runs it
Changelog for package plansys2_simple_example
0.0.4 (2020-01-09)
0.0.3 (2020-01-09)
0.0.2 (2020-01-08)
- Package description Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- First functional version complete Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Execute actions independently. Example Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Contributors: Francisco Martin Rico
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
python_cmake_module | |
plansys2_bringup | |
plansys2_terminal | |
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
rclcpp | |
plansys2_executor | |
plansys2_support_py |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
plansys2_examples |
Launch files
Messages
Services
Plugins
Recent questions tagged plansys2_simple_example_py at Robotics Stack Exchange
![]() |
plansys2_simple_example_py package from ros2_planning_system_examples repoplansys2_bt_example plansys2_cascade_example plansys2_examples plansys2_multidomain_example plansys2_patrol_navigation_example plansys2_simple_example plansys2_simple_example_py |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.4 |
License | Apache License, Version 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/plansys2/ros2_planning_system_examples.git |
VCS Type | git |
VCS Version | rolling |
Last Updated | 2025-07-23 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Francisco Martin Rico
Authors
PlanSys2 Simple Example in Python
Description
This is a simple example that shows the basic operation of PlanSys2. A simple PDDL domain has been specified, and we will use the PlanSys2 Terminal to insert commands. Actions simulate their execution.
How to run
In terminal 1:
ros2 launch plansys2_simple_example_py plansys2_simple_example_launch.py
In terminal 2:
ros2 run plansys2_terminal plansys2_terminal # enters in PlanSys2 Terminal
set instance leia robot
set instance entrance room
set instance kitchen room
set instance bedroom room
set instance dinning room
set instance bathroom room
set instance chargingroom room
get problem instances # Checks instances
set predicate (connected entrance dinning)
set predicate (connected dinning entrance)
set predicate (connected dinning kitchen)
set predicate (connected kitchen dinning)
set predicate (connected dinning bedroom)
set predicate (connected bedroom dinning)
set predicate (connected bathroom bedroom)
set predicate (connected bedroom bathroom)
set predicate (connected chargingroom kitchen)
set predicate (connected kitchen chargingroom)
set predicate (charging_point_at chargingroom)
set predicate (battery_low leia)
set predicate (robot_at leia entrance)
get problem predicates # Checks predicates
set goal (and(robot_at leia bathroom)) # Sets the goal
get plan # Creates plan and shows it
run # Creates plan and runs it
Changelog for package plansys2_simple_example
0.0.4 (2020-01-09)
0.0.3 (2020-01-09)
0.0.2 (2020-01-08)
- Package description Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- First functional version complete Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Execute actions independently. Example Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Contributors: Francisco Martin Rico
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
python_cmake_module | |
plansys2_bringup | |
plansys2_terminal | |
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
rclcpp | |
plansys2_executor | |
plansys2_support_py |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
plansys2_examples |
Launch files
Messages
Services
Plugins
Recent questions tagged plansys2_simple_example_py at Robotics Stack Exchange
![]() |
plansys2_simple_example_py package from ros2_planning_system_examples repoplansys2_bt_example plansys2_cascade_example plansys2_examples plansys2_multidomain_example plansys2_patrol_navigation_example plansys2_simple_example plansys2_simple_example_py |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.4 |
License | Apache License, Version 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/plansys2/ros2_planning_system_examples.git |
VCS Type | git |
VCS Version | rolling |
Last Updated | 2025-07-23 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Francisco Martin Rico
Authors
PlanSys2 Simple Example in Python
Description
This is a simple example that shows the basic operation of PlanSys2. A simple PDDL domain has been specified, and we will use the PlanSys2 Terminal to insert commands. Actions simulate their execution.
How to run
In terminal 1:
ros2 launch plansys2_simple_example_py plansys2_simple_example_launch.py
In terminal 2:
ros2 run plansys2_terminal plansys2_terminal # enters in PlanSys2 Terminal
set instance leia robot
set instance entrance room
set instance kitchen room
set instance bedroom room
set instance dinning room
set instance bathroom room
set instance chargingroom room
get problem instances # Checks instances
set predicate (connected entrance dinning)
set predicate (connected dinning entrance)
set predicate (connected dinning kitchen)
set predicate (connected kitchen dinning)
set predicate (connected dinning bedroom)
set predicate (connected bedroom dinning)
set predicate (connected bathroom bedroom)
set predicate (connected bedroom bathroom)
set predicate (connected chargingroom kitchen)
set predicate (connected kitchen chargingroom)
set predicate (charging_point_at chargingroom)
set predicate (battery_low leia)
set predicate (robot_at leia entrance)
get problem predicates # Checks predicates
set goal (and(robot_at leia bathroom)) # Sets the goal
get plan # Creates plan and shows it
run # Creates plan and runs it
Changelog for package plansys2_simple_example
0.0.4 (2020-01-09)
0.0.3 (2020-01-09)
0.0.2 (2020-01-08)
- Package description Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- First functional version complete Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Execute actions independently. Example Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Contributors: Francisco Martin Rico
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
python_cmake_module | |
plansys2_bringup | |
plansys2_terminal | |
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
rclcpp | |
plansys2_executor | |
plansys2_support_py |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
plansys2_examples |
Launch files
Messages
Services
Plugins
Recent questions tagged plansys2_simple_example_py at Robotics Stack Exchange
![]() |
plansys2_simple_example_py package from ros2_planning_system_examples repoplansys2_bt_example plansys2_cascade_example plansys2_examples plansys2_multidomain_example plansys2_patrol_navigation_example plansys2_simple_example plansys2_simple_example_py |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.4 |
License | Apache License, Version 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/plansys2/ros2_planning_system_examples.git |
VCS Type | git |
VCS Version | rolling |
Last Updated | 2025-07-23 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Francisco Martin Rico
Authors
PlanSys2 Simple Example in Python
Description
This is a simple example that shows the basic operation of PlanSys2. A simple PDDL domain has been specified, and we will use the PlanSys2 Terminal to insert commands. Actions simulate their execution.
How to run
In terminal 1:
ros2 launch plansys2_simple_example_py plansys2_simple_example_launch.py
In terminal 2:
ros2 run plansys2_terminal plansys2_terminal # enters in PlanSys2 Terminal
set instance leia robot
set instance entrance room
set instance kitchen room
set instance bedroom room
set instance dinning room
set instance bathroom room
set instance chargingroom room
get problem instances # Checks instances
set predicate (connected entrance dinning)
set predicate (connected dinning entrance)
set predicate (connected dinning kitchen)
set predicate (connected kitchen dinning)
set predicate (connected dinning bedroom)
set predicate (connected bedroom dinning)
set predicate (connected bathroom bedroom)
set predicate (connected bedroom bathroom)
set predicate (connected chargingroom kitchen)
set predicate (connected kitchen chargingroom)
set predicate (charging_point_at chargingroom)
set predicate (battery_low leia)
set predicate (robot_at leia entrance)
get problem predicates # Checks predicates
set goal (and(robot_at leia bathroom)) # Sets the goal
get plan # Creates plan and shows it
run # Creates plan and runs it
Changelog for package plansys2_simple_example
0.0.4 (2020-01-09)
0.0.3 (2020-01-09)
0.0.2 (2020-01-08)
- Package description Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- First functional version complete Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Execute actions independently. Example Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Contributors: Francisco Martin Rico
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
python_cmake_module | |
plansys2_bringup | |
plansys2_terminal | |
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
rclcpp | |
plansys2_executor | |
plansys2_support_py |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
plansys2_examples |
Launch files
Messages
Services
Plugins
Recent questions tagged plansys2_simple_example_py at Robotics Stack Exchange
![]() |
plansys2_simple_example_py package from ros2_planning_system_examples repoplansys2_bt_example plansys2_cascade_example plansys2_examples plansys2_multidomain_example plansys2_patrol_navigation_example plansys2_simple_example plansys2_simple_example_py |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.4 |
License | Apache License, Version 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/plansys2/ros2_planning_system_examples.git |
VCS Type | git |
VCS Version | rolling |
Last Updated | 2025-07-23 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Francisco Martin Rico
Authors
PlanSys2 Simple Example in Python
Description
This is a simple example that shows the basic operation of PlanSys2. A simple PDDL domain has been specified, and we will use the PlanSys2 Terminal to insert commands. Actions simulate their execution.
How to run
In terminal 1:
ros2 launch plansys2_simple_example_py plansys2_simple_example_launch.py
In terminal 2:
ros2 run plansys2_terminal plansys2_terminal # enters in PlanSys2 Terminal
set instance leia robot
set instance entrance room
set instance kitchen room
set instance bedroom room
set instance dinning room
set instance bathroom room
set instance chargingroom room
get problem instances # Checks instances
set predicate (connected entrance dinning)
set predicate (connected dinning entrance)
set predicate (connected dinning kitchen)
set predicate (connected kitchen dinning)
set predicate (connected dinning bedroom)
set predicate (connected bedroom dinning)
set predicate (connected bathroom bedroom)
set predicate (connected bedroom bathroom)
set predicate (connected chargingroom kitchen)
set predicate (connected kitchen chargingroom)
set predicate (charging_point_at chargingroom)
set predicate (battery_low leia)
set predicate (robot_at leia entrance)
get problem predicates # Checks predicates
set goal (and(robot_at leia bathroom)) # Sets the goal
get plan # Creates plan and shows it
run # Creates plan and runs it
Changelog for package plansys2_simple_example
0.0.4 (2020-01-09)
0.0.3 (2020-01-09)
0.0.2 (2020-01-08)
- Package description Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- First functional version complete Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Execute actions independently. Example Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Contributors: Francisco Martin Rico
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
python_cmake_module | |
plansys2_bringup | |
plansys2_terminal | |
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
rclcpp | |
plansys2_executor | |
plansys2_support_py |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
plansys2_examples |
Launch files
Messages
Services
Plugins
Recent questions tagged plansys2_simple_example_py at Robotics Stack Exchange
![]() |
plansys2_simple_example_py package from ros2_planning_system_examples repoplansys2_bt_example plansys2_cascade_example plansys2_examples plansys2_multidomain_example plansys2_patrol_navigation_example plansys2_simple_example plansys2_simple_example_py |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 0.0.4 |
License | Apache License, Version 2.0 |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Description | |
Checkout URI | https://github.com/plansys2/ros2_planning_system_examples.git |
VCS Type | git |
VCS Version | rolling |
Last Updated | 2025-07-23 |
Dev Status | UNKNOWN |
Released | UNRELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (-)
Good First Issues (-) Pull Requests to Review (-) |
Package Description
Additional Links
Maintainers
- Francisco Martin Rico
Authors
PlanSys2 Simple Example in Python
Description
This is a simple example that shows the basic operation of PlanSys2. A simple PDDL domain has been specified, and we will use the PlanSys2 Terminal to insert commands. Actions simulate their execution.
How to run
In terminal 1:
ros2 launch plansys2_simple_example_py plansys2_simple_example_launch.py
In terminal 2:
ros2 run plansys2_terminal plansys2_terminal # enters in PlanSys2 Terminal
set instance leia robot
set instance entrance room
set instance kitchen room
set instance bedroom room
set instance dinning room
set instance bathroom room
set instance chargingroom room
get problem instances # Checks instances
set predicate (connected entrance dinning)
set predicate (connected dinning entrance)
set predicate (connected dinning kitchen)
set predicate (connected kitchen dinning)
set predicate (connected dinning bedroom)
set predicate (connected bedroom dinning)
set predicate (connected bathroom bedroom)
set predicate (connected bedroom bathroom)
set predicate (connected chargingroom kitchen)
set predicate (connected kitchen chargingroom)
set predicate (charging_point_at chargingroom)
set predicate (battery_low leia)
set predicate (robot_at leia entrance)
get problem predicates # Checks predicates
set goal (and(robot_at leia bathroom)) # Sets the goal
get plan # Creates plan and shows it
run # Creates plan and runs it
Changelog for package plansys2_simple_example
0.0.4 (2020-01-09)
0.0.3 (2020-01-09)
0.0.2 (2020-01-08)
- Package description Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Setting CI Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- First functional version complete Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Execute actions independently. Example Signed-off-by: Francisco Martin Rico <<fmrico@gmail.com>>
- Contributors: Francisco Martin Rico
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
python_cmake_module | |
plansys2_bringup | |
plansys2_terminal | |
ament_copyright | |
ament_flake8 | |
ament_pep257 | |
rclpy | |
rclcpp | |
plansys2_executor | |
plansys2_support_py |
System Dependencies
Name |
---|
python3-pytest |
Dependant Packages
Name | Deps |
---|---|
plansys2_examples |