~hrg/hrg-packaging/openhrp3

« back to all changes in this revision

Viewing changes to server/ModelLoader.old/ModelLoader/AccelerationSensorInfoFactory.java

  • Committer: nakaoka
  • Date: 2008-07-06 15:26:51 UTC
  • Revision ID: git-v1:fbb3ce756bbcedb021fed5d474b58ef092ea8b42
コンパイルに cmake を使用するようにし、MakefileをCMakeLists.txt で置き換えた。

Show diffs side-by-side

added added

removed removed

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