private void UpdateValues()
        {
            GeometryPoint      rosP = rawMessage.pose.pose.position;
            GeometryQuaternion rosQ = rawMessage.pose.pose.orientation;

            position    = new Vector3(-rosP.y, rosP.z, rosP.x);
            orientation = new Quaternion(-rosQ.x, rosQ.z, rosQ.y, rosQ.w);
        }
示例#2
0
 public PeoplePerson()
 {
     name        = "";
     position    = new GeometryPoint();
     velocity    = new GeometryPoint();
     reliability = 0;
     tagnames    = new string[0];
     tags        = new string[0];
 }
        private GeometryPoint GetGeometryPoint(Vector3 position)
        {
            GeometryPoint geometryPoint = new GeometryPoint();

            geometryPoint.x = position.x;
            geometryPoint.y = position.y;
            geometryPoint.z = position.z;
            return(geometryPoint);
        }
示例#4
0
 public PeoplePositionMeasurement()
 {
     header         = new StandardHeader();
     name           = "";
     object_id      = "";
     pos            = new GeometryPoint();
     reliability    = 0;
     covariance     = new double[9];
     initialization = 0;
 }
示例#5
0
        private GeometryPoint GetGeometryPoint(Vector3 position)
        {
            GeometryPoint geometryPoint = new GeometryPoint {
                x = position.x,
                y = position.y,
                z = position.z
            };

            return(geometryPoint);
        }
示例#6
0
 public GeometryPose()
 {
     position    = new GeometryPoint();
     orientation = new GeometryQuaternion();
 }