/// <summary> /// Changes the active robot to a new robot with a given directory /// </summary> /// <param name="directory"></param> /// <returns>whether the process was successful</returns> public bool ChangeRobot(string directory, bool isMixAndMatch) { sensorManager.RemoveSensorsFromRobot(ActiveRobot); sensorManagerGUI.ShiftOutputPanels(); sensorManagerGUI.EndProcesses(); if (ActiveRobot.RobotHasManipulator) { ActiveRobot.DeleteManipulatorNodes(); ActiveRobot.RobotHasManipulator = false; } ActiveRobot.RobotIsMixAndMatch = isMixAndMatch; return(ActiveRobot.InitializeRobot(directory, this)); }
/// <summary> /// Used to delete manipulator nodes in MaM mode /// </summary> public void DeleteManipulatorNodes() { ActiveRobot.DeleteManipulatorNodes(); }