checking for collision

You have to create a task, in that task, check the CollisionHandlerQueue for collision entries. You might want to read the manual section about that, or follow the Collision Detection or Roaming Ralph example in your Panda3D/samples directory.