-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add IO states to state representation (cpp) #158
Conversation
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.
Looks pretty good! A lot of boilerplate indeed and plenty of functions that might be a bit redundant, but it does fit in very nicely with other state types.
Just a shame that you mixed up the names analog and digital, but nothing some smart renaming won't fix!
source/state_representation/include/state_representation/IOState.hpp
Outdated
Show resolved
Hide resolved
source/state_representation/include/state_representation/AnalogIOState.hpp
Outdated
Show resolved
Hide resolved
source/state_representation/include/state_representation/StateType.hpp
Outdated
Show resolved
Hide resolved
Hahaha that is because I really thought analog is 1/0 and digital anything😁 well..... |
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.
Just a few nitpicks, and needs to be rebased with newer version, but I think this will be good to go!
source/state_representation/include/state_representation/StateType.hpp
Outdated
Show resolved
Hide resolved
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.
Very cool
Description
This turns out to be quite the PR, but its honestly a lot of boilderplate code and docstrings. The implementation of the classes follow our common patterns and don't add much complexity or new features. Same for the tests, it's the same lines as in the other state classes, to test all setters and getters.
Protocol and pybindings come in follow up PRs
Review guidelines
Estimated Time of Review: 15 minutes
Checklist before merging: