Beispiel #1
0
 protected override void InitializeMessages()
 {
     sonarStamped                             = new messages.SonarStamped();
     sonarStamped.Time                        = new messages.Time();
     sonarStamped.Sonar                       = new messages.Sonar();
     sonarStamped.Sonar.WorldPose             = new messages.Pose();
     sonarStamped.Sonar.WorldPose.Position    = new messages.Vector3d();
     sonarStamped.Sonar.WorldPose.Orientation = new messages.Quaternion();
     sonarStamped.Sonar.Contact               = new messages.Vector3d();
 }
        protected override void InitializeMessages()
        {
            sonarStamped                             = new messages.SonarStamped();
            sonarStamped.Time                        = new messages.Time();
            sonarStamped.Sonar                       = new messages.Sonar();
            sonarStamped.Sonar.WorldPose             = new messages.Pose();
            sonarStamped.Sonar.WorldPose.Position    = new messages.Vector3d();
            sonarStamped.Sonar.WorldPose.Orientation = new messages.Quaternion();
            sonarStamped.Sonar.Contact               = new messages.Vector3d();

            var sonar = sonarStamped.Sonar;

            sonar.Frame    = deviceName;
            sonar.Radius   = radius;
            sonar.RangeMin = rangeMin;
            sonar.RangeMax = rangeMax;
        }