added todo for contact detection in beer pong

This commit is contained in:
philipp 2022-07-13 13:34:28 +02:00
parent b04e7c1dcd
commit 26cc1136f6

View File

@ -217,6 +217,7 @@ class BeerPongEnv(MujocoEnv, utils.EzPickle):
return reward, infos
def _check_contacts(self):
#TODO proper contact detection using sensors?
if not self.ball_table_contact:
self.ball_table_contact = self._check_collision({self.geom_id("ball_geom")},
{self.geom_id("table_contact_geom")})