added todo for contact detection in beer pong
This commit is contained in:
		
							parent
							
								
									b04e7c1dcd
								
							
						
					
					
						commit
						26cc1136f6
					
				| @ -217,6 +217,7 @@ class BeerPongEnv(MujocoEnv, utils.EzPickle): | |||||||
|         return reward, infos |         return reward, infos | ||||||
| 
 | 
 | ||||||
|     def _check_contacts(self): |     def _check_contacts(self): | ||||||
|  |         #TODO proper contact detection using sensors? | ||||||
|         if not self.ball_table_contact: |         if not self.ball_table_contact: | ||||||
|             self.ball_table_contact = self._check_collision({self.geom_id("ball_geom")}, |             self.ball_table_contact = self._check_collision({self.geom_id("ball_geom")}, | ||||||
|                                                             {self.geom_id("table_contact_geom")}) |                                                             {self.geom_id("table_contact_geom")}) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user