Commits

German Larrain  committed 687b15c

model.robots.joints.Joint: replaced 'get_body1' method with 'body1' property.

  • Participants
  • Parent commits bdb5325

Comments (0)

Files changed (1)

File ars/model/robot/joints.py

 		self._body1 = body1
 		self._body2 = body2
 
-	def get_body1(self):
+	@property
+	def body1(self):
 		return self._body1
 
-	def get_body2(self):
+	@property
+	def body2(self):
 		return self._body2
 
 class Fixed(Joint):
 	def get_body1(self):
 		return self._body1
 
-	def get_body2(self):
+	@property
+	def body2(self):
 		return self._body2
 
 class ContactGroup: