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

7.0.1 Release #1105

Open
wants to merge 458 commits into
base: prod
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
458 commits
Select commit Hold shift + click to select a range
0048d22
Improved state managing
BrandonPacewic Aug 6, 2024
9f2af71
Handle dependencies + update setup logger
BrandonPacewic Aug 6, 2024
b65ff0a
fix port NaN bug
azaleacolburn Aug 6, 2024
2ff0845
Final cleanups and handle transition tags
BrandonPacewic Aug 6, 2024
dd3597b
Completely functional panel
LucaHaverty Aug 6, 2024
1dd178c
More verbose isort messages
BrandonPacewic Aug 6, 2024
df28bf6
Merge branch 'jwrigh/1766/sim-io' of https://github.com/Autodesk/synt…
azaleacolburn Aug 6, 2024
fd4ab63
fixes from merge conflict
azaleacolburn Aug 6, 2024
c194b8e
Versions work differently?
BrandonPacewic Aug 6, 2024
191c8cf
Shorten formatter line lengths
BrandonPacewic Aug 6, 2024
68d06e8
Track autogenerated proto files
BrandonPacewic Aug 6, 2024
57ca208
Typo correction
BrandonPacewic Aug 6, 2024
1ed0fd2
Fixed
a-crowell Aug 6, 2024
6deab17
Formatting
a-crowell Aug 6, 2024
e86f4f2
Input config rework, cleanup, and comments
LucaHaverty Aug 6, 2024
4efd105
Fixed scrollbar
LucaHaverty Aug 6, 2024
737e92d
change java sample test
azaleacolburn Aug 6, 2024
510bf5f
verify canencoder sim
azaleacolburn Aug 7, 2024
14868c7
Format
a-crowell Aug 7, 2024
c12f5e2
Playwright update
a-crowell Aug 7, 2024
83ed35c
Delete, create, and modify input schemes in a way that is easy and in…
LucaHaverty Aug 7, 2024
d8cf880
APS Management Modal (#1060)
HunterBarclay Aug 7, 2024
557475c
Velocity max and dividers
a-crowell Aug 7, 2024
3cfed80
Format
a-crowell Aug 7, 2024
d53a2f8
sparkmax absolute encoder support
azaleacolburn Aug 7, 2024
44f2860
Close config panel when you choose to spawn a new robot or field
LucaHaverty Aug 7, 2024
040b65a
Merge branch 'dev' into haverty/1783/combined-configuration
LucaHaverty Aug 7, 2024
7fcf795
test proper codesim autos w/encoder
azaleacolburn Aug 8, 2024
b787cd4
disable CANMotor inputs
azaleacolburn Aug 8, 2024
b54cec9
fix build
azaleacolburn Aug 8, 2024
9c84785
Optional realistic gravity/force config
a-crowell Aug 8, 2024
2c10474
Added Hunters jolt submodule
BrandonPacewic Aug 8, 2024
59f2bda
Rename jolt submodule
BrandonPacewic Aug 8, 2024
744c15f
add cansparkmax following support
azaleacolburn Aug 8, 2024
1fdb767
Increased number of cascades
Dhruv-0-Arora Aug 8, 2024
7e9d8ff
Removed commented code
Dhruv-0-Arora Aug 8, 2024
937a62e
Merge remote-tracking branch 'origin/dev' into dhruv/1787/import-file…
Dhruv-0-Arora Aug 8, 2024
e2fcd38
ran formatter
azaleacolburn Aug 8, 2024
715411b
Version detection for protobuf fix
BrandonPacewic Aug 8, 2024
db138f9
Added `BaseException` catch for google `VersionError`
BrandonPacewic Aug 9, 2024
9c3de89
Ensure browser cache key
BrandonPacewic Aug 9, 2024
bba71ac
Mirabuf Caching OPFS Back Up (#1082)
HunterBarclay Aug 9, 2024
62e088c
Exporter Formatting Fix (#1081)
HunterBarclay Aug 9, 2024
3f06b09
Add `Barclay/JoltPhysics.js` submodule (#1086)
HunterBarclay Aug 9, 2024
658800a
Merge `dev`
BrandonPacewic Aug 9, 2024
4514f7e
Import formatting fixes
BrandonPacewic Aug 9, 2024
cd60dcb
Arm fix
a-crowell Aug 9, 2024
ff07568
merge fixes
LucaHaverty Aug 9, 2024
edddfa2
`fission` Unit Test Fix (#1087)
HunterBarclay Aug 9, 2024
2c147a4
Fixed scrollbar (#1083)
HunterBarclay Aug 9, 2024
5d4e5e4
Convert to Absolute Imports `[AARD-1737]` (#1013)
HunterBarclay Aug 9, 2024
b31793f
Merge conflict
a-crowell Aug 9, 2024
1a171c5
Combined Configuration (#1068)
HunterBarclay Aug 9, 2024
51cced9
Merge branch 'dev' into dhruv/1787/import-file-move (also moved the b…
LucaHaverty Aug 9, 2024
645ee2b
Forgot to add the button change :(
LucaHaverty Aug 9, 2024
b7e17fb
Tweaked colors and dynamic scaling ui components
LucaHaverty Aug 9, 2024
4d95ee7
Panel cleanup and more color tweaks
LucaHaverty Aug 9, 2024
93db502
Merge `dev`
BrandonPacewic Aug 9, 2024
d22ef1b
Merge branch 'dev' into haverty/ui-continuity
LucaHaverty Aug 9, 2024
fe1a8a7
Remove unused import
BrandonPacewic Aug 9, 2024
63864f5
Remove import path for `proto.proto_out`
BrandonPacewic Aug 9, 2024
2a75af3
Merge branch 'dev' of https://github.com/Autodesk/synthesis into colb…
azaleacolburn Aug 12, 2024
3a20e92
Moving Import Local Mirabuf (#1071)
HunterBarclay Aug 12, 2024
79cc8c1
Tooltips and renaming to be less technical
LucaHaverty Aug 12, 2024
dbaca75
Added a "It works on my machine fix"
BrandonPacewic Aug 12, 2024
faae787
Update `README.md` + formatting fix
BrandonPacewic Aug 12, 2024
9790a54
initial revisions to readme
azaleacolburn Aug 12, 2024
856db4b
Merge branch 'dev' of https://github.com/Autodesk/synthesis into colb…
azaleacolburn Aug 12, 2024
df15877
talonfx encoder support
azaleacolburn Aug 12, 2024
ddca513
Merge branch 'colbura/1747/can-motor-support' of https://github.com/A…
azaleacolburn Aug 12, 2024
3e6de62
Added init command and updated fission readme to include more details
HunterBarclay Aug 12, 2024
ad36d18
Merge branch 'dev' into haverty/ui-continuity and small fixes
LucaHaverty Aug 12, 2024
cfbb472
Removed warnings for format fix commands
HunterBarclay Aug 12, 2024
f032738
(Driver/Behavior merge conflicts) Merge remote-tracking branch 'origi…
a-crowell Aug 12, 2024
9de49d7
Merge remote-tracking branch 'origin/dev' into dhruv/1694/shadow-casc…
Dhruv-0-Arora Aug 12, 2024
d6af695
Added a description of the input system
LucaHaverty Aug 12, 2024
a89a0fa
wrote exception to API swap in readme
azaleacolburn Aug 13, 2024
1df1fc1
Added lots of typing
BrandonPacewic Aug 13, 2024
caee8eb
Forgot to stage this one
a-crowell Aug 13, 2024
b991c2b
Formatting
a-crowell Aug 13, 2024
7014c80
Update fission/src/systems/simulation/wpilib_brain/SimInput.ts
azaleacolburn Aug 13, 2024
ba5b871
cleaned up wpilib brain
azaleacolburn Aug 13, 2024
8643db1
Merge branch 'colbura/1747/can-motor-support' of https://github.com/A…
azaleacolburn Aug 13, 2024
0c595e1
elaborated on output averaging solution
azaleacolburn Aug 13, 2024
f2c6bce
removed vite single file comment
azaleacolburn Aug 13, 2024
6ffc408
Reprompt if folder is detected as readonly
BrandonPacewic Aug 13, 2024
3557819
Input scheme bug, zoom bug, and 'debug panel' -> 'debug tools'
LucaHaverty Aug 13, 2024
38647d1
Remove redundant options
BrandonPacewic Aug 13, 2024
1138854
Consistent `fstring` over `str`
BrandonPacewic Aug 13, 2024
770220d
Cascading Shadows (#1036)
HunterBarclay Aug 13, 2024
ec6b452
Merge branch 'dev' into branp/1742/exporter-packaging
BrandonPacewic Aug 13, 2024
309c287
Track Compiled Proto Files (#1088)
HunterBarclay Aug 13, 2024
4c734c4
type wsdata
azaleacolburn Aug 13, 2024
0bfcfcc
ran formatter
azaleacolburn Aug 13, 2024
9899b6a
fix types for build
azaleacolburn Aug 13, 2024
463bfd3
removed old logs
azaleacolburn Aug 13, 2024
4617fbe
remove log in sample code
azaleacolburn Aug 13, 2024
e6a76ad
New open hud button, open spawn asset on start, and other suggestions
LucaHaverty Aug 13, 2024
f73a9f5
Merge `dev`
BrandonPacewic Aug 13, 2024
d97e68b
Panel fix
LucaHaverty Aug 13, 2024
1ec7e8a
Track proto typing files
BrandonPacewic Aug 13, 2024
51ac241
Added workflow
BrandonPacewic Aug 13, 2024
3b80456
basic method docs
azaleacolburn Aug 13, 2024
8f50dd3
Bump python version
BrandonPacewic Aug 13, 2024
04a4de5
Convert to cpython workflow
BrandonPacewic Aug 13, 2024
2d8671d
Refactor workflow
BrandonPacewic Aug 13, 2024
c3552c0
See if I can get anything to work
BrandonPacewic Aug 13, 2024
58bad48
Workflow directory fix
BrandonPacewic Aug 13, 2024
540be80
Force run `mypy` in the current directory
BrandonPacewic Aug 13, 2024
80ae6db
Added working directory
BrandonPacewic Aug 13, 2024
46830c8
Install types
BrandonPacewic Aug 13, 2024
ac0790e
Add `-r` flag to pip install step
BrandonPacewic Aug 13, 2024
4008855
Specifically install `mypy` requirements
BrandonPacewic Aug 13, 2024
a865603
Let `mypy` install its own types
BrandonPacewic Aug 13, 2024
812f9a0
Install correct typing module
BrandonPacewic Aug 13, 2024
d4af9be
Break `mypy` workflow
BrandonPacewic Aug 13, 2024
0c698db
Fix `mypy` workflow error
BrandonPacewic Aug 13, 2024
ebc3cd6
Default working directory
BrandonPacewic Aug 13, 2024
f075f43
Cleanup typing + fix attr error throwing during export
BrandonPacewic Aug 13, 2024
f49f91a
Input system tests
LucaHaverty Aug 13, 2024
98f0347
Cleaned up fixable transition tag
BrandonPacewic Aug 13, 2024
a208903
Handled ignore typing section
BrandonPacewic Aug 14, 2024
1f1a294
Explicit handling of event changed to account for new organization
BrandonPacewic Aug 14, 2024
b23a1e9
Remove un-needed typing
BrandonPacewic Aug 14, 2024
e52f3c8
Remove left over `import`
BrandonPacewic Aug 14, 2024
3668e2a
Remove `Any` type
BrandonPacewic Aug 14, 2024
1879332
New open hud icon and small ui fixes
LucaHaverty Aug 14, 2024
7cd781f
main hud button fix and lighter dividers
LucaHaverty Aug 14, 2024
a3daee6
removed vendordeps from git ignore
azaleacolburn Aug 14, 2024
9627c8a
Formatting?
a-crowell Aug 14, 2024
e4997bc
Formatting? pt. 2
a-crowell Aug 14, 2024
3f4ba0b
Formatting :/ pt. 3
a-crowell Aug 14, 2024
eea49af
Formatting -.- pt. 4
a-crowell Aug 14, 2024
48c23f0
Formatting :D pt. 5
a-crowell Aug 14, 2024
84039e0
Formatting? pt. 6
a-crowell Aug 14, 2024
ef86b55
Formatting... pt. 7
a-crowell Aug 14, 2024
6360df0
Formatting :D pt. 8
a-crowell Aug 14, 2024
a14ab94
Formatting ._. pt. 9
a-crowell Aug 14, 2024
f5f0d92
Moved Mac install location into `ApplicationPlugins`
BrandonPacewic Aug 15, 2024
1e766a5
Merge `dev`
BrandonPacewic Aug 15, 2024
b801c9b
Resolve merge conflicts
BrandonPacewic Aug 15, 2024
6d3dfed
Added a step to make the application plugins folder if it does not al…
BrandonPacewic Aug 15, 2024
44a2b13
Remove stats in top-left corner when built.
HunterBarclay Aug 15, 2024
fcac0cb
Input system, prefs system, select menu, and button unit tests
LucaHaverty Aug 15, 2024
2044493
Update deposit location and request admin
BrandonPacewic Aug 15, 2024
ad02a35
Update resolve path for Win
BrandonPacewic Aug 15, 2024
96e0677
Motors in Drivers (#1078)
HunterBarclay Aug 15, 2024
bb5d03d
Linter fix
LucaHaverty Aug 15, 2024
907f527
Restructure installer to avoid duplicate files
BrandonPacewic Aug 15, 2024
02caf05
A working windows installer, never thought I would see the day
BrandonPacewic Aug 15, 2024
783469d
Fix a tmp directory source problem
BrandonPacewic Aug 15, 2024
c94efa5
Replace old version with new one
BrandonPacewic Aug 15, 2024
c02f491
Config panel flow & text is not longer highlightable
LucaHaverty Aug 15, 2024
b158799
Bye bye ugly green blobs (intake zones)
LucaHaverty Aug 15, 2024
d546c97
Choose scheme panel spacing issue
LucaHaverty Aug 15, 2024
a2ed9bd
Integrated subsystem config into the global config panel
LucaHaverty Aug 15, 2024
371951d
Windows fixups and tests
BrandonPacewic Aug 15, 2024
a29084f
Windows fixes
BrandonPacewic Aug 15, 2024
9c777d6
fix encoder issue maybe
azaleacolburn Aug 15, 2024
c40a5e4
Windows fixes
BrandonPacewic Aug 15, 2024
f5f79e0
Update installer directory
BrandonPacewic Aug 15, 2024
f31daeb
Add request admin back
BrandonPacewic Aug 15, 2024
aa89027
Windows qol
BrandonPacewic Aug 15, 2024
c77cd5a
Track pip requirements
BrandonPacewic Aug 15, 2024
60e7297
Pretty sure this is a pip bug
BrandonPacewic Aug 16, 2024
85124e8
Working subsystem config through the global panel
LucaHaverty Aug 16, 2024
25a44bb
Merge branch 'dev' into colbura/1747/can-motor-support
azaleacolburn Aug 17, 2024
37b65dd
fix and cleanup code sim
azaleacolburn Aug 17, 2024
3d0e24f
Formatted
HunterBarclay Aug 17, 2024
a17f4f6
CAN Support (#1050)
HunterBarclay Aug 17, 2024
de1faa8
Merge branch 'dev' into haverty/ui-continuity
LucaHaverty Aug 19, 2024
9c4b5a2
Merge branch 'dev' into haverty/ui-continuity (again...)
LucaHaverty Aug 19, 2024
ed2a1df
Update exporter readmes for installer
BrandonPacewic Aug 19, 2024
4d28c31
Fixed
a-crowell Aug 19, 2024
7cfae20
full subsystem config integration with the main config menu
LucaHaverty Aug 19, 2024
1a3d6fe
Actual fix and formatting
a-crowell Aug 19, 2024
1ab3a28
Refactor `setupLogger()`
BrandonPacewic Aug 19, 2024
5da363f
Adding changes to the MainHUD button
Dhruv-0-Arora Aug 19, 2024
ab6788b
Tooltips!!!
LucaHaverty Aug 19, 2024
4a6fda7
merge dev
LucaHaverty Aug 19, 2024
a3f7843
Changing the aspect ratio of the MainHUD button
Dhruv-0-Arora Aug 19, 2024
38bc629
add catch for no robot being avaliable
azaleacolburn Aug 20, 2024
66fcf3b
Remove old import
azaleacolburn Aug 20, 2024
623f23e
Why is the API like this?
BrandonPacewic Aug 20, 2024
fd08bf4
small fixes
PepperLola Aug 20, 2024
f460d80
Lots of documentation
LucaHaverty Aug 20, 2024
5bd353f
UI Continuity (#1089)
LucaHaverty Aug 20, 2024
b5ab855
Merge branch 'dev' into haverty/unit-tests
LucaHaverty Aug 20, 2024
a2f5936
Merge conflict fix
LucaHaverty Aug 20, 2024
678f2b9
setting scaling fix
LucaHaverty Aug 20, 2024
55188fc
Synthesis Exporter now tracks Fusion's unit system
BrandonPacewic Aug 20, 2024
1992a75
Update conversion function typing
BrandonPacewic Aug 20, 2024
d8ef11d
Fix variable name typo
BrandonPacewic Aug 20, 2024
60f6fdb
Generation fix
a-crowell Aug 20, 2024
8da8958
Better generationing and removing
a-crowell Aug 20, 2024
f0a9710
Added open Synthesis on export option
BrandonPacewic Aug 20, 2024
82ba010
Remove mass icons
BrandonPacewic Aug 20, 2024
2c557d6
gyro angle support, rate and robot-side outputs TODO
PepperLola Aug 21, 2024
455ff03
Update simulation/SyntheSimJava/src/main/java/com/autodesk/synthesis/…
azaleacolburn Aug 21, 2024
713d5f0
Update simulation/SyntheSimJava/src/main/java/com/autodesk/synthesis/…
azaleacolburn Aug 21, 2024
9510b56
File Save Permission Detection `[AARD-1724]` (#1092)
HunterBarclay Aug 21, 2024
1473f05
Exporter Packaging and Installer `[AARD-1742]` (#1073)
HunterBarclay Aug 21, 2024
fa453d7
Fission `README.md` and `package.json` updates (#1090)
HunterBarclay Aug 21, 2024
cfb58e0
Merge `dev`
BrandonPacewic Aug 21, 2024
4bfd336
Merge `dev`
BrandonPacewic Aug 21, 2024
0b436bd
javadoc support in most places i think
azaleacolburn Aug 21, 2024
65d0cb2
javadocs for custom encoder class
azaleacolburn Aug 21, 2024
ca0f6d0
Exporter Typing with `mypy` `[AARD-1765]` (#1093)
HunterBarclay Aug 21, 2024
edf956c
Update simulation/SyntheSimJava/src/main/java/com/autodesk/synthesis/…
azaleacolburn Aug 21, 2024
ae6e78f
Merge `dev`
BrandonPacewic Aug 21, 2024
9869129
Merge `dev`
BrandonPacewic Aug 21, 2024
0b58449
Organized subsystem config differently
LucaHaverty Aug 21, 2024
556c70f
Merge branch 'dev' into haverty/1849/advanced-motor-config
LucaHaverty Aug 21, 2024
bb3f34b
reverted accidental sim changes
LucaHaverty Aug 21, 2024
a07d65c
Remove comment ¯\_(ツ)_/¯
BrandonPacewic Aug 21, 2024
21f318d
Reverted change to settings modal
LucaHaverty Aug 21, 2024
b813e13
Unit Tests & Documentation (#1095)
BrandonPacewic Aug 21, 2024
8ce978d
gyro rate works
PepperLola Aug 21, 2024
bbaf73b
Settings modal scaling hotfix (#1100)
BrandonPacewic Aug 21, 2024
14790b0
canOPFS check
a-crowell Aug 21, 2024
1e72d60
Catch When No Design is Selected (#1099)
BrandonPacewic Aug 21, 2024
c1a0ddf
Debug lines
a-crowell Aug 21, 2024
26bb860
Fixed all issues
Dhruv-0-Arora Aug 21, 2024
aa95dcd
Removed console logs
Dhruv-0-Arora Aug 21, 2024
72af992
accelerometer data is sent but don't know how to get acceleration fro…
PepperLola Aug 21, 2024
7c0e4aa
Merge branch 'dev' into haverty/1849/advanced-motor-config
BrandonPacewic Aug 21, 2024
0991fd5
Move subsystem config to the combined configuration panel (#1097)
BrandonPacewic Aug 21, 2024
1da19af
Importing Cached From Map Hotfix (#1098)
BrandonPacewic Aug 21, 2024
d5e57d4
standardized javadoc format a bit
PepperLola Aug 22, 2024
a6e0219
Utilize Fusion's Unit Manager `[AARD-1773]` (#1101)
BrandonPacewic Aug 22, 2024
2c60a41
Merge branch 'dev' into colbura/1845/sythesim-docs
BrandonPacewic Aug 22, 2024
3b002ce
Small modal spacing tweaks and control scheme deletion fix
LucaHaverty Aug 22, 2024
06988d3
Merge branch 'dev' of github.com:Autodesk/synthesis into jwrigh/1766/…
PepperLola Aug 22, 2024
4382dfd
SyntheSimJava Documentation (#1094)
HunterBarclay Aug 22, 2024
9f9948d
hopefully fission-side DIO/AIO is done
PepperLola Aug 23, 2024
0887cb8
settings modal fix
LucaHaverty Aug 23, 2024
a1b9e7a
Final UI Tweaks (#1106)
HunterBarclay Aug 24, 2024
43f9225
Open Synthesis Upon Export `[AARD-1772]` (#1102)
HunterBarclay Aug 24, 2024
88c551b
digital and analog inputs work but can't be configured
PepperLola Aug 26, 2024
e6d3522
ran formatter and fixed lint errors
PepperLola Aug 26, 2024
18cd843
ran formatter, added string as possible ws type
PepperLola Aug 27, 2024
4b0519e
manually calculate acceleration
PepperLola Aug 29, 2024
7e8b646
ran formatter
PepperLola Aug 29, 2024
e008481
[BUG] Vite Server Crashing Chrome (#1108)
HunterBarclay Sep 5, 2024
160df44
[AARD-1863] Upgrade Vite to >=5.2.14, add missing dependencies. (#1109)
HunterBarclay Sep 25, 2024
394cdea
fix: Change ports for TalonFX in Java Sample.
HunterBarclay Sep 30, 2024
5347554
fix: Accelerometers metrics are relative, matching real devices.
HunterBarclay Sep 30, 2024
cbc9033
chore: Format and cleanup
HunterBarclay Oct 11, 2024
267ee59
fix: Use custom random generation
HunterBarclay Oct 11, 2024
e149858
[AARD-1766] More Simulation Support Pt.2 (#1103)
HunterBarclay Oct 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
* text=auto

# Workaround for a bug in GitHub's language detection,
# previously half of our code was being counted as JavaScript.. for some reason...
# and we certainly can't have that. - Brandon
*.js linguist-detectable=false
2 changes: 1 addition & 1 deletion .github/workflows/FissionUnitTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
with:
path: |
~/.cache/ms-playwright/
key: ${{ runner.os }}-assets-playwright-${{ env.PLAYWRIGHT_VERSION }}
key: ${{ runner.os }}-assets-playwright-${{ env.PLAYWRIGHT_VERSION }}-v2

- name: Install Dependencies
run: |
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/FusionTyping.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Fusion - mypy Typing Validation

on:
workflow_dispatch: {}
push:
branches: [ prod, dev ]
pull_request:
branches: [ prod, dev ]

jobs:
mypy:
name: Run mypy
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./exporter/SynthesisFusionAddin
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install -r requirements-mypy.txt
- run: mypy
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.vs/
.vscode/
/build/
build/
dist/
*.log
.DS_Store
*.pkg
*.exe
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "mirabuf"]
path = mirabuf
url = https://github.com/HiceS/mirabuf.git
[submodule "jolt"]
path = jolt
url = https://github.com/HunterBarclay/JoltPhysics.js.git
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ If you're a developer who wants to contribute to Synthesis, you're in the right

- [Fission (Core Web App)](/fission/README.md)
- [Fusion Exporter (Fusion exporter to Mirabuf file format)](/exporter/SynthesisFusionAddin/README.md)
- [Installers](/installer/)
- [Fusion Exporter Installer](/installer/)

Follow the above links to the respective READMEs on how to build and run each component.

### Compatibility Notes

As Fusion is not supported on linux, the linux installer does not come with the Fusion Addin for exporting robots and fields.
As Fusion is not officially supported on Linux, we do not provide an installer for the Fusion Exporter on Linux.

## Contributing

Expand All @@ -60,6 +60,10 @@ All code is under a configured formatting utility. See each component for more d

Mirabuf is a file format we use to store physical data from Fusion to load into the Synthesis simulator (Fission). This is a separate project that is a submodule of Synthesis. [See Mirabuf](https://github.com/HiceS/mirabuf/)

### Jolt Physics

Jolt is the core physics engine for our web biased simulator. [See JoltPhysics.js](https://github.com/HunterBarclay/JoltPhysics.js) for more information.

### Tutorials

Our source code for the tutorials featured on our [Tutorials Page](https://synthesis.autodesk.com/tutorials.html).
Expand Down
17 changes: 8 additions & 9 deletions exporter/SynthesisFusionAddin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ We use `VSCode` Primarily, download it to interact with our code or use your own

### How to Build + Run

1. See root [`README`](/README.md) on how to run `init` script
2. Open `Autodesk Fusion`
3. Select `UTILITIES` from the top bar
4. Click `ADD-INS` Button
5. Click `Add-Ins` tab at the top of Scripts and Add-Ins dialog
6. Press + Button under **My Add-Ins**
7. Navigate to the containing folder for this Addin and click open at bottom - _clone-directory_/synthesis/exporters/SynthesisFusionAddin
8. Synthesis should be an option - select it and click run at the bottom of the dialog
9. There should now be a button that says Synthesis in your utilities menu
1. Open `Autodesk Fusion`
2. Select `UTILITIES` from the top bar
3. Click `ADD-INS` Button
4. Click `Add-Ins` tab at the top of Scripts and Add-Ins dialog
5. Press + Button under **My Add-Ins**
6. Navigate to the containing folder for this Addin and click open at bottom - _clone-directory_/synthesis/exporters/SynthesisFusionAddin
7. Synthesis should be an option - select it and click run at the bottom of the dialog
8. There should now be a button that says Synthesis in your utilities menu
- If there is no button there may be a problem - see below for [checking log file](#debug-non-start)

---
Expand Down
2 changes: 1 addition & 1 deletion exporter/SynthesisFusionAddin/Synthesis.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": {
"": "Synthesis Exporter"
},
"version": "1.0.0",
"version": "2.0.0",
"runOnStartup": true,
"supportedOS": "windows|mac",
"editEnabled": true
Expand Down
85 changes: 46 additions & 39 deletions exporter/SynthesisFusionAddin/Synthesis.py
Original file line number Diff line number Diff line change
@@ -1,38 +1,55 @@
# DO NOT CHANGE ORDER, OR ADD IMPORTS BEFORE UNTIL END COMMENT

import os
from shutil import rmtree
import sys
from typing import Any

import adsk.core

from .src.general_imports import APP_NAME, DESCRIPTION, INTERNAL_ID, gm
from .src.Logging import getLogger, logFailure, setupLogger
from .src.UI import (
# Required for absolute imports.
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

from src.Dependencies import resolveDependencies
from src.Logging import logFailure, setupLogger

logger = setupLogger()

try:
# Attempt to import required pip dependencies to verify their installation.
import requests

from src.Proto import (
assembly_pb2,
joint_pb2,
material_pb2,
motor_pb2,
signal_pb2,
types_pb2,
)
except (ImportError, ModuleNotFoundError, BaseException) as error: # BaseException required to catch proto.VersionError
logger.warn(f"Running resolve dependencies with error of:\n{error}")
result = resolveDependencies()
if result:
adsk.core.Application.get().userInterface.messageBox("Installed required dependencies.\nPlease restart Fusion.")


from src import APP_NAME, DESCRIPTION, INTERNAL_ID, gm
from src.UI import (
HUI,
Camera,
ConfigCommand,
Handlers,
Helper,
MarkingMenu,
ShowAPSAuthCommand,
ShowWebsiteCommand,
)
from .src.UI.Toolbar import Toolbar

# END OF RESTRICTION

# Transition: AARD-1721
# Should attempt to fix this ordering scheme within AARD-1741
from .src.APS import APS # isort:skip
from src.UI.Toolbar import Toolbar


@logFailure
def run(_):
def run(_context: dict[str, Any]) -> None:
"""## Entry point to application from Fusion.

Arguments:
**context** *context* -- Fusion context to derive app and UI.
"""
setupLogger()

# Remove all items prior to start just to make sure
unregister_all()
Expand All @@ -47,7 +64,7 @@ def run(_):


@logFailure
def stop(_):
def stop(_context: dict[str, Any]) -> None:
"""## Fusion exit point - deconstructs buttons and handlers

Arguments:
Expand All @@ -62,28 +79,8 @@ def stop(_):

# nm.deleteMe()

logger = getLogger(INTERNAL_ID)
logger.cleanupHandlers()

for file in gm.files:
try:
os.remove(file)
except OSError:
pass

# removes path so that proto files don't get confused

import sys

path = os.path.abspath(os.path.dirname(__file__))

path_proto_files = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "proto", "proto_out"))

if path in sys.path:
sys.path.remove(path)

if path_proto_files in sys.path:
sys.path.remove(path_proto_files)
gm.clear()


@logFailure
Expand Down Expand Up @@ -129,3 +126,13 @@ def register_ui() -> None:
)

gm.elements.append(apsButton)

websiteButton = HUI.HButton(
"Synthesis Website",
work_panel,
lambda *_: True,
ShowWebsiteCommand.ShowWebsiteCommandCreatedHandler,
description=f"Website Test",
command=True,
)
gm.elements.append(websiteButton)
14 changes: 14 additions & 0 deletions exporter/SynthesisFusionAddin/mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[mypy]
files = Synthesis.py, src
warn_unused_configs = True
check_untyped_defs = True
warn_unreachable = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_no_return = True
warn_return_any = True
strict = True
ignore_missing_imports = True
follow_imports = skip
disallow_subclassing_any = False
disable_error_code = no-untyped-call
2 changes: 1 addition & 1 deletion exporter/SynthesisFusionAddin/proto/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
md .\proto_out\
@RD /S /Q "./proto_out/__pycache__"
@echo on
protoc -I=../../../mirabuf --python_out=./proto_out ../../../mirabuf/*.proto
protoc -I=../../../mirabuf --python_out=./proto_out --mypy_out=./proto_out ../../../mirabuf/*.proto
@echo off
2 changes: 1 addition & 1 deletion exporter/SynthesisFusionAddin/proto/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rm -rf -v ./proto_out
mkdir ./proto_out
git submodule update --init --recursive
protoc -I=../../../mirabuf --python_out=./proto_out ../../../mirabuf/*.proto
protoc -I=../../../mirabuf --python_out=./proto_out --mypy_out=./proto_out ../../../mirabuf/*.proto
Loading
Loading