-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
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...
@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: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete
omniplanner/src/omniplanner/tsp.py
Outdated
@@ -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}") |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment
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...