Search found 21 matches

by Vinh Nguyen
Mon Nov 21, 2016 2:07 pm
Forum: OpenSim
Topic: Build in PID controller for Actuator
Replies: 1
Views: 283

Build in PID controller for Actuator

Hi, I am writing a class of controlled motor actuator, which consists of an electrical motor and its PD controller. The input of class is reference torque and the output is torque of motor. The equation for controller is: control signal = Kp * e + Kd * e_dot with e = Torque reference - Torque. I hav...
by Vinh Nguyen
Fri Nov 11, 2016 5:06 pm
Forum: OpenSim
Topic: Couldn't build model after I add CoordinateSet
Replies: 2
Views: 203

Re: Couldn't build model after I add CoordinateSet

I might know why it crashes.
your "lHipJointMidToTop" joint is a pin joint, so it has only 1 degree of freedom.
That means you can only access lHipJointMidToTopCorSet[0].
Try delete the other and build again.

Vinh
by Vinh Nguyen
Thu Nov 10, 2016 3:12 pm
Forum: OpenSim
Topic: OpenSim API: set-translation/rotation for wrapping objects
Replies: 10
Views: 1620

Re: OpenSim API: set-translation/rotation for wrapping objects

Thank you for your answers, I am writing in VS C++. I would like to create a model which has a WrapCylinder(). The thing is when I add the wrapcylinder to the body, it is by default attached to the coordinate system of the body. But I want to translate it to other position. This would be easy by mod...
by Vinh Nguyen
Wed Nov 09, 2016 10:39 am
Forum: OpenSim
Topic: Plugin load in Matlab
Replies: 8
Views: 11615

Re: Plugin load in Matlab

You should use the "osimPlginDLL.h" instead of the "eh.h" you mentioned when you use "loadlibrary()"
Could you explain more clearly? Is that related to matlab code or VS C++ code?

Thanks,
by Vinh Nguyen
Wed Nov 09, 2016 10:36 am
Forum: OpenSim
Topic: Create Plugin for new component
Replies: 4
Views: 247

Re: Create Plugin for new component

Thank you very much, it works with GUI now. I am trying to test with Matlab.

Best,
Vinh
by Vinh Nguyen
Mon Nov 07, 2016 9:09 pm
Forum: OpenSim
Topic: OpenSim API: set-translation/rotation for wrapping objects
Replies: 10
Views: 1620

Re: OpenSim API: set-translation/rotation for wrapping objects

Hi Ayman,

I tried to find "PropertyHelper" in OpenSim 3.3 doxygen (https://simtk.org/api_docs/opensim/api_docs/index.html), and
source code 3.3, but I could not find it.
Maybe I missed somethings here? Any suggestions?

Best regards,
Vinh
by Vinh Nguyen
Mon Nov 07, 2016 4:42 pm
Forum: OpenSim
Topic: OpenSim API: set-translation/rotation for wrapping objects
Replies: 10
Views: 1620

Re: OpenSim API: set-translation/rotation for wrapping objects

Hi,

I am using OpenSim 3.3, and it seems that it does not have PropertyHelper class.
Do you have any suggestions for this?

Thanks.
by Vinh Nguyen
Mon Nov 07, 2016 9:52 am
Forum: OpenSim
Topic: Create Plugin for new component
Replies: 4
Views: 247

Re: Create Plugin for new component

What is the error that you get? => When I loaded model in GUI, it just kept showing "Loading model file ...". You can test if the new actuator is serialized correctly by loading the .osim model in your main, and not add the new actuator programmatically =>I have tried to load the .osim model in my ...
by Vinh Nguyen
Fri Nov 04, 2016 10:57 am
Forum: OpenSim
Topic: Create Plugin for new component
Replies: 4
Views: 247

Create Plugin for new component

Hi, I have created a new component which is a new kind of actuator. I have tested it by create new model using it in main() program with VS C++. Now, I would like to create a plugin (.dll and .lib) files for my component. I have followed the template for analyses plugin example provided by OpenSim. ...
by Vinh Nguyen
Tue Oct 11, 2016 2:43 pm
Forum: OpenSim
Topic: Error run analyze tool through command line
Replies: 2
Views: 179

Re: Error run analyze tool through command line

Thanks Dimitar,

I changed the setup file and now it works.