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);
        }
        private GeometryQuaternion GetGeometryQuaternion(Quaternion quaternion)
        {
            GeometryQuaternion geometryQuaternion = new GeometryQuaternion();

            geometryQuaternion.x = quaternion.x;
            geometryQuaternion.y = quaternion.y;
            geometryQuaternion.z = quaternion.z;
            geometryQuaternion.w = quaternion.w;
            return(geometryQuaternion);
        }
Beispiel #3
0
        private GeometryQuaternion GetGeometryQuaternion(Quaternion quaternion)
        {
            GeometryQuaternion geometryQuaternion = new GeometryQuaternion {
                x = quaternion.x,
                y = quaternion.y,
                z = quaternion.z,
                w = quaternion.w
            };

            return(geometryQuaternion);
        }
Beispiel #4
0
        private void Update() //毎サイクルごとにHSRのTFを習得してHSR_tf_markerを描画する
        {
            topic_tf = tf.base_footprint;
            position = new Vector3(-topic_tf.pose.position.y, 0.5f, topic_tf.pose.position.x);
            HSR_tf_marker.transform.localPosition = position;

            GeometryQuaternion tmp        = topic_tf.pose.orientation;
            Quaternion         quaternion = new Quaternion(0, tmp.z, 0, -tmp.w);

            HSR_tf_marker.transform.localRotation = quaternion;
        }
Beispiel #5
0
 public GeometryTransform()
 {
     translation = new GeometryVector3();
     rotation    = new GeometryQuaternion();
 }
Beispiel #6
0
 public GeometryPose()
 {
     position    = new GeometryPoint();
     orientation = new GeometryQuaternion();
 }