Commits

German Larrain committed a6b25f0

backport of 720e14272ad8

Comments (0)

Files changed (2)

ars/model/robot/joints.py

 class Contact(Joint):
 	pass
 
-class JointCollection:
-
-	# TODO: allow true duplicated? weak-duplicated (same bodies, different joint)? variables for that?
-
-	def __init__(self):
-		self._coll = []
-
-	def exists(self, body1, body2):
-		raise NotImplementedError()
-
-	def count(self):
-		return len(self._coll)
-
-	def add_joint(self, joint, warn=True):
-		#noinspection PySimplifyBooleanCheck
-		if self._coll.count(joint) == 0:
-			self._coll.append(joint)
-		elif warn:
-			raise exc.ArsError('Joint is already stored')
 
 class JointFeedback:
 	def __init__(self, body1, body2, force1=None, force2=None, torque1=None,
 	@property
 	def body2(self):
 		return self._body2
-
-class ContactGroup:
-
-	def __init__(self):
-		self._contacts = []
-
-	def add(self, contact):
-		raise NotImplementedError()
-
-	def remove(self, contact):
-		raise NotImplementedError()
-
-	def clear(self):
-		raise NotImplementedError()
-
-	def count(self):
-		raise NotImplementedError()

ars/model/simulator/__init__.py

 
 		self._debug = do_debug
 		self._objects = {}
-		#self._joints = jo.JointCollection()
 		self._joints = {}
 
 		# stores functions to be called on each step of a specific frame.