Commits

German Larrain  committed 08c4355

JointFeedback: made private the attributes 'forceX' and 'torqueX'; added the
corresponding properties (just getters).

  • Participants
  • Parent commits 9ff5bb5

Comments (0)

Files changed (1)

File ars/model/robot/joints.py

 		"""
 		self._body1 = body1
 		self._body2 = body2
-		self.force1 = force1
-		self.force2 = force2
-		self.torque1 = torque1
-		self.torque2 = torque2
+		self._force1 = force1
+		self._force2 = force2
+		self._torque1 = torque1
+		self._torque2 = torque2
 
 	@property
 	def body1(self):
 	@property
 	def body2(self):
 		return self._body2
+
+	@property
+	def force1(self):
+		return self._force1
+
+	@property
+	def force2(self):
+		return self._force2
+
+	@property
+	def torque1(self):
+		return self._torque1
+
+	@property
+	def torque2(self):
+		return self._torque2