Class QuaternionMessage
This represents an orientation in free space in quaternion form. See: http://docs.ros.org/melodic/api/geometry_msgs/html/msg/Quaternion.html
Inheritance
System.Object
QuaternionMessage
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZO.ROS.MessageTypes.Geometry
Assembly: Unity.ZeroSim.dll
Syntax
public class QuaternionMessage : ZOROSMessageInterface
Constructors
| Improve this Doc View SourceQuaternionMessage()
Declaration
public QuaternionMessage()
Fields
| Improve this Doc View SourceType
Declaration
[JsonIgnore]
public static string Type
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourceMessageType
Declaration
[JsonIgnore]
public string MessageType { get; }
Property Value
Type | Description |
---|---|
System.String |
UnityQuaternion
Declaration
[JsonIgnore]
public Quaternion UnityQuaternion { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Quaternion |
w
Declaration
public double w { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
x
Declaration
public double x { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
y
Declaration
public double y { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
z
Declaration
public double z { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceFromUnityQuaternion(Quaternion)
Convert from Unity Quaternion to ROS Quaternoin.abstract Also converts coordinate system.abstract
ROS Coordinate System (See: https://www.ros.org/reps/rep-0103.html) x forward y left z up
Unity Coordinate System: x right y up z forward
Declaration
public void FromUnityQuaternion(Quaternion q)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Quaternion | q |
ToUnityQuaternion()
Convert from ROS Quaternion to Unity Quaternion. Also converts coordinate system.
ROS Coordinate System (See: https://www.ros.org/reps/rep-0103.html) x forward y left z up
Unity Coordinate System: x right y up z forward
Declaration
public Quaternion ToUnityQuaternion()
Returns
Type | Description |
---|---|
UnityEngine.Quaternion | Unity Quaternion |