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

Remove agent functor #74

Merged
merged 49 commits into from
Jan 10, 2025
Merged

Remove agent functor #74

merged 49 commits into from
Jan 10, 2025

Conversation

adscib
Copy link
Contributor

@adscib adscib commented Sep 21, 2024

This is an experimental PR removing the agent functor construct and any dictionaries indexed by agent type. Instead, agent types will be represented as a list, with a tensor indicating which agent belongs to which type. For now, I only made the minimal changes required, leaving all the boiler plate in place. If we end up switching to this design, a lot of that code can be cleaned up.

This is obviously a breaking change, so I welcome any discussion of it. My sense is that splitting agent types like this was a design mistake borne out of anticipating much more flexibility regarding how we treat the different agent types. In all the existing use cases, it is both slow and clunky, and I don't see any real benefit to it.

The only reason to have this feature is in order to apply different kinematic models to different agent types, but I think we can accomplish this just as well with the anticipated CompoundKinematicModel class.

@adscib adscib marked this pull request as draft September 21, 2024 00:57
@adscib adscib marked this pull request as ready for review October 22, 2024 23:34
Copy link
Member

@lioutasb lioutasb left a comment

Choose a reason for hiding this comment

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

Looks good as far as I can tell. I tested a few things and they all returned the expected behavior.

@lioutasb lioutasb merged commit 2c9d8c3 into master Jan 10, 2025
4 checks passed
@lioutasb lioutasb deleted the remove-agent-functor branch January 10, 2025 20:43
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