Hmm, did you check in today? It's telling me that my Body objects don't
have that attribute:
AttributeError: 'Ball' object has no attribute 'linear_velocity'
Ball being declared as:
class Ball(ode.Body):
Also, since I'm the guy who's submitting ode tests ;), I have a problem
with this line:
self.pin_geom = ode.GeomCCylinder(self, self.space, 1.0, 4.0)
where self is an ode.Body. I get this error:
TypeError: function takes at most 3 arguments (4 given)
So, I poked around in geoms.pyx and it looks like there's no parent
parameter in the __new__ method. When I cut out "self" from the call to
GeomCCylinder, I got this error:
dealloc <GeomCCylinder>
Segmentation fault
Not sure what that's all about. The bt is here:
0x40f93d9b in __pyx_tp_new_4_ode_GeomCCylinder (t=0x410262a0,
a=0x403114dc,
k=0x0) at _ode.c:19114
19114 (struct __pyx_vtabstruct_4_ode_GeomCCylinder
*)p->__pyx_base.__pyx_base.__pyx_base.__pyx_base.__pyx_vtab =
__pyx_vtabptr_4_ode_GeomCCylinder;
(gdb) bt
#0 0x40f93d9b in __pyx_tp_new_4_ode_GeomCCylinder (t=0x410262a0,
a=0x403114dc, k=0x0) at _ode.c:19114
#1 0x08085170 in type_call ()
#2 0x0805b17c in PyObject_Call ()
#3 0x080a50ef in do_call ()
#4 0x080a4d9b in call_function ()
#5 0x080a33f4 in eval_frame ()
#6 0x080a3f26 in PyEval_EvalCodeEx ()
#7 0x080ed3a9 in function_call ()
#8 0x0805b17c in PyObject_Call ()
#9 0x08061270 in instancemethod_call ()
#10 0x0805b17c in PyObject_Call ()
#11 0x08089a1f in slot_tp_init ()
#12 0x080851b5 in type_call ()
#13 0x0805b17c in PyObject_Call ()
#14 0x080a50ef in do_call ()
#15 0x080a4d9b in call_function ()
#16 0x080a33f4 in eval_frame ()
#17 0x080a5029 in fast_function ()
#18 0x080a4e0b in call_function ()
#19 0x080a33f4 in eval_frame ()
#20 0x080a5029 in fast_function ()
#21 0x080a4e0b in call_function ()
#22 0x080a33f4 in eval_frame ()
#23 0x080a3f26 in PyEval_EvalCodeEx ()
#24 0x080a64b2 in PyEval_EvalCode ()
#25 0x080cbb39 in run_node ()
#26 0x080cb39d in PyRun_SimpleFileExFlags ()
#27 0x08054d32 in Py_Main ()
#28 0x080548ab in main ()
#29 0x4018962d in __libc_start_main (main=0x8054894 <main>, argc=2,
ubp_av=0xbffff384, init=0x80ef698 <__libc_csu_init>,
fini=0x80ef6c8 <__libc_csu_fini>, rtld_fini=0x40012780
<_rtld_local>,
stack_end=0x0) at ../sysdeps/generic/libc-start.c:193
On Thu, 2005-02-03 at 09:29 -0800, Sean R. Lynch wrote:
> You need to remove the pins from their world too, not just the space. I
> hope that's even possible; I haven't tried it before.
>
> To set the velocity to zero, use pin.linear_velocity = (0, 0, 0). You
> need today's CVS for that because I forgot to include it before now.
>
> It helps a lot finally having someone using ODE, because my tests really
> aren't good enough to catch stuff I might have omitted.
--
We're mad as hell, and we're not gonna fake it anymore.
http://www.antholog.com --- fair and balanced