示例#1
0
 private PoseMsg(MessageDeserializer deserializer)
 {
     this.position    = PointMsg.Deserialize(deserializer);
     this.orientation = QuaternionMsg.Deserialize(deserializer);
 }
示例#2
0
 public PoseMsg()
 {
     this.position    = new PointMsg();
     this.orientation = new QuaternionMsg();
 }
示例#3
0
 public PoseMsg(PointMsg position, QuaternionMsg orientation)
 {
     this.position    = position;
     this.orientation = orientation;
 }
示例#4
0
    public RosPoint unity2rosCoord(Vector3 UnityPosition)
    {
        RosPoint RosPosition = new RosPoint(UnityPosition.z, -UnityPosition.x, UnityPosition.y);

        return(RosPosition);
    }
示例#5
0
    public Vector3 ros2unityCoord(RosPoint RosPosition)
    {
        Vector3 UnityPosition = new Vector3(-(float)RosPosition.y, (float)RosPosition.z, (float)RosPosition.x);

        return(UnityPosition);
    }
示例#6
0
 private PointStampedMsg(MessageDeserializer deserializer)
 {
     this.header = Std.HeaderMsg.Deserialize(deserializer);
     this.point  = PointMsg.Deserialize(deserializer);
 }
示例#7
0
 public PointStampedMsg(Std.HeaderMsg header, PointMsg point)
 {
     this.header = header;
     this.point  = point;
 }
示例#8
0
 public PointStampedMsg()
 {
     this.header = new Std.HeaderMsg();
     this.point  = new PointMsg();
 }