Skip to content

Commit

Permalink
[Stabilizer/Stabilizer.cpp] set contact states for all the limbs
Browse files Browse the repository at this point in the history
  • Loading branch information
eisoku9618 committed Oct 23, 2015
1 parent f1a428e commit 381051f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rtc/Stabilizer/Stabilizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,10 @@ void Stabilizer::getActualParameters ()
hrp::Vector3 tmp_act_cog = act_cog;
act_cp(2) = act_zmp(2);
// set actual contact states
m_actContactStates.data[contact_states_index_map["rleg"]] = isContact(contact_states_index_map["rleg"]);
m_actContactStates.data[contact_states_index_map["lleg"]] = isContact(contact_states_index_map["lleg"]);
for (size_t i = 0; i < stikp.size(); i++) {
std::string limb_name = stikp[i].ee_name;
m_actContactStates.data[contact_states_index_map[limb_name]] = isContact(contact_states_index_map[limb_name]);
}
// <= Actual world frame

// convert absolute (in st) -> root-link relative
Expand Down

0 comments on commit 381051f

Please sign in to comment.