コード例 #1
0
ファイル: Log.cs プロジェクト: garaemon/RosSharp
 ///<exclude/>
 public Log()
 {
     header = new Header();
     name = string.Empty;
     msg = string.Empty;
     file = string.Empty;
     function = string.Empty;
     topics = new List<string>();
 }
コード例 #2
0
ファイル: Marker.cs プロジェクト: terakenxx/TukubaChallenge
 ///<exclude/>
 public Marker()
 {
     header = new Header();
     ns = string.Empty;
     pose = new Pose();
     scale = new Vector3();
     color = new ColorRGBA();
     points = new List<Point>();
     colors = new List<ColorRGBA>();
     text = string.Empty;
     mesh_resource = string.Empty;
 }
コード例 #3
0
ファイル: Header.cs プロジェクト: terakenxx/TukubaChallenge
 ///<exclude/>
 public bool Equals(Header other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.seq.Equals(seq) && other.stamp.Equals(stamp) && other.frame_id.Equals(frame_id);
 }
コード例 #4
0
 ///<exclude/>
 public LaserScan()
 {
     header = new Header();
     ranges = new List<float>();
     intensities = new List<float>();
 }
コード例 #5
0
 ///<exclude/>
 public void Deserialize(BinaryReader br)
 {
     header = new Header(br);
     angle_min = br.ReadSingle();
     angle_max = br.ReadSingle();
     angle_increment = br.ReadSingle();
     time_increment = br.ReadSingle();
     scan_time = br.ReadSingle();
     range_min = br.ReadSingle();
     range_max = br.ReadSingle();
     ranges = new List<float>(br.ReadInt32()); for(int i=0; i<ranges.Capacity; i++) { var x = br.ReadSingle();ranges.Add(x);}
     intensities = new List<float>(br.ReadInt32()); for(int i=0; i<intensities.Capacity; i++) { var x = br.ReadSingle();intensities.Add(x);}
 }
コード例 #6
0
ファイル: Marker.cs プロジェクト: terakenxx/TukubaChallenge
 ///<exclude/>
 public void Deserialize(BinaryReader br)
 {
     header = new Header(br);
     ns = br.ReadUtf8String();
     id = br.ReadInt32();
     type = br.ReadInt32();
     action = br.ReadInt32();
     pose = new Pose(br);
     scale = new Vector3(br);
     color = new ColorRGBA(br);
     lifetime = br.ReadTimeSpan();
     frame_locked = br.ReadBoolean();
     points = new List<Point>(br.ReadInt32()); for(int i=0; i<points.Capacity; i++) { var x = new Point(br);points.Add(x);}
     colors = new List<ColorRGBA>(br.ReadInt32()); for(int i=0; i<colors.Capacity; i++) { var x = new ColorRGBA(br);colors.Add(x);}
     text = br.ReadUtf8String();
     mesh_resource = br.ReadUtf8String();
     mesh_use_embedded_materials = br.ReadBoolean();
 }
コード例 #7
0
 ///<exclude/>
 public void Deserialize(BinaryReader br)
 {
     header = new Header(br);
     child_frame_id = br.ReadUtf8String();
     transform = new Transform(br);
 }
コード例 #8
0
 ///<exclude/>
 public TransformStamped()
 {
     header = new Header();
     child_frame_id = string.Empty;
     transform = new Transform();
 }
コード例 #9
0
ファイル: Log.cs プロジェクト: garaemon/RosSharp
 ///<exclude/>
 public void Deserialize(BinaryReader br)
 {
     header = new Header(br);
     level = br.ReadByte();
     name = br.ReadUtf8String();
     msg = br.ReadUtf8String();
     file = br.ReadUtf8String();
     function = br.ReadUtf8String();
     line = br.ReadUInt32();
     topics = new List<string>(br.ReadInt32()); for(int i=0; i<topics.Capacity; i++) { var x = br.ReadUtf8String();topics.Add(x);}
 }