private static Vector3 getVector3(GeometryVector3 geometryVector3) { return(new Vector3( geometryVector3.x, geometryVector3.y, geometryVector3.z)); }
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); }
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; }
public GeometryAccel() { linear = new GeometryVector3(); angular = new GeometryVector3(); }
public GeometryTwist() { linear = new GeometryVector3(); angular = new GeometryVector3(); }
public GeometryTransform() { translation = new GeometryVector3(); rotation = new GeometryQuaternion(); }
public GeometryWrench() { force = new GeometryVector3(); torque = new GeometryVector3(); }