I start the ServerSharedMemoryGui example, then run my luajit program and it interacts correctly (loading in urdfs and so on).
I then started to play around with the params for the client and I ran into this problem:
Code: Select all
Assert ..\..\examples\SharedMemory\PhysicsClientSharedMemory.cpp:481 (m_data->m_testBlock1->m_numServerCommands == m_dat
a->m_testBlock1->m_numProcessedServerCommands + 1)
Code: Select all
self.client = gbullet.b3ConnectSharedMemory( 12348 )
if gbullet.b3CanSubmitCommand(self.client) == 1 then
local cmd = gbullet.b3InitPhysicsParamCommand(self.client)
gbullet.b3PhysicsParamSetGravity(cmd, 1.0, 1.0, -9.8)
gbullet.b3PhysicsParamSetTimeStep(cmd, 1.0/60.0);
local status = gbullet.b3SubmitClientCommandAndWaitStatus(self.client, cmd);
end
Am I missing anything here? Ive tried to make multiple commands and so forth, but I referrenced a few examples and the above should work? Is the sample server needing changes to its settings (its a straight build - no changes).
Any help would be greatly appreciated. If people want my ffi file (to use bullet3 with luajit) let me know, I'll post it. Its basically a couple of header files of the C API combined.