Skip to content

Commit

Permalink
Merge pull request #57 from Naoki-Hiraoka/auto-stabilizer-stamp
Browse files Browse the repository at this point in the history
[AutoBalancer] add m_landingTarget.tm and m_endCogState.tm
  • Loading branch information
YutaKojio authored Mar 8, 2022
2 parents 7ff863f + ed6e14b commit 49aeca8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rtc/AutoBalancer/AutoBalancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1089,12 +1089,14 @@ RTC::ReturnCode_t AutoBalancer::onExecute(RTC::UniqueId ec_id)
hrp::Vector3 pos, vel;
int l_r; // rleg: 0, lleg: 1
gg->get_rel_landing_pos(pos, l_r);
m_landingTarget.tm = m_qRef.tm;
m_landingTarget.data.x = pos(0) + off(0);
m_landingTarget.data.y = pos(1) + off(1);
m_landingTarget.data.z = pos(2) + off(2);
m_landingTarget.data.l_r = l_r;
m_landingTargetOut.write();
gg->get_end_cog_state(pos, vel, l_r);
m_endCogState.tm = m_qRef.tm;
m_endCogState.data.x = pos(0);
m_endCogState.data.y = pos(1);
m_endCogState.data.z = pos(2);
Expand Down

0 comments on commit 49aeca8

Please sign in to comment.