"KarlSims 2014-02-26"의 두 판 사이의 차이
jjuiddong
3번째 줄: | 3번째 줄: | ||
[[File:Graphic_edit_system8_1.png|center|thumb|400px]] | [[File:Graphic_edit_system8_1.png|center|thumb|400px]] | ||
[[File:Graphic_edit_system8_2.png|center|thumb|400px]] | [[File:Graphic_edit_system8_2.png|center|thumb|400px]] | ||
+ | |||
+ | |||
+ | === Genotype Script === | ||
+ | |||
+ | Arm1( box, vec3(0.7,0.2,0.1), material(red), mass(1) ) | ||
+ | |||
+ | Sensor( vision, vec3(0.05,0.2,0.05), material(red), mass(1) ) | ||
+ | |||
+ | body( box, vec3(0.3,0.5,0.1), material(yellow), mass(1), | ||
+ | |||
+ | joint( revolute, quat(1.57075,vec3(0,0,1)), quat(1.57075,vec3(0,0,1)), | ||
+ | vec3(0,-1,0), | ||
+ | limit(-0.785375, 0.785375, 0.1), | ||
+ | velocity(10), | ||
+ | period(10), | ||
+ | Arm1 | ||
+ | ), | ||
+ | joint( revolute, quat(1.57075,vec3(0,0,1)), quat(1.57075,vec3(0,0,1)), | ||
+ | vec3(0,1,0), | ||
+ | limit(-0.785375, 0.785375, 0.1), | ||
+ | velocity(15), | ||
+ | period(20), | ||
+ | Arm1 | ||
+ | ), | ||
+ | joint( revolute, quat(1.57075,vec3(0,0,1)), quat(1.57075,vec3(0,1,0)), | ||
+ | vec3(0,0,-0.5), | ||
+ | limit(-0.785375, 0.785375, 0.1), | ||
+ | velocity(15), | ||
+ | period(20), | ||
+ | Arm1 | ||
+ | ), | ||
+ | |||
+ | joint( revolute, quat(), quat(), vec3(0,1.1,0), | ||
+ | limit(-0.385375, 0.385375, 0.1), | ||
+ | velocity(1), | ||
+ | period(5), | ||
+ | body | ||
+ | ) | ||
+ | ) | ||
+ | |||
+ | main( sphere, vec3(0.2,0.2,0.2), material(yellow), mass(1), | ||
+ | |||
+ | sensor( vision, quat(), quat(), vec3(0,-0.3,0), | ||
+ | limit(-0.385375, 0.385375, 0.1), | ||
+ | velocity(1), | ||
+ | period(1), | ||
+ | Sensor | ||
+ | ), | ||
+ | |||
+ | joint( revolute, quat(), quat(), vec3(0,1.1,0), | ||
+ | limit(-0.385375, 0.385375, 0.1), | ||
+ | velocity(1), | ||
+ | period(5), | ||
+ | body | ||
+ | ) | ||
+ | ) |
2014년 2월 26일 (수) 12:51 판
Genotype 3D Diagram
- Graphic Edit System
Genotype Script
Arm1( box, vec3(0.7,0.2,0.1), material(red), mass(1) ) Sensor( vision, vec3(0.05,0.2,0.05), material(red), mass(1) ) body( box, vec3(0.3,0.5,0.1), material(yellow), mass(1), joint( revolute, quat(1.57075,vec3(0,0,1)), quat(1.57075,vec3(0,0,1)), vec3(0,-1,0), limit(-0.785375, 0.785375, 0.1), velocity(10), period(10), Arm1 ), joint( revolute, quat(1.57075,vec3(0,0,1)), quat(1.57075,vec3(0,0,1)), vec3(0,1,0), limit(-0.785375, 0.785375, 0.1), velocity(15), period(20), Arm1 ), joint( revolute, quat(1.57075,vec3(0,0,1)), quat(1.57075,vec3(0,1,0)), vec3(0,0,-0.5), limit(-0.785375, 0.785375, 0.1), velocity(15), period(20), Arm1 ), joint( revolute, quat(), quat(), vec3(0,1.1,0), limit(-0.385375, 0.385375, 0.1), velocity(1), period(5), body ) ) main( sphere, vec3(0.2,0.2,0.2), material(yellow), mass(1), sensor( vision, quat(), quat(), vec3(0,-0.3,0), limit(-0.385375, 0.385375, 0.1), velocity(1), period(1), Sensor ), joint( revolute, quat(), quat(), vec3(0,1.1,0), limit(-0.385375, 0.385375, 0.1), velocity(1), period(5), body )
)