Skip to content

Commit

Permalink
send also xyz-euler angles for head movement analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
gisogrimm committed Oct 26, 2023
1 parent 1c08aea commit 9c48356
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/src/tascarmod_oscheadtracker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ void oscheadtracker_t::update(float qw, float qx, float qy, float qz, float rx,
o0 = q.to_euler_zyx();
if(target) {
lo_send(target, (p + "/quaternion").c_str(), "ffff", q.w, q.x, q.y, q.z);
auto euler_xyz = q.to_euler_xyz();
lo_send(target, (p + "/xyzeuler").c_str(), "fff", euler_xyz.x, euler_xyz.y, euler_xyz.z);
lo_send(target, (p + "/alive").c_str(), "f", tictoc.toc());
}
if(rottarget) {
Expand Down

0 comments on commit 9c48356

Please sign in to comment.