Don’t separate essential information with a comma. The essential information is needed to understand who or what we are talking about.
Public toilets, that are dirty, should be closed.
(essential information/that are dirty)
Public toilets that are dirty should be closed.The man, checking tickets at the barrier, is smiling.
The man checking tickets at the barrier is smiling.
(essential information/checking tickets at the barrier)