Add custom msg for fire spawn

feat/dark_sim
Leushina Vlada 1 month ago
parent a3ca71e32a
commit 26e7a83761

3
.gitignore vendored

@ -203,6 +203,7 @@ InitTestScene*.unity*
!/[Aa]ssets/Scenes
!/[Aa]ssets/Resources
!/[Aa]ssets/CustomLibs
!/[Aa]ssets/RosMessages
!/[Aa]ssets/../*.meta
@ -214,4 +215,4 @@ README.md.meta
# big stuff
*.obj.*
*.obj
*.obj

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3d90789e91839a8f4bdd696d8bca9a01
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fe6f1b1c037796074bf72701e2dd3ed4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -0,0 +1,78 @@
//Do not edit! This file was generated by Unity-ROS MessageGeneration.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Unity.Robotics.ROSTCPConnector.MessageGeneration;
namespace RosMessageTypes.GenLocationsOnMesh
{
[Serializable]
public class LocationsOnMeshMsg : Message
{
public const string k_RosMessageName = "gen_locations_on_mesh_msgs/LocationsOnMesh";
public override string RosMessageName => k_RosMessageName;
public uint[] location_id;
public double[] x;
public double[] y;
public double[] z;
public LocationsOnMeshMsg()
{
this.location_id = new uint[0];
this.x = new double[0];
this.y = new double[0];
this.z = new double[0];
}
public LocationsOnMeshMsg(uint[] location_id, double[] x, double[] y, double[] z)
{
this.location_id = location_id;
this.x = x;
this.y = y;
this.z = z;
}
public static LocationsOnMeshMsg Deserialize(MessageDeserializer deserializer) => new LocationsOnMeshMsg(deserializer);
private LocationsOnMeshMsg(MessageDeserializer deserializer)
{
deserializer.Read(out this.location_id, sizeof(uint), deserializer.ReadLength());
deserializer.Read(out this.x, sizeof(double), deserializer.ReadLength());
deserializer.Read(out this.y, sizeof(double), deserializer.ReadLength());
deserializer.Read(out this.z, sizeof(double), deserializer.ReadLength());
}
public override void SerializeTo(MessageSerializer serializer)
{
serializer.WriteLength(this.location_id);
serializer.Write(this.location_id);
serializer.WriteLength(this.x);
serializer.Write(this.x);
serializer.WriteLength(this.y);
serializer.Write(this.y);
serializer.WriteLength(this.z);
serializer.Write(this.z);
}
public override string ToString()
{
return "LocationsOnMeshMsg: " +
"\nlocation_id: " + System.String.Join(", ", location_id.ToList()) +
"\nx: " + System.String.Join(", ", x.ToList()) +
"\ny: " + System.String.Join(", ", y.ToList()) +
"\nz: " + System.String.Join(", ", z.ToList());
}
#if UNITY_EDITOR
[UnityEditor.InitializeOnLoadMethod]
#else
[UnityEngine.RuntimeInitializeOnLoadMethod]
#endif
public static void Register()
{
MessageRegistry.Register(k_RosMessageName, Deserialize);
}
}
}

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 3fc5ba3014b704832ae2e4bb88e9718e

@ -138517,7 +138517,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
objectCollector: {fileID: 1329767849}
objectToSpawn: {fileID: 1781949194303238870, guid: e92a0207ed6f749459a3646c2aaf3cd9, type: 3}
objectToSpawn: {fileID: 8295591563862043295, guid: e01f2e62cf41a3449be2dade3b2c2d79, type: 3}
topic_name: /locations
useNamespace: 0
--- !u!4 &1329767851

Loading…
Cancel
Save