public static Vector3Message GetVector3Message(Vector3 value) { if (_vector3Message == null) { _vector3Message = new Vector3Message(); } _vector3Message.value = value; return(_vector3Message); }
public Vector3Message GetVector3Message(Vector3 vector) { Vector3Message vectorMessage = new Vector3Message(); vectorMessage.X = vector.x; vectorMessage.Y = vector.y; vectorMessage.Z = vector.z; return(vectorMessage); }
public static Vector3 ToVector3(this Vector3Message msg) { return(new Vector3(msg.X, msg.Y, msg.Z)); }
public Vector3 GetVector3(Vector3Message message) { return(new Vector3(message.X, message.Y, message.Z)); }
public ImuMessage(HeaderMessage header, QuaternionMessage orientation, double[] orientation_covariance, Vector3Message angular_velocity, double[] angular_velocity_covariance, Vector3Message linear_acceleration, double[] linear_acceleration_covariance) { this.header = header; this.orientation = orientation; this.orientation_covariance = orientation_covariance; this.angular_velocity = angular_velocity; this.angular_velocity_covariance = angular_velocity_covariance; this.linear_acceleration = linear_acceleration; this.linear_acceleration_covariance = linear_acceleration_covariance; }