Exemple #1
0
 private ImuMsg(MessageDeserializer deserializer)
 {
     this.header      = Std.HeaderMsg.Deserialize(deserializer);
     this.orientation = Geometry.QuaternionMsg.Deserialize(deserializer);
     deserializer.Read(out this.orientation_covariance, sizeof(double), 9);
     this.angular_velocity = Geometry.Vector3Msg.Deserialize(deserializer);
     deserializer.Read(out this.angular_velocity_covariance, sizeof(double), 9);
     this.linear_acceleration = Geometry.Vector3Msg.Deserialize(deserializer);
     deserializer.Read(out this.linear_acceleration_covariance, sizeof(double), 9);
 }
Exemple #2
0
 public ImuMsg(Std.HeaderMsg header, Geometry.QuaternionMsg orientation, double[] orientation_covariance, Geometry.Vector3Msg angular_velocity, double[] angular_velocity_covariance, Geometry.Vector3Msg linear_acceleration, double[] linear_acceleration_covariance)
 {
     this.header                         = header;
     this.orientation                    = orientation;
     this.orientation_covariance         = orientation_covariance;
     this.angular_velocity               = angular_velocity;
     this.angular_velocity_covariance    = angular_velocity_covariance;
     this.linear_acceleration            = linear_acceleration;
     this.linear_acceleration_covariance = linear_acceleration_covariance;
 }
Exemple #3
0
        //  Row major x, y z

        public ImuMsg()
        {
            this.header                         = new Std.HeaderMsg();
            this.orientation                    = new Geometry.QuaternionMsg();
            this.orientation_covariance         = new double[9];
            this.angular_velocity               = new Geometry.Vector3Msg();
            this.angular_velocity_covariance    = new double[9];
            this.linear_acceleration            = new Geometry.Vector3Msg();
            this.linear_acceleration_covariance = new double[9];
        }
Exemple #4
0
 public MarkerMsg(Std.HeaderMsg header, string ns, int id, int type, int action, Geometry.PoseMsg pose, Geometry.Vector3Msg scale, Std.ColorRGBAMsg color, BuiltinInterfaces.DurationMsg lifetime, bool frame_locked, Geometry.PointMsg[] points, Std.ColorRGBAMsg[] colors, string text, string mesh_resource, bool mesh_use_embedded_materials)
 {
     this.header        = header;
     this.ns            = ns;
     this.id            = id;
     this.type          = type;
     this.action        = action;
     this.pose          = pose;
     this.scale         = scale;
     this.color         = color;
     this.lifetime      = lifetime;
     this.frame_locked  = frame_locked;
     this.points        = points;
     this.colors        = colors;
     this.text          = text;
     this.mesh_resource = mesh_resource;
     this.mesh_use_embedded_materials = mesh_use_embedded_materials;
 }
Exemple #5
0
 public MarkerMsg()
 {
     this.header        = new Std.HeaderMsg();
     this.ns            = "";
     this.id            = 0;
     this.type          = 0;
     this.action        = 0;
     this.pose          = new Geometry.PoseMsg();
     this.scale         = new Geometry.Vector3Msg();
     this.color         = new Std.ColorRGBAMsg();
     this.lifetime      = new BuiltinInterfaces.DurationMsg();
     this.frame_locked  = false;
     this.points        = new Geometry.PointMsg[0];
     this.colors        = new Std.ColorRGBAMsg[0];
     this.text          = "";
     this.mesh_resource = "";
     this.mesh_use_embedded_materials = false;
 }
Exemple #6
0
 private MarkerMsg(MessageDeserializer deserializer)
 {
     this.header = Std.HeaderMsg.Deserialize(deserializer);
     deserializer.Read(out this.ns);
     deserializer.Read(out this.id);
     deserializer.Read(out this.type);
     deserializer.Read(out this.action);
     this.pose     = Geometry.PoseMsg.Deserialize(deserializer);
     this.scale    = Geometry.Vector3Msg.Deserialize(deserializer);
     this.color    = Std.ColorRGBAMsg.Deserialize(deserializer);
     this.lifetime = BuiltinInterfaces.DurationMsg.Deserialize(deserializer);
     deserializer.Read(out this.frame_locked);
     deserializer.Read(out this.points, Geometry.PointMsg.Deserialize, deserializer.ReadLength());
     deserializer.Read(out this.colors, Std.ColorRGBAMsg.Deserialize, deserializer.ReadLength());
     deserializer.Read(out this.text);
     deserializer.Read(out this.mesh_resource);
     deserializer.Read(out this.mesh_use_embedded_materials);
 }
 private MagneticFieldMsg(MessageDeserializer deserializer)
 {
     this.header         = Std.HeaderMsg.Deserialize(deserializer);
     this.magnetic_field = Geometry.Vector3Msg.Deserialize(deserializer);
     deserializer.Read(out this.magnetic_field_covariance, sizeof(double), 9);
 }
 public MagneticFieldMsg(Std.HeaderMsg header, Geometry.Vector3Msg magnetic_field, double[] magnetic_field_covariance)
 {
     this.header                    = header;
     this.magnetic_field            = magnetic_field;
     this.magnetic_field_covariance = magnetic_field_covariance;
 }
        //  Row major about x, y, z axes
        //  0 is interpreted as variance unknown

        public MagneticFieldMsg()
        {
            this.header                    = new Std.HeaderMsg();
            this.magnetic_field            = new Geometry.Vector3Msg();
            this.magnetic_field_covariance = new double[9];
        }