View Single Post
  #1  
Old 12-12-2007, 06:56 AM
ad_astra ad_astra is offline
Member
 
Join Date: Nov 2007
Posts: 2
physics engine exception

I'm working on a robotics simulation with a robotic arm and different obstacles within a room. Collision detection is enabled for the obstacles and the arm, with the arm segments having viz.collide_notify enabled.

The program is set up such that there are multiple tasks, and in between each task, the obstacle objects are removed and new copies are added, since not all obstacles are used on every task. I keep encountering a physics engine exception between tasks, usually when the task ends with a collision taking place (successfully touching a target object with the end of the robotic arm is the current means for ending a task). The exception warning generally does not print out, however, until after all the old objects have been detroyed, the new objects have been created, and the main loop of the program has been reset.

** ERROR: Caught exception in physics engine

I have tried disabling collision detection before the objects are destroyed and re-enabling it after the new ones are created with no success. I'm not sure if the program is actually this slow, or if it's just the print out capability, but when this problem occurs, the output indicates that the next task began before the program realized that the collision between an already-destroyed object and the arm ended. Initially, the exception warning only prints once, and but after a couple more tasks are completed, it continues to print each time the main loop runs, which makes continuing the program impossible.

I was wondering if anyone had ever encountered this type of problem before and if there was a way to fix it. Thank you
Reply With Quote