Created
September 9, 2016 13:50
-
-
Save firesurfer/2d1b2fcf347a647c8ada8a8ab837927c to your computer and use it in GitHub Desktop.
Auto generated message by the rosidl_generator_cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is autogenerated code by the rosidl_generator_cs build: 1.0.6096.21917 | |
//Generation date: 09.09.2016 12:15:21 | |
using System; | |
using rclcs; | |
using System.Runtime.InteropServices; | |
namespace test_msgs | |
{ | |
namespace msg | |
{ | |
[StructLayout (LayoutKind.Sequential)] | |
public struct Dummy_t:IRosMessage | |
{ | |
[DllImport ("libtest_msgs__rosidl_typesupport_introspection_c.so")] | |
public static extern IntPtr rosidl_typesupport_introspection_c_get_message__test_msgs__msg__Dummy(); | |
public void Free(){ | |
foreach (var item in this.GetType().GetFields()) { | |
if (typeof(IRosTransportItem).IsAssignableFrom (item.FieldType)) { | |
IRosTransportItem ros_transport_item = (IRosTransportItem)item.GetValue(this); | |
ros_transport_item.Free(); | |
} | |
} | |
} | |
public byte thisisabool; | |
public System.Byte thisisaint8; | |
public System.SByte thisiauint8; | |
public System.Int16 thisisaint16; | |
public System.UInt16 thisisauint16; | |
public System.Int32 thisisaint32; | |
public System.UInt32 thisisauint32; | |
public System.Int64 thisisaint64; | |
public System.UInt64 thisisauint64; | |
public float thisafloat32; | |
public double thisisfloat64; | |
public rosidl_generator_c__String thisisastring; | |
public rosidl_generator_c__String thisisanotherstring; | |
public rosidl_generator_c__primitive_array_bool thisisaboolarray; | |
public rosidl_generator_c__primitive_array_int8 thisisaint8array; | |
public rosidl_generator_c__primitive_array_uint8 thisiauint8array; | |
public rosidl_generator_c__primitive_array_int16 thisisaint16array; | |
public rosidl_generator_c__primitive_array_uint16 thisisauint16array; | |
public rosidl_generator_c__primitive_array_int32 thisisaint32array; | |
public rosidl_generator_c__primitive_array_uint32 thisisauint32array; | |
public rosidl_generator_c__primitive_array_int64 thisisaint64array; | |
public rosidl_generator_c__primitive_array_uint64 thisisauint64array; | |
public rosidl_generator_c__primitive_array_float32 thisafloat32array; | |
public rosidl_generator_c__primitive_array_float64 thisisfloat64array; | |
public rosidl_generator_c__primitive_array_string thisisastringarray; | |
public builtin_interfaces.msg.Time_t thisisatime; | |
} | |
} | |
} | |
namespace test_msgs | |
{ | |
namespace msg | |
{ | |
[StructLayout (LayoutKind.Sequential)] | |
public unsafe class Dummy:MessageWrapper | |
{ | |
private bool disposed = false; | |
private Dummy_t __data; | |
public Dummy(ref Dummy_t _data):this() | |
{ | |
__data = _data; | |
} | |
public Dummy_t Data | |
{ | |
get{return __data;} | |
} | |
public static Type GetMessageType() | |
{ | |
return typeof(Dummy_t); | |
} | |
public override void GetData(out ValueType _data) | |
{ | |
_data = __data; | |
} | |
public override void SetData(ref ValueType _data) | |
{ | |
__data =(Dummy_t)_data; | |
} | |
protected override void Dispose(bool disposing) | |
{ | |
if (disposed) | |
return; | |
if (disposing) { | |
__data.Free(); | |
} | |
disposed = true; | |
} | |
public byte thisisabool | |
{ | |
get{return __data.thisisabool;} | |
set{__data.thisisabool = value;} | |
} | |
public System.Byte thisisaint8 | |
{ | |
get{return __data.thisisaint8;} | |
set{__data.thisisaint8 = value;} | |
} | |
public System.SByte thisiauint8 | |
{ | |
get{return __data.thisiauint8;} | |
set{__data.thisiauint8 = value;} | |
} | |
public System.Int16 thisisaint16 | |
{ | |
get{return __data.thisisaint16;} | |
set{__data.thisisaint16 = value;} | |
} | |
public System.UInt16 thisisauint16 | |
{ | |
get{return __data.thisisauint16;} | |
set{__data.thisisauint16 = value;} | |
} | |
public System.Int32 thisisaint32 | |
{ | |
get{return __data.thisisaint32;} | |
set{__data.thisisaint32 = value;} | |
} | |
public System.UInt32 thisisauint32 | |
{ | |
get{return __data.thisisauint32;} | |
set{__data.thisisauint32 = value;} | |
} | |
public System.Int64 thisisaint64 | |
{ | |
get{return __data.thisisaint64;} | |
set{__data.thisisaint64 = value;} | |
} | |
public System.UInt64 thisisauint64 | |
{ | |
get{return __data.thisisauint64;} | |
set{__data.thisisauint64 = value;} | |
} | |
public float thisafloat32 | |
{ | |
get{return __data.thisafloat32;} | |
set{__data.thisafloat32 = value;} | |
} | |
public double thisisfloat64 | |
{ | |
get{return __data.thisisfloat64;} | |
set{__data.thisisfloat64 = value;} | |
} | |
public string thisisastring | |
{ | |
get{return __data.thisisastring.ToString();} | |
set{__data.thisisastring.Free(); __data.thisisastring = new rosidl_generator_c__String(value);} | |
} | |
public string thisisanotherstring | |
{ | |
get{return __data.thisisanotherstring.ToString();} | |
set{__data.thisisanotherstring.Free(); __data.thisisanotherstring = new rosidl_generator_c__String(value);} | |
} | |
public System.Boolean[] thisisaboolarray | |
{ | |
get{return __data.thisisaboolarray.Array;} | |
set{__data.thisisaboolarray.Free(); __data.thisisaboolarray = new rosidl_generator_c__primitive_array_bool(value);} | |
} | |
public System.Byte[] thisisaint8array | |
{ | |
get{return __data.thisisaint8array.Array;} | |
set{__data.thisisaint8array.Free(); __data.thisisaint8array = new rosidl_generator_c__primitive_array_int8(value);} | |
} | |
public System.SByte[] thisiauint8array | |
{ | |
get{return __data.thisiauint8array.Array;} | |
set{__data.thisiauint8array.Free(); __data.thisiauint8array = new rosidl_generator_c__primitive_array_uint8(value);} | |
} | |
public System.Int16[] thisisaint16array | |
{ | |
get{return __data.thisisaint16array.Array;} | |
set{__data.thisisaint16array.Free(); __data.thisisaint16array = new rosidl_generator_c__primitive_array_int16(value);} | |
} | |
public System.UInt16[] thisisauint16array | |
{ | |
get{return __data.thisisauint16array.Array;} | |
set{__data.thisisauint16array.Free(); __data.thisisauint16array = new rosidl_generator_c__primitive_array_uint16(value);} | |
} | |
public System.Int32[] thisisaint32array | |
{ | |
get{return __data.thisisaint32array.Array;} | |
set{__data.thisisaint32array.Free(); __data.thisisaint32array = new rosidl_generator_c__primitive_array_int32(value);} | |
} | |
public System.UInt32[] thisisauint32array | |
{ | |
get{return __data.thisisauint32array.Array;} | |
set{__data.thisisauint32array.Free(); __data.thisisauint32array = new rosidl_generator_c__primitive_array_uint32(value);} | |
} | |
public System.Int64[] thisisaint64array | |
{ | |
get{return __data.thisisaint64array.Array;} | |
set{__data.thisisaint64array.Free(); __data.thisisaint64array = new rosidl_generator_c__primitive_array_int64(value);} | |
} | |
public System.UInt64[] thisisauint64array | |
{ | |
get{return __data.thisisauint64array.Array;} | |
set{__data.thisisauint64array.Free(); __data.thisisauint64array = new rosidl_generator_c__primitive_array_uint64(value);} | |
} | |
public System.Single[] thisafloat32array | |
{ | |
get{return __data.thisafloat32array.Array;} | |
set{__data.thisafloat32array.Free(); __data.thisafloat32array = new rosidl_generator_c__primitive_array_float32(value);} | |
} | |
public System.Double[] thisisfloat64array | |
{ | |
get{return __data.thisisfloat64array.Array;} | |
set{__data.thisisfloat64array.Free(); __data.thisisfloat64array = new rosidl_generator_c__primitive_array_float64(value);} | |
} | |
public rosidl_generator_c__primitive_array_string thisisastringarray | |
{ | |
get{return __data.thisisastringarray;} | |
set{__data.thisisastringarray = value;} | |
} | |
private builtin_interfaces.msg.Time __thisisatime; | |
public builtin_interfaces.msg.Time thisisatime | |
{ | |
get{return __thisisatime; } | |
} | |
public Dummy() | |
{ | |
__thisisatime =new builtin_interfaces.msg.Time( ref __data.thisisatime); | |
} | |
public override void SyncDataOut() | |
{ | |
__data.thisisatime=__thisisatime.Data; | |
__thisisatime.SyncDataOut(); | |
} | |
public override void SyncDataIn() | |
{ | |
__thisisatime =new builtin_interfaces.msg.Time( ref __data.thisisatime); | |
__thisisatime.SyncDataIn(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment