地形を作成するために、ElevationGridノードで以下の内容で、
body形式とwrl形式の2つのファイルを作成しました。
(floor_asa.body)
format: ChoreonoidBody
formatVersion: 1.0
name: floor_asa
links:
-
name: floor_asa
translation: [ 0, 0, -0.1 ]
jointType: fixed
material: Ground
elements:
-
type: Shape
geometry: { type: ElevationGrid,
xDimension: 4,
zDimension: 5,
xSpacing: 1,
zSpacing: 1,
height: [
0, 0, 0, 0,
0, 1, 1, 0,
1, 2, 2, 1,
0, 1, 1, 0,
0, 0, 0, 0
]
}
appearance: { material: { diffuseColor: [ 0.8, 0.7, 0.3 ] } }
(floor_asa.wrl)
#VRML V2.0 utf8
Shape {
geometry ElevationGrid {
xDimension 4
zDimension 5
xSpacing 1
zSpacing 1
height [
0, 0, 0, 0,
0, 1, 1, 0,
1, 2, 2, 1,
0, 1, 1, 0,
0, 0, 0, 0
]
}
appearance Appearance {
material Material {diffuseColor 0.8 0.7 0.3}
}
}
これらをchoreonoidでボディとして読み込みしたところ、
zDimensionの定義がY軸に、heightの値がZ軸に変換されてしまっているようです。
こちらはバグでしょうか?