Error when running "example_kinetics.py"

New project for OpenCap, which is a new software package to estimate 3D human movement dynamics from smartphone videos. OpenCap strongly relies on OpenSim.
POST REPLY
User avatar
ibuki ono
Posts: 5
Joined: Sun Oct 02, 2022 10:45 pm

Error when running "example_kinetics.py"

Post by ibuki ono » Wed Dec 14, 2022 7:47 pm

Hi,

When I run "example_kinetics.py" using spyder, I get the following error. (Please also see the attached screenshot of that)
TypeError: Wrong number or type of arguments for overloaded function 'PathPoint_set_location'.
Possible C/C++ prototypes are:
OpenSim::PathPoint::set_location(int,SimTK::Vec3 const &)
OpenSim::PathPoint::set_location(SimTK::Vec3 const &)
I followed the Github installation and the "createAuthenticationEnvFile.py and 'example.py' ran fine. The PC used is Windows 10.

I'm in a situation where I don't know what to fix, so if you don't mind, I'd appreciate your guidance.

thanks in advance,
Ibuki
Attachments
スクリーンショット (15).png
スクリーンショット (15).png (196.11 KiB) Viewed 380 times

User avatar
Antoine Falisse
Posts: 438
Joined: Wed Jan 07, 2015 2:21 am

Re: Error when running "example_kinetics.py"

Post by Antoine Falisse » Thu Dec 15, 2022 11:30 am

Hey Ibuki,

Thanks for reporting. Might be a bug on our end.

Three things to start with:
1. What platform are you using (windows, macOS, linux)?
2. Could you check what version of OpenSim you are using. See item 5 here: https://github.com/stanfordnmbl/opencap ... ng#general
3. Are you running the script with your own data or with the example data?

Thanks,
Best,

Antoine

User avatar
ibuki ono
Posts: 5
Joined: Sun Oct 02, 2022 10:45 pm

Re: Error when running "example_kinetics.py"

Post by ibuki ono » Sun Dec 18, 2022 6:39 pm

Hi Antoine,

Thanks for your quick reply.

1.The platform used is windows 10.
2.The version of opensim is 4.4.
3.I'm running scripts with the data I get.

Thanks for all your and your team's effort and I look forward to what's coming up next.

Ibuki

User avatar
Antoine Falisse
Posts: 438
Joined: Wed Jan 07, 2015 2:21 am

Re: Error when running "example_kinetics.py"

Post by Antoine Falisse » Mon Dec 19, 2022 8:58 am

Would you willing to share your session ID so that I can take a look? It will be hard for me to figure out what is happening otherwise. You can send it privately if you like: afalisse@stanford.edu. Thank you.

User avatar
ibuki ono
Posts: 5
Joined: Sun Oct 02, 2022 10:45 pm

Re: Error when running "example_kinetics.py"

Post by ibuki ono » Mon Dec 19, 2022 6:39 pm

Hi, Antoine

Sure. I will send you my session ID to the attached email address.

Thanks for your effort,
Ibuki

User avatar
Antoine Falisse
Posts: 438
Joined: Wed Jan 07, 2015 2:21 am

Re: Error when running "example_kinetics.py"

Post by Antoine Falisse » Tue Dec 20, 2022 9:00 pm

Thanks, there was a small bug in the code that I just fixed: https://github.com/stanfordnmbl/opencap ... b8fb46cc0a

Please pull the latest version of the code and it should work.

Best,
Antoine

POST REPLY