Comments (12)
Check if it opens on master, if yes then likely this has been fixed in core, will test after upgrading if not then open an issue for opensim-core. Thanks @tkuchida
from opensim-gui.
The following works on master:
auto Model = model("bouncing_block.osim");
model.finalizeFromProperties(); //throws exception if this line is omitted
model.printSubcomponentInfo();
from opensim-gui.
The GUI workflow invokes initSystem (which implicitly calls finalizeFromProperties), the change to require the new call finalizeFromProperties was not in the alpha code base, so I'd expect the issue to go away with upgrading API. Would be great though to try opening other models from the GUI-alpha distribution using master so that any necessary fixes are incorporated into the API core beta. Thanks much @tkuchida for investigating 🥇
from opensim-gui.
All models in opensimWin64Alpha01\opensim\models\*.osim /s
load successfully in the API on master.
Test code
auto model = Model(filename);
model.finalizeFromProperties();
model.printSubcomponentInfo();
Model files tested
Arm26/arm26.osim
BouncingBlock/bouncing_block.osim
BouncingBlock/bouncing_block_weak_spring.osim
DynamicWalker/WalkerModel.osim
DynamicWalker/WalkerModelAddCustomFeet.osim
DynamicWalker/WalkerModelTerrain.osim
DynamicWalker/WalkerModelTerrainAddCustomFeet.osim
Gait10dof18musc/gait10dof18musc.osim
Gait10dof18musc/subject01.osim
Gait10dof18musc/subject01_metabolics.osim
Gait10dof18musc/subject01_metabolics_path_actuator.osim
Gait10dof18musc/subject01_metabolics_path_spring.osim
Gait10dof18musc/subject01_metabolics_spring.osim
Gait2354_Simbody/gait2354_simbody.osim
Gait2354_Simbody/gait2354_with_pat_lig.osim
Gait2354_Simbody/subject01_simbody.osim
Gait2354_Simbody_Patellae/gait2354_simbody_patellae.osim
Gait2392_Simbody/gait2392.osim
Gait2392_Simbody/gait2392_simbody.osim
Gait2392_Simbody/subject01.osim
Gait2392_Simbody/subject01_adjusted.osim
Gait2392_Simbody/subject01_simbody_adjusted.osim
Jumper/DynamicJumperModel.osim
Leg6Dof9Musc/leg6dof9musc.osim
Pendulum/double_pendulum.osim
SoccerKick/SoccerKickingModel.osim
ToyLanding/ToyLandingModel.osim
ToyLanding/ToyLandingModel_activeAFO.osim
ToyLanding/ToyLandingModel_AFO.osim
Tug_of_War/Tug_of_War.osim
Tug_of_War/Tug_of_War_Millard.osim
from opensim-gui.
Awesome, excellent job @tkuchida 👍
from opensim-gui.
Moved to "needs verifying" list for testing in the next GUI build
from opensim-gui.
Trying to load the model now gives the error dialog
This obviously is the latest API Beta since Sockets mentioned in message didn't exist in previous versions
model in opensim-models/Models/BouncingBlock/bouncing_block.osim
from opensim-gui.
from opensim-gui.
Still unable to open bouncing_block.osim with opensim_devWin64_060217.zip (same dialog box as @aymanhab noted on Apr 3 post, above).
from opensim-gui.
Tested again using opensim_win64_070517_2.zip on Windows 7. Error message is identical to what Ayman posted above (Apr 3). Contents of Messages window:
ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported. ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported. ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported. ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported. ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported. ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported. ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported. Updating Model file from 20303 to latest format... Loaded model toy_with_forces from file C:\Users\tkuchida\GitHub - GUI 4.0 alpha04\opensim\Models\BouncingBlock\bouncing_block.osim
from opensim-gui.
This obviously isn't a GUI issue until corresponding API issue is resolved
from opensim-gui.
Issue moved to opensim-org/opensim-core #1856 via ZenHub
from opensim-gui.
Related Issues (20)
- Fix build in sync with opensim-core changes HOT 3
- Add tools to support processing with AddBiomechanics
- Fix ci builds for Mac and Ubuntu
- integrate latest opensim-models changes into distribution
- visualizer window cuts the above motion bar HOT 4
- Upgrade branding splash and links to 4.5 release
- opensim 4.4 has something wrong with matlab2023b update4 (apple silicon)
- Unchecked Controls file in Analyze tool is still being used by the tool
- Cannot select absolute path from Description Area
- Linux Build Failure HOT 28
- Erratic hybrid muscle wrapping around ellipsoid
- MuscleAnalysis set activation override
- Hiding markers for non-current model throws exception HOT 2
- Image borders cut off depending on snapshot quality HOT 3
- BUILD FAILED - javac "source option 6 is no longer supported. Use 7 or later." HOT 4
- CoordinateActuator: Invalid coordinate (r_handle_rot) specified in Actuator handle_motor HOT 2
- Rotating experimental data fails HOT 5
- Error when changing muscle color HOT 2
- Error when plotting MOT/STO files HOT 6
- Add a sample GUI script to time-normalize motion and storage files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensim-gui.