Class Vector3Message
Inheritance
System.Object
Vector3Message
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 Vector3Message : ZOROSMessageInterface
Constructors
| Improve this Doc View SourceVector3Message()
Declaration
public Vector3Message()
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 |
UnityVector3
Declaration
[JsonIgnore]
public Vector3 UnityVector3 { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
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 SourceFromUnityVector3(Vector3)
Convert from Unity Vector3 to ROS Vector3 and convert 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 void FromUnityVector3(Vector3 v)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | v | Unity Vector3 |
ToUnityVector3()
Convert from ROS Vector3 to Unity Vector3 and convert 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 Vector3 ToUnityVector3()
Returns
Type | Description |
---|---|
UnityEngine.Vector3 | Unity Vector3 |