Search found 13 matches

by Yu-Wei Chen
Mon Mar 09, 2015 11:43 pm
Forum: OpenSim
Topic: Unhandled exception in reading TRC file
Replies: 0
Views: 146

Unhandled exception in reading TRC file

Hello, I encounter an unhandled exception in C++ code when reading a TRC file with bad data (for example, negative value of camera rate, no frame, or others), but I cannot catch this exception. Even if I use std::set_terminate, it does not work. I want to do a sanity check on TRC file so that OpenSi...
by Yu-Wei Chen
Tue Mar 03, 2015 2:04 am
Forum: OpenSim
Topic: Is it possible to convert mot. files to avi. files?
Replies: 8
Views: 1081

Re: Is it possible to convert mot. files to avi. files?

Hello, I has tried the Visualizer and encounter some problems. 1. I want to render the model on the Visualizer Panel. I find this sample code ( https://github.com/opensim-org/opensim-core/blob/master/README.md ) that it does the simulation on the Visualizer Panel. If I comment the simulation part of...
by Yu-Wei Chen
Sun Feb 01, 2015 8:44 pm
Forum: OpenSim
Topic: Is it possible to convert mot. files to avi. files?
Replies: 8
Views: 1081

Re: Is it possible to convert mot. files to avi. files?

Hello,

Thank you for reply. I will try it. :)

Best regards,
Yu-Wei
by Yu-Wei Chen
Wed Jan 28, 2015 2:00 am
Forum: OpenSim
Topic: Is it possible to convert mot. files to avi. files?
Replies: 8
Views: 1081

Re: Is it possible to convert mot. files to avi. files?

Hello, all,

I want to use GUI API in my code to make the movie, so I find this article.

Sorry that I have no permission to visit the API visualizer website, is it still alive?

Or is there an alternative way of using the GUI function in my C++ code?

Thank you very much.

Best regards,
Yu-Wei
by Yu-Wei Chen
Thu Dec 18, 2014 11:13 pm
Forum: OpenSim
Topic: Problem in C++ API on PointKinematics
Replies: 2
Views: 304

Re: Problem in C++ API on PointKinematics

Hello, Ayman, I add pk.setModel(pkModel) so that the functions do not throw exceptions, and it works for me. My flow is that I output the setup file first (I want to save the configuration file) and then read it to run. I use this trick in my StaticOptimization and JointReaction analysis before. Tha...
by Yu-Wei Chen
Thu Dec 18, 2014 2:44 am
Forum: OpenSim
Topic: Problem in C++ API on PointKinematics
Replies: 2
Views: 304

Problem in C++ API on PointKinematics

Hello, everyone, I am using PointKinematics in tracking interested points on the model. It runs well in GUI, but when I implement it using C++ API, I encounter some problems. The following is my example code for setting PointKinematics: // Set Point Kinematics PointKinematics pk = PointKinematics();...
by Yu-Wei Chen
Sun May 04, 2014 7:58 pm
Forum: OpenSim
Topic: IK code details
Replies: 2
Views: 317

Re: IK code details

Hello, James,

Thanks for your reply. I got more clear about the IK flow. Thank you very much. :)

Best regards,
Yu-Wei
by Yu-Wei Chen
Thu Apr 24, 2014 2:51 am
Forum: OpenSim
Topic: IK code details
Replies: 2
Views: 317

IK code details

Hello, I am tracing IK codes to know more about IK details. I know there are lots of comments in the codes, but too many professional terms. Could you help me realize something, thanks. In InverseKinematics::run() , we create an IK solver, and the parameter markersReference comes from <IKMarkerTask>...
by Yu-Wei Chen
Mon Apr 14, 2014 7:27 pm
Forum: OpenSim
Topic: Taking a Snapshot
Replies: 2
Views: 205

Re: Taking a Snapshot

Hi, James,

Thanks for your reply. I expect there are more API functions in the future. Thanks. :D

Best regards,
Yu-Wei
by Yu-Wei Chen
Sun Apr 13, 2014 10:46 pm
Forum: OpenSim
Topic: Taking a Snapshot
Replies: 2
Views: 205

Taking a Snapshot

According to this document http://simtk-confluence.stanford.edu:8080/display/OpenSim/Taking+Snapshots+and+Making+Movies , I can click the camera button to save the view as image. But how to use API to invoke this action? For example, if I type gfxWindowSendKey('x') in Scripting Shell Window, the act...