コード例 #1
0
    /// <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));
    }
コード例 #2
0
 /// <summary>
 /// Used to delete manipulator nodes in MaM mode
 /// </summary>
 public void DeleteManipulatorNodes()
 {
     ActiveRobot.DeleteManipulatorNodes();
 }