CheckSelfCollision throws an exception with pqp

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

CheckSelfCollision throws an exception with pqp


I am changing the CollisionChecker to pqp in C++ and I am getting an OpenRAVE::openrave_exception (Bad Ptr) when using CheckSelfCollision afterwards. However CheckCollision works fine.
The other thing is when I use the same code with ode CollisionChecker everything works.

This is the code I am using:
    CollisionCheckerBasePtr pchecker = RaveCreateCollisionChecker(penv,"pqp");
    penv->CheckCollision(penv->GetKinBody("myrobot"),penv->GetKinBody("target")); <- Works.    
    penv->GetKinBody("myrobot")->CheckSelfCollision();  <- Causes an exception.

Thanks for your help.