Пример #1
0
 private static Vector3 getVector3(GeometryVector3 geometryVector3)
 {
     return(new Vector3(
                geometryVector3.x,
                geometryVector3.y,
                geometryVector3.z));
 }
Пример #2
0
        private static GeometryVector3 GetGeometryVector3(Vector3 vector3)
        {
            GeometryVector3 geometryVector3 = new GeometryVector3();

            geometryVector3.x = vector3.x;
            geometryVector3.y = vector3.y;
            geometryVector3.z = vector3.z;
            return(geometryVector3);
        }
        void Start()
        {
            // The ROS part
            rosSocket     = transform.GetComponent <RosConnector>().RosSocket;
            publicationId = rosSocket.Advertize(topic, "geometry_msgs/Vector3");
            message       = new GeometryVector3();
            //sequenceId = 0;
            //message.x = 0;   // -y in ROS
            //message.y = 0;   // z in ROS
            //message.z = 0 ;  //x in ROS

            //rosSocket.Publish(publicationId, message);
        }
Пример #4
0
 public Marker()
 {
     header = new StandardHeader();
     ns     = "";
     id     = 0;
     type   = 0;
     action = 0;
     pose   = new GeometryPose();
     scale  = new GeometryVector3();
     color  = new ColorRGBA();
     //duration lifetime ???
     frame_locked  = false;
     points        = new GeometryPoint[0];
     colors        = new ColorRGBA[0];
     text          = "";
     mesh_resource = "";
     mesh_use_embedded_materials = false;
 }
Пример #5
0
 public GeometryAccel()
 {
     linear  = new GeometryVector3();
     angular = new GeometryVector3();
 }
Пример #6
0
 public GeometryTwist()
 {
     linear  = new GeometryVector3();
     angular = new GeometryVector3();
 }
Пример #7
0
 public GeometryTransform()
 {
     translation = new GeometryVector3();
     rotation    = new GeometryQuaternion();
 }
Пример #8
0
 public GeometryWrench()
 {
     force  = new GeometryVector3();
     torque = new GeometryVector3();
 }