FakeLaserScannerConfiguration.java
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011 Google Inc.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
00005  * use this file except in compliance with the License. You may obtain a copy of
00006  * the License at
00007  *
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00012  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
00013  * License for the specific language governing permissions and limitations under
00014  * the License.
00015  */
00016 
00017 package com.github.rosjava.rosjava_extras.hokuyo;
00018 
00022 public class FakeLaserScannerConfiguration implements LaserScannerConfiguration {
00023   @Override
00024   public String getModel() {
00025     return "TestLaserScanner";
00026   }
00027 
00028   @Override
00029   public int getMinimumMeasurment() {
00030     return 0;
00031   }
00032 
00033   @Override
00034   public int getMaximumMeasurement() {
00035     return 1000;
00036   }
00037 
00038   @Override
00039   public int getTotalSteps() {
00040     return 3;
00041   }
00042 
00043   @Override
00044   public int getFirstStep() {
00045     return 0;
00046   }
00047 
00048   @Override
00049   public int getLastStep() {
00050     return 2;
00051   }
00052 
00053   @Override
00054   public int getFrontStep() {
00055     return 1;
00056   }
00057 
00058   @Override
00059   public int getStandardMotorSpeed() {
00060     return 0;
00061   }
00062 
00063   @Override
00064   public float getAngleIncrement() {
00065     return (float) Math.PI;
00066   }
00067 
00068   @Override
00069   public float getMinimumAngle() {
00070     return (float) -Math.PI;
00071   }
00072 
00073   @Override
00074   public float getMaximumAngle() {
00075     return (float) Math.PI;
00076   }
00077 
00078   @Override
00079   public float getTimeIncrement() {
00080     return 0;
00081   }
00082 
00083   @Override
00084   public float getScanTime() {
00085     return 0;
00086   }
00087 }


rosjava_extras
Author(s): Damon Kohler
autogenerated on Thu Aug 27 2015 14:53:42