コード例 #1
0
    // This function should fire on each ros message
    public new static void CallBack(ROSBridgeMsg msg)
    {
        Debug.Log(msg.ToYAMLString());
        ThrusterSpeedsMsg thrustVals = (ThrusterSpeedsMsg)msg;

        ForceVals = thrustVals.GetData();
    }
コード例 #2
0
    // This function should fire on each ros message
    public new static void CallBack(ROSBridgeMsg msg)
    {
        //Debug.Log (msg.ToYAMLString());
        ThrusterSpeedsMsg thrustVals = (ThrusterSpeedsMsg)msg;

        ForceVals = thrustVals.GetData();
        thrusters = GameObject.Find("Thrusters");
        thrusters.GetComponent <ThrusterController>().AddForces(ForceVals);
    }