Skip to content

Add symbolic context #10

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 5 commits into from
Jul 15, 2025
Merged

Add symbolic context #10

merged 5 commits into from
Jul 15, 2025

Conversation

GoldenZephyr
Copy link
Collaborator

Add the ability to attach a symbolic context wrapper to the planning pipeline. This involved an extremely long detour through defining semantics for the composition and swapping of wrapper metadata, and a refactoring of compile_plan.

It's a pretty cool system, although perhaps hard to debug, and probably pretty hard to understand the inner workings...

Add the ability to attach a symbolic context wrapper to the
planning pipeline. This involved an extremely long detour
through defining semantics for the composition and swapping
of wrapper metadata, and a refactoring of compile_plan.

It's a pretty cool system, although perhaps hard to debug,
and probably pretty hard to understand the inner workings...
@GoldenZephyr GoldenZephyr requested a review from y-veys June 28, 2025 01:23
@GoldenZephyr
Copy link
Collaborator Author

@y-veys This should add the ability to set the semantic class of the object to be grabbed properly.

return self.dsg.find_node(ns) is not None


def collect_plans(plans) -> dict:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: delete this (we use the one in compile_plans.py

@singledispatch
def compile_plan(plan, plan_id, robot_name, frame_id):
raise NotImplementedError(f"No `compile_plan` implementation for {type(plan)}")
# TODO: probably want sort of "identity" fallback for compile_plan, so that we
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete

@@ -103,10 +103,13 @@ def cost_change(n1, n2, n3, n4):
for j in range(i + 1, len(route)):
if j - i == 1:
continue
if cost_change(best[i - 1], best[i], best[j - 1], best[j]) < 0:
delta = cost_change(best[i - 1], best[i], best[j - 1], best[j])
logger.warning(f"Delta: {delta}")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove



@dispatchable_parametric
# class SymbolicContext[T](FunctorTrait):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment

@GoldenZephyr GoldenZephyr merged commit 8d17f5b into main Jul 15, 2025
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.

1 participant