A bug in JointTypeExample.py?
Hello,
I got an error running JointTypeExample.py in Mac OSX.
It seems like an easy to fix one, however: I was able to run the example just by swaping some arguments in the "self.joint.link" calls.
The methods signature are, e.g.
link( self, parentPoint, childPoint, childLink, parentLink, currentRotation )
while the calls in the example seem to use
link( self, childLink, parentLink, parentPoint, childPoint, currentRotation )
Here is the "Output log":
Traceback (most recent call last):
File "/Applications/breve/breve.app/Contents/Resources/demos/Programming-Examples/JointTypeExample.py", line 170, in ?
JointTest()
File "/Applications/breve/breve.app/Contents/Resources/demos/Programming-Examples/JointTypeExample.py", line 13, in __init__
JointTest.init( self )
File "/Applications/breve/breve.app/Contents/Resources/demos/Programming-Examples/JointTypeExample.py", line 18, in init
self.body = breve.createInstances( breve.JointTestBody, 1 )
File "/Applications/breve/breve.app/Contents/Resources/classes/breve/__init__.py", line 87, in createInstances
return inClass()
File "/Applications/breve/breve.app/Contents/Resources/demos/Programming-Examples/JointTypeExample.py", line 62, in __init__
JointTestBody.init( self )
File "/Applications/breve/breve.app/Contents/Resources/demos/Programming-Examples/JointTypeExample.py", line 78, in init
self.makeFixedJoint()
File "/Applications/breve/breve.app/Contents/Resources/demos/Programming-Examples/JointTypeExample.py", line 96, in makeFixedJoint
self.joint.link( self.links[ 0 ], self.links[ 1 ], breve.vector( 0, -1.000000, 0 ), breve.vector( 0, 1.000000, 0 ) )
File "/Applications/breve/breve.app/Contents/Resources/classes/breve/Joint.py", line 434, in link
ppointer = parentLink.getLinkPointer()
File "/Applications/breve/breve.app/Contents/Resources/classes/breve/__init__.py", line 236, in __getattr__
raise AttributeError
AttributeError
An error occurred while executing the file "/Applications/breve/breve.app/Contents/Resources/demos/Programming-Examples/JointTypeExample.py"
- Login to post comments

I am getting the same error
I am getting the same error in Linux as well.