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

Support state snapshots with only named skeletons. #523

Merged
merged 6 commits into from
Jul 22, 2019

Conversation

brianhou
Copy link
Contributor

@brianhou brianhou commented Apr 29, 2019

When taking a snapshot of the world, we might only care about certain skeletons. For example, when constructing a dataset of possible robot environments, we wouldn't want to preserve the robot's state since that will change during planning.

Efficiency concerns: this implementation uses a lot of getSkeleton(name) calls, each of which I think is linear in the number of Skeletons in the world.


Before creating a pull request

  • Document new methods and classes
  • Format code with make format

Before merging a pull request

  • Set version target by selecting a milestone on the right side
  • Summarize this change in CHANGELOG.md
  • Add unit test(s) for this change

@brianhou brianhou requested review from sniyaz and aditya-vk April 29, 2019 23:17
gilwoolee
gilwoolee previously approved these changes May 14, 2019
Copy link
Contributor

@gilwoolee gilwoolee left a comment

Choose a reason for hiding this comment

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

LGTM. Regarding getSkeleton(name), shall we keep an unordered map and make this O(1)?

include/aikido/planner/World.hpp Outdated Show resolved Hide resolved
include/aikido/planner/World.hpp Outdated Show resolved Hide resolved
src/planner/World.cpp Outdated Show resolved Hide resolved
src/planner/World.cpp Outdated Show resolved Hide resolved
src/planner/World.cpp Outdated Show resolved Hide resolved
Co-Authored-By: gilwoolee <gilwoo301@gmail.com>
@brianhou brianhou merged commit 80e4605 into master Jul 22, 2019
@brianhou brianhou deleted the enhancement/brianhou/world-state-named-skeletons branch July 22, 2019 01:34
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.

3 participants