First of all I am new to odejava, and I would like to say its very cool. I was trying to do my own wrapper with ode but threw it in the bin after finding this better one.
I have some problems though.
I want to combine seperate masses instead of joining them with fixed joint as suggested by ode itself.
Now ode provided me a way of doing this with dMaddAdd(). Which would deal with the inertia matrices etc. But missing from ode was a way to retrieve the new intertia parameters, and thus its missing from the low level API as far as I can tell.
So does anyone know how I could get an inertia matrix either by using odejava functions or jsut how to calulate them raw.
I know that inertia matrices are summed to work out the resulting inertia matrix, but that assumes the bodies are orientated the same way and something about the origin and axis. So if anyone knows how to reorientate the matrix to a new orientation? or point of reference. Actually thats gonna be too complicated.
Does anyone know how to use the SWIG stuff to get an individual componet of a structure.
using the low level API I can create a mass. OK
I have been reading more whilest righting this.
I think I might be able to do it.
I can create a dMass in java context. I can then use the function getI() to retrieve something of type p_float. Which I would assume to mean a pointer to a float. which I can then increment to get the mem locations of the subsequent parts of the matrix. OK so that seems ok. How do I get the data then that I have the addresses for?? Cor its a bit intimidating at this level!
Thanks to the inventors for creating this great software. Both the original ode people and the javaode people.
Tom