Source code for morse.robots.environment

import logging; logger = logging.getLogger("morse." + __name__)
import morse.core.robot


[docs]class EnvironmentClass(morse.core.robot.Robot): """ Class definition for a "virtual" robot. This robot class does not have a graphical representation, and it can not move. Its only purpose is to be the parent of sensors that do not really belong to a robot, that is, standalone sensors. Since all sensors need to be parented to a robot. Sub class of Morse_Object. """ def __init__(self, obj, parent=None): """ Constructor method. Receives the reference to the Blender object. Optionally it gets the name of the object's parent, but that information is not currently used for a robot. """ # Call the constructor of the parent class logger.info('%s initialization' % obj.name) super(self.__class__,self).__init__(obj, parent) logger.info('Component initialized')
[docs] def default_action(self): """ Main function of this component. """ pass