The use of setUseVisualizer() function

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
D AF
Posts: 1
Joined: Mon Apr 15, 2024 5:39 am

The use of setUseVisualizer() function

Post by D AF » Mon Nov 04, 2024 8:11 pm

Code: Select all

import opensim as osim
model_path = 'E:\python\Osim_RL1.5\osim\models\gait9dof18musc.osim'
model = osim.Model(model_path)
model.setUseVisualizer(True)
I called the model.setUseVisualizer (True) function in python to open the visualization window to observe the model. Although there was no error during the run, the visualization window did not open normally. What was the problem?

Tags:

User avatar
Carmichael Ong
Posts: 401
Joined: Fri Feb 24, 2012 11:50 am

Re: The use of setUseVisualizer() function

Post by Carmichael Ong » Mon Nov 18, 2024 5:34 pm

The simple Python example from the GitHub page could help guide using model.setUseVisualizer(): https://github.com/opensim-org/opensim- ... ple#python

POST REPLY