1
package jp.go.aist.hrp.simulator;
3
import javax.vecmath.*;
5
import com.sun.j3d.loaders.vrml97.impl.*;
8
* AccererationSensorInfoFactoryclass
9
* AccererationSensor�ѡ�
10
* @author K Saito (Kernel Co.,Ltd.)
11
* @version 1.0 (2002/02/25)
13
public class AccelerationSensorInfoFactory
14
extends SensorInfoFactory
16
public void setParam(SensorInfo_impl info,String defName, VrmlSceneEx scene)
18
info.maxValue_ = new double[3];
20
double[] def = {-1,-1,-1};
23
temp = ProtoFieldGettor.getVectorValue(defName, scene, "maxAcceleration",def );
25
info.maxValue_[0] = temp[0];
26
info.maxValue_[1] = temp[1];
27
info.maxValue_[2] = temp[2];
30
public SensorType getType(){
31
return SensorType.ACCELERATION_SENSOR;