Search found 58 matches
- Wed Nov 15, 2023 7:33 am
- Forum: OpenSim
- Topic: Moco goals for average speed in cycling model
- Replies: 2
- Views: 373
Moco goals for average speed in cycling model
Hello, I'm currently working on a project involving a human model (with joint torques) connected to a crank, capable of pedalling from position 0 to 360 degrees. I can successfully predict pedal motion using MocoFinalTimeGoal as the target goal. Now, I want to explore a different target: average cra...
- Fri Nov 03, 2023 7:29 am
- Forum: OpenSim
- Topic: apply transform to mesh file frame
- Replies: 3
- Views: 516
Re: apply transform to mesh file frame
Hello there! Even though this post is a bit old, I wanted to share a solution I recently came up with for this issue. Mesh geometry, which represents only the visual aspect of objects, cannot be rotated directly in OpenSim. However, you can work around this limitation by creating a Frame related to ...
- Tue Oct 31, 2023 5:37 am
- Forum: OpenSim
- Topic: Is there a way to remove a WeldJoint using the API?
- Replies: 1
- Views: 185
Is there a way to remove a WeldJoint using the API?
Hello everyone, I would like to know if there is a way to remove a WeldJoint from a model using the API. I have successfully added the WeldJoint using the following code snippet: Code joint = osim.WeldJoint("joint_1_2", model.getBodySet().get("body1"), osim.Vec3(0, 0, 0), osim.Vec3(0, 0, 0), model.g...
- Tue Oct 31, 2023 4:35 am
- Forum: OpenSim
- Topic: Question about turning a muscle-driven model into a torque-driven model
- Replies: 5
- Views: 323
Re: Question about turning a muscle-driven model into a torque-driven model
I'm not an expert here, but I know it is possible to plot the actuation from your external actuators. If you take a look at Moco examples, you can probably find that
- Tue Oct 31, 2023 2:49 am
- Forum: OpenSim
- Topic: Question about turning a muscle-driven model into a torque-driven model
- Replies: 5
- Views: 323
Re: Question about turning a muscle-driven model into a torque-driven model
Hi Chen, I find it a bit hard to understand completly without some extra information from your code. For example, it's crucial to ensure that the initial joint angles, velocities, and external forces are correctly specified to achieve the desired behavior. However, doesn't your model contains gravit...
- Mon Oct 30, 2023 6:40 am
- Forum: OpenSim
- Topic: study.visualize(predict_solution) show only a white background
- Replies: 2
- Views: 226
Re: study.visualize(predict_solution) show only a white background
Hi Mohammadreza, That was a great suggestion, but unfortunetly it didn't work... I tried: osim.ModelVisualizer.addDirToGeometrySearchPaths('C:\OpenSim 4.4\Geometry') and also osim.ModelVisualizer.addDirToGeometrySearchPaths('C:\OpenSim 4.4\Geometry') current_directory = os.getcwd() data_folder_path ...
- Thu Oct 26, 2023 6:20 am
- Forum: OpenSim
- Topic: Moco Visualize erros
- Replies: 1
- Views: 202
Re: Moco Visualize erros
Hi Azarang Asadi, I know it has been a while, but have you been able to solve that?
I have been having similar problems.
I have been having similar problems.
- Wed Oct 25, 2023 7:00 am
- Forum: OpenSim
- Topic: study.visualize(predict_solution) show only a white background
- Replies: 2
- Views: 226
study.visualize(predict_solution) show only a white background
Hello everyone, I am facing an issue with visualize(predict_solution), it shows an all-white screen. I have run all Moco examples with the visualiser without any issues. Moreover, when I open the GUI, load the model and then load my solution (.sto), it works fine. The problem is with running the vis...
- Tue Jun 13, 2023 6:48 am
- Forum: Control strategies for functional electrical stimulation (FES) cycling
- Topic: Control strategies for functional electrical stimulation (FES) cycling Public Forum
- Replies: 16
- Views: 1495
Re: Control strategies for functional electrical stimulation (FES) cycling Public Forum
Hi Rufaida Hussain, this is probably due to your OpenSim version. This version only works for OpenSim 3.3
- Thu Jul 29, 2021 4:41 pm
- Forum: Control strategies for functional electrical stimulation (FES) cycling
- Topic: Control strategies for functional electrical stimulation (FES) cycling Public Forum
- Replies: 16
- Views: 1495
Re: Control strategies for functional electrical stimulation (FES) cycling Public Forum
That is the final opensim model that will be used by opensim. It follows a specific structure that you can see here: https://simtk.org/api_docs/opensim/api_docs/classOpenSim_1_1TorqueActuator.html You can directly edit the .osim file, but I created using other functions from the API, as you can see ...