// 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(); }
// 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); }