Error: One of the function's argument type is not correct

Typically: "How do I... ", "How can I... " questions
Post Reply
DannyYeong
Posts: 44
Joined: 24 Feb 2015, 17:06

Error: One of the function's argument type is not correct

Post by DannyYeong » 09 Jul 2015, 14:52

Hi,

I have 2 revolute joints that contained the same style of coding, just different input parameters. However, despite the similarity, the Roll script do not have this error ( One of the function's argument type is not correct. (simSetJointTargetVelocity)) whereas the Pitch has. What's seems to be the problem? They contain the same coding style but only differ in input parameters.

IMAGE: http://postimg.org/image/6vtisiv4v/

Simulation file:
http://www.filedropper.com/fullmodel2

coppelia
Site Admin
Posts: 7221
Joined: 14 Dec 2012, 00:25

Re: Error: One of the function's argument type is not corre

Post by coppelia » 10 Jul 2015, 08:45

Hello,

print out the values of pitch and Vpitch, then you should quickly see what is wrong. pitch should be the joint handle, Vpitch should be the target velocity.
In your case, in the first simulation loop, Vpitch is nil.

Cheers

Post Reply