Skip to content
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

Allow canceling actions and plans #214

Merged
merged 2 commits into from
Jul 14, 2024
Merged

Allow canceling actions and plans #214

merged 2 commits into from
Jul 14, 2024

Conversation

sea-bass
Copy link
Owner

This PR allows canceling running actions and task plans, both with the Python API and ROS interface.

This is not supported from the GUI in this PR.

Closes #203

Copy link

Coverage

Coverage Report
FileStmtsMissCoverMissing
__init__.py00100% 
core
   __init__.py90100% 
   dynamics.py430100% 
   gazebo.py136894%55, 124, 230, 244–248
   hallway.py92891%192, 234–237, 261–263
   locations.py1252183%53, 55, 69, 84–85, 87, 98–99, 101–102, 119, 177, 192, 217, 227, 272, 283–284, 286–287, 311
   objects.py69494%78, 106, 137, 197
   robot.py3324885%234–235, 247–248, 251, 256, 285–287, 289–291, 294–295, 354–357, 415–416, 418–419, 436–437, 489–490, 568, 593, 610, 621–624, 637, 645, 651, 657, 663, 672, 711, 726, 729, 734, 747–751
   room.py48197%113
   world.py65015676%146–147, 183–184, 188, 241–242, 244–245, 273–274, 297–298, 327–328, 335–336, 360–361, 381–382, 430, 444–445, 447–448, 477–481, 483–485, 487–488, 491, 495–499, 502–504, 507–514, 545, 581–582, 585, 601, 631–632, 643, 646, 654, 670–674, 676–678, 681–682, 685–688, 690, 693, 695–697, 699–701, 703, 718, 725, 736–740, 775–776, 780–781, 799–800, 806–807, 809–810, 812, 814–815, 817, 819–820, 830–831, 834, 836, 850, 852, 859, 906, 937–938, 949, 960–962, 964–967, 969, 986–987, 991–992, 1027–1028, 1030, 1047–1048, 1079, 1093–1096, 1108–1111, 1125, 1136–1137, 1139, 1183–1184, 1236, 1316–1317, 1363
   yaml_utils.py1081189%64, 68, 153–155, 159–160, 180–181, 200–201
gui
   __init__.py20100% 
   main.py1983184%23–25, 46, 78–79, 197, 209–213, 220–223, 225, 228–234, 238, 243–244, 248–249, 260, 271
   world_canvas.py2445677%41–42, 44–48, 51, 59–60, 136–139, 146, 148, 205–207, 223, 259, 311, 320, 326, 333–334, 336, 338–340, 343–346, 348, 352–358, 361, 364–365, 380–382, 385, 402, 445, 466, 470, 492, 509, 523
manipulation
   __init__.py10100% 
   grasping.py2366174%102, 110–112, 114–122, 124, 132, 462, 464–466, 470–472, 566–568, 571–575, 583, 586–588, 593–594, 600–604, 607–614, 617–619, 628, 630, 632–638
navigation
   __init__.py30100% 
   a_star.py781087%67–72, 74–76, 165
   execution.py74494%70–71, 73–74
   occupancy_grid.py1391489%44–47, 49–53, 56, 192, 226, 234, 238
   path_planner.py26676%33, 36, 38, 42, 85, 90
   planner_base.py593147%29–35, 51, 57–59, 86, 98, 101, 105, 113–114, 117–119, 122–124, 127, 129, 140–145
   prm.py72297%61–62
   rrt.py1740100% 
   world_graph.py70395%118, 121, 145
planning
   __init__.py00100% 
   actions.py925540%102–103, 105, 109–118, 120–123, 125–129, 131–134, 136–140, 142–145, 147–154, 156–157, 159–161, 207–208, 211–215
planning/pddlstream
   __init__.py7185%13
   default_mappings.py90100% 
   planner.py40880%119–126
   primitives.py57296%68, 208
   utils.py85396%66, 99–100
utils
   __init__.py00100% 
   general.py33487%23, 45, 51–52
   knowledge.py1481490%110, 145–148, 155, 159–160, 173, 188, 192, 234, 250, 313
   motion.py65592%85–89
   polygon.py1110100% 
   pose.py890100% 
   search_graph.py93396%240–242
   trajectory.py670100% 
TOTAL388457085% 

Tests Skipped Failures Errors Time
192 0 💤 0 ❌ 0 🔥 3m 26s ⏱️

@sea-bass sea-bass merged commit 7044f38 into main Jul 14, 2024
7 checks passed
@sea-bass sea-bass deleted the action-plan-cancel branch July 14, 2024 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to abort actions and plans
1 participant