예제 #1
0
    /// <summary>
    /// Opens menu for adding joints
    /// </summary>
    /// <param name="actionPoint"></param>
    public void ShowMenu(Base.ActionPoint actionPoint)
    {
        CurrentActionPoint = actionPoint;
        NameInput.text     = CurrentActionPoint.GetFreeOrientationName();

        UpdateMenu();
        SideMenu.Open();
    }
예제 #2
0
    /// <summary>
    /// Opens menu for adding joints
    /// </summary>
    /// <param name="actionPoint"></param>
    public void ShowMenu(Base.ActionPoint actionPoint)
    {
        CurrentActionPoint = actionPoint;
        NameInput.text     = CurrentActionPoint.GetFreeOrientationName();

        UpdateMenu();
        gameObject.SetActive(true);
    }
예제 #3
0
 public void ShowAddOrientationDialog()
 {
     inputDialog.Open("Create new named orientation",
                      "Please set name of the new orientation",
                      "Name",
                      CurrentActionPoint.GetFreeOrientationName(),
                      () => AddOrientation(inputDialog.GetValue(), (string)RobotsList.GetValue()),
                      () => inputDialog.Close());
 }
예제 #4
0
    public async void AddDefaultOrientation()
    {
        try {
            name = CurrentActionPoint.GetFreeOrientationName();
            await WebsocketManager.Instance.AddActionPointOrientation(CurrentActionPoint.Data.Id, new Orientation(), name);

            Notifications.Instance.ShowToastMessage("Orientation added successfully");
        } catch (RequestFailedException ex) {
            Notifications.Instance.ShowNotification("Failed to add new orientation", ex.Message);
        }
    }
예제 #5
0
    public void ShowMenu(Base.ActionPoint actionPoint, bool manualMode)
    {
        ManualMode         = manualMode;
        CurrentActionPoint = actionPoint;

        ManualModeBlock.SetActive(ManualMode);

        NameInput.text = CurrentActionPoint.GetFreeOrientationName();
        OrientationManualEdit.SetOrientation(new Orientation());
        UpdateMenu();
        gameObject.SetActive(true);
    }
예제 #6
0
    public void ShowMenu(Base.ActionPoint actionPoint, bool manualMode)
    {
        ManualMode         = manualMode;
        CurrentActionPoint = actionPoint;

        ManualModeBlock.SetActive(ManualMode);
        LiteModeBlock.SetActive(!ManualMode);

        NameInput.text = CurrentActionPoint.GetFreeOrientationName();

        /*
         * QuaternionX.text = "0";
         * QuaternionY.text = "0";
         * QuaternionZ.text = "0";
         * QuaternionW.text = "1";
         */
        OrientationManualEdit.SetOrientation(new Orientation());
        UpdateMenu();
        SideMenu.Open();
    }