Unfortunately, not directly through the PlayCanvas API. You have to use the Ammo.js API to set groups and masks. Collision masks / Groups
Edit: Actually, what do you mean by ‘sense’? As in, how do you know what type of object has been collided with? Or do you want one rigidbody to pass through some but not all other rigidbodies?