示例#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);
    }