class VirtualTotalStationTM30(VirtualSensor):
"""
VirtualTotalStationTM30 simulates the Leica TM30 totalstation by processing
GeoCOM commands.
"""
def __init__(self, module_name: str, module_type: str, manager: Manager):
super().__init__(module_name, module_type, manager)
self.patterns = {
'%R1Q,5003:\\r\\n': self.get_sensor_id,
'%R1Q,5004:\\r\\n': self.get_sensor_name,
'%R1Q,9027:(-?[0-9]*\.?[0-9]+),(-?[0-9]*\.?[0-9]+),2,1,0\\r\\n':
self.set_direction,
'%R1Q,2008: 1,1\\r\\n': self.measure_distance,
'%R1Q,2167: 5000,1\\r\\n': self.do_complete_measurement
}
`