This project is body motion track software.
- T-body correction gyroscope.
-
Receive hardware signo and calculate motion frame. -
Sending frame motion to blender client script. -
Select key log frame and smooth between keyframes logs.
- smooth keyframes api
/keyframe/smooth_logs
. passing value byGET
method. it will find all keyframes timestamp, each timestamp will add, sub a microsecond then search allaction_log
in this range and avg the logs vector. range config bytime_range
. - smooth keyframes api
/keyframe/smooth_logs
. will also calculate between keyframes, and split to multiple parts config bysplit_parts
and range bysplit_range
. eg:split_parts=[0.25,0.5,0.75]&split_range=0.1
it will match 24% to 26% range logs vector in keyframes gap and avg it. - clean up logger
/record/reset_log
. you need to passingconfirm=true
to execute it. - batch create logger
/record/api/batch/create/action_log/
passing value liketarget_id=1,2,3&target_type=1,1,1&x=1,2,3&y=1,2,3&z=1,2,3×tamp=1,1,1
or sametarget_type
target_id=1,2,3&target_type=1&x=1,2,3&y=1,2,3&z=1,2,3×tamp=1,1,1
or same id and typetarget_id=1&target_type=1&x=1,2,3&y=1,2,3&z=1,2,3×tamp=1,1,1
- setup baseline by record action logs
/record/setup/baseline
it will average all five seconds vectors. this data not include before three seconds ending data.
init script
filename = "path_project/blender/main.py"
exec(compile(open(filename).read(), filename, 'exec'))
- to auto enable, disable hardware signal recording panel
/record/panel
- hardware connect panel
/record/hardware/connect/status