Skip to content

Commit

Permalink
go to release_mode when deactivated in EmergencyStopper
Browse files Browse the repository at this point in the history
  • Loading branch information
mmurooka committed Jul 25, 2015
1 parent dad1a93 commit 1523cff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rtc/EmergencyStopper/EmergencyStopper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ RTC::ReturnCode_t EmergencyStopper::onActivated(RTC::UniqueId ec_id)
RTC::ReturnCode_t EmergencyStopper::onDeactivated(RTC::UniqueId ec_id)
{
std::cout << m_profile.instance_name<< ": onDeactivated(" << ec_id << ")" << std::endl;
if (is_stop_mode) {
is_stop_mode = false;
recover_time = 0;
m_interpolator->setGoal(m_qRef.data.get_buffer(), m_dt);
m_interpolator->get(m_q.data.get_buffer());
}
return RTC::RTC_OK;
}

Expand Down

0 comments on commit 1523cff

Please sign in to comment.