-
Notifications
You must be signed in to change notification settings - Fork 0
GSE.py initial commit. Not adding IMU_Estimator to GSE class, it shou… #44
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
base: refactor/flexsea-8
Are you sure you want to change the base?
Conversation
…ld be part of exoboot class and updated during the sensor reading portion (pre_iterate).
|
|
||
|
|
||
| class GSE: | ||
| def __init__(self, topics=["fz_left", "fz_right"], publisher_ip=VICON_IP, timeout_ms=5, stride_period_init=1.2, filter_size=10, hs_threshold = 80, to_threshold = 30): |
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.
Can you add docstrings to each of these methods?
| self.subscribers = {} | ||
| self.estimators = {} | ||
|
|
||
| for topic in self.topics: |
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.
Thoughts on making this flexible to the exo side that is active? If someone is walking with just the left exo, then we wouldn't need to subscribe to the right side.. But if we have to make the publisher side flexible to this, then its fine as is!
| from src.settings.constants import VICON_IP | ||
|
|
||
|
|
||
| class GSE: |
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.
Does this GSE class manage the BertecEstimator? Can you explain a little as to why this class necessary since most of the arguments are passed to the Bertec_estimator? It might be better to make this into a function that is responsible for setting up subscribers!
nundinir
left a comment
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.
Overall looks good! Biggest question is: how is this class different from the Bertec_Estimator?
…ld be part of exoboot class and updated during the sensor reading portion (pre_iterate).