robotarm/room.py
def add_robot(self, coords, rotation=(0,0), name='DefaultBot'):
        '''Adds a robot at the provided coordinates with the provided name'''
        if not name in self.active_robots:
            self.active_robots[name] = RobotArm(coords, rotation=rotation)
            self.robot_controls[name] = [None]
            return self.active_robots[name]
        else:
            print("Robot with that name already in room")
            return None
Adds a robot at the provided coordinates with the provided name
Adds a robot at the provided coordinates with the provided name
Adds a robot at the provided coordinates with the provided name
def add_robot(self, coords, rotation=(0,0), name='DefaultBot'):
        if not name in self.active_robots:
            self.active_robots[name] = RobotArm(coords, rotation=rotation)
            self.robot_controls[name] = [None]
            return self.active_robots[name]
        else:
            print("Robot with that name already in room")
            return None
def add_robot ( self , coords , rotation = ( 0 , 0 ) , name = 'DefaultBot' ) : if not name in self . active_robots : self . active_robots [ name ] = RobotArm ( coords , rotation = rotation ) self . robot_controls [ name ] = [ None ] return self . active_robots [ name ] else : print ( "Robot with that name already in room" ) return None
Adds a robot at the provided coordinates with the provided name
Adds a robot at the provided coordinates with the provided name
'''Adds a robot at the provided coordinates with the provided name'''
self
coords
rotation
name