feat(pybot): 录制脚本 record_stand.mt——stand 多姿态序列(微动作分解)
基于 std.mt 扩展:@Camera 640x480 + MPU6050 绑定 + 5 行 @Action(delay=200) 生成 81 步 actpred 格式 episode(首行不分解 + 4×20 微步插值)
This commit is contained in:
1 parent
a2c3a579fd
commit
af0ff56848
1 file changed
+56
@@ -0,0 +1,56 @@
|
||||
# 录制用脚本:stand → 多姿态序列(微动作分解 + 合成帧 + IMU 占位)
|
||||
# 首行不分解(1 步),后续 4 行 delay=200 → 各 20 微步,共 81 步
|
||||
@Alias
|
||||
name alias;
|
||||
A angle;
|
||||
F frequency;
|
||||
@
|
||||
|
||||
@I2C
|
||||
name path;
|
||||
i2c-0 /dev/i2c-0;
|
||||
i2c-1 /dev/i2c-1;
|
||||
@
|
||||
|
||||
@PCA9685
|
||||
name I2C address;
|
||||
pca9685-0 i2c-1 0x40;
|
||||
@
|
||||
|
||||
@MPU6050_BIND
|
||||
name I2C addr;
|
||||
mpu6050-0 i2c-1 0x68;
|
||||
@
|
||||
|
||||
@Speaker
|
||||
name channels sample_rate volumn max_f min_f;
|
||||
spk 2 48000 0.6 5000 -;
|
||||
@
|
||||
|
||||
@Servo
|
||||
name max min offset controller channel;
|
||||
s1 90 - - pca9685-0 0; # rb0
|
||||
s2 180 - - - 1; # rb1
|
||||
s3 -90 - - - 2; # lb0
|
||||
s4 -180 - - - 3; # lb1
|
||||
s5 90 - - - 4; # lf0
|
||||
s6 180 - - - 5; # lf1
|
||||
s7 -90 - - - 6; # rf0
|
||||
s8 -180 - - - 7; # rf1
|
||||
s9 180 - - - 8; # cam0
|
||||
s10 180 - - - 9; # cam1
|
||||
@
|
||||
|
||||
@Camera
|
||||
name width height framerate capacity;
|
||||
cam0 640 480 30 8;
|
||||
@
|
||||
|
||||
@Action
|
||||
s1.A s2.A s3.A s4.A s5.A s6.A s7.A s8.A s9.A s10.A spk.F spk.delay;
|
||||
45 - 45 - 45 - 45 - 90 90 10 200;
|
||||
60 - 60 - 60 - 60 - 90 90 - 200;
|
||||
45 - 45 - 45 - 45 - 90 90 - 200;
|
||||
30 - 30 - 30 - 30 - 90 90 - 200;
|
||||
45 - 45 - 45 - 45 - 90 90 - 200;
|
||||
@
|
||||
Reference in new issue
Block a user