forked from unghee/Exoboot_Code
-
Notifications
You must be signed in to change notification settings - Fork 0
Thread and mailbox incorporation #59
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
Open
nundinir
wants to merge
27
commits into
refactor/flexsea-8
Choose a base branch
from
thread_and_mailbox_incorporation
base: refactor/flexsea-8
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
nundinir
commented
Jun 20, 2025
- Mailboxes added for easy inter-thread communication and new thread manager class created.
- Modified Nonsingleton logger to support csv logging for each thread.
- Fixed walking simulator, which now successfully operates at it's own frequency without being dependent on main loop
- Plotted assistance calculator output paired with walking simulator ~ currents and torques look reasonable and hit the set points. Any mid-stride peak torque adjustments will be executed in the next stride.
…nd type hints to file. Also changed Mail to a dataclass, added exceptions for edge cases, as well as console logger. Also added threading lock to prevent multiple threads from accessing the addressbook and a barrier to wait for all threads to start at the same time before sending messages. All of this is contained to the Postal_Service.py file
…ke it is sending, receiving messages appropriately.
… began a draft of threading_demo_updated.py to start a ThreadingManager class to initialize, start, stop and coordinate threads
…ogress on ThreadManager class in threading_demo_updated.py
…ng to the GSE and Actuator threads with numerous to-dos to complete
…d HS_time, etc. bugs need fixing in walking_simulator.
…ng with threading_demo. modified walking_sim to update according to internal frequency. needs verification in threading_demo
…g the quit event instead of clearing. verified using threading demo logs that walking sim works as expected!
… being updated mid-stride. also verified that assistance_calculator works with threading demo. commanded torque and current splines look good and hit setpoint
Member
Author
|
Things left to investigate before operation:
|
…pool and gse_bertec and gse_imu integrated for testing. other to-do's require addressing.
…ys want to have bertec streaming enabled. added flag to toggle walking simulator, just for easy switch into testing mode if bertec not available
…pulled from local -- will need to assess wth is going on
…perly regenerates a spline profile given new parameters. ensured that class is flexible to different timing params
…geReception class. needs testing
…from Actuator thread and appropriately plots them to the rtplot. tbd: centralized logging for logging nexus. may have to be careful about delays in queue communication between left vs right.
… across all classes (GSE_IMU, GSE_BERTEC). Re-added acceptance tresholding for new stride periods (more lenient 0.2 -> 1.0). Tested full on bertec with streaming with Assistance_Calculator.
…ed imu-based gait state estimation, but needed proper offset from TR characterization for right exo.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.