1import logging; logger = logging.getLogger("morse." + __name__) 2import morse.core.robot 3 4class Submarine(morse.core.robot.Robot): 5 """ 6 A generic submarine robot. The robot has no mass and its physics is 7 set to "NoCollision". 8 """ 9 10 _name = 'Submarine robot' 11 12 def __init__(self, obj, parent=None): 13 logger.info('%s initialization' % obj.name) 14 morse.core.robot.Robot.__init__(self, obj, parent) 15 16 logger.info('Component initialized') 17 18 def default_action(self): 19 """ Main function of this component. """ 20 pass 21