Using Box2D's built in filter you can filter collisions so that they do not collide
FixtureDef floorFixture
floorFixture.filter.categoryBits = 4
FixtureDef playerFixture
playerFixture.filter.catagoryBits = 2;
playerFixture.filter.maskBits = 4;
FixtureDef npcFixture
npcFixture.filter.catagoryBits = 2;
npcFixture.filter.maskBits = 4;
In this Example the Player and the NPC should not Collide with each other, but will collide with the floor.
Read more here(search for Filtering): http://www.box2d.org/manual.html