Beispiel #1
0
    private void SendROSModifyMessage()
    {
        //TODO: Determine Why Tom has height being set to worldPos on edit (Kind of breaks the ability to edit)
        WorldScript ws = GameObject.Find("World").GetComponent <WorldScript>();

        string prevID            = ws.GetPrevID(this.name, "modify");
        float  worldX            = this.transform.localPosition.x;
        float  worldZ            = this.transform.localPosition.z;
        float  height            = this.worldPos.y;
        UserpointInstruction msg = new UserpointInstruction(this.name, prevID, worldX, height, worldZ, "MODIFY");

        GameObject.Find("Master").GetComponent <ROSDroneConnection>().PublishWaypointUpdateMessage(msg);
    }