Commits

German Larrain committed 8b718d0

robot.sensors: added class 'SimulationSensor'

Comments (0)

Files changed (1)

ars/model/robot/sensors.py

 	"""The joint must be an ActuatedJoint"""
 	__metaclass__ = ABCMeta
 
+
+class SimulationSensor(Sensor):
+	__metaclass__ = ABCMeta
+
+	def __init__(self, sim):
+		"""Constructor.
+
+		:param sim: simulation
+		:type sim: :class:`ars.model.simulator.Simulation`
+
+		"""
+		super(SimulationSensor, self).__init__(sim)
+
+	@property
+	def sim(self):
+		return self.source
+
 #==============================================================================
 # classes
 #==============================================================================