Skip to content

Commit

Permalink
Disable use_inside_joint_weight_retrieval by default in ImpedanceCont…
Browse files Browse the repository at this point in the history
…roller, AutoBalancer, Stabilizer to reduce oscillation (#516)
  • Loading branch information
snozawa committed Apr 29, 2015
1 parent aae66ac commit c10f3ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rtc/AutoBalancer/AutoBalancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ RTC::ReturnCode_t AutoBalancer::onInitialize()
coil::stringTo(tmpv[j], end_effectors_str[i*prop_num+6+j].c_str());
}
tp.localR = Eigen::AngleAxis<double>(tmpv[3], hrp::Vector3(tmpv[0], tmpv[1], tmpv[2])).toRotationMatrix(); // rotation in VRML is represented by axis + angle
tp.manip = hrp::JointPathExPtr(new hrp::JointPathEx(m_robot, m_robot->link(ee_base), m_robot->link(ee_target), m_dt));
tp.manip = hrp::JointPathExPtr(new hrp::JointPathEx(m_robot, m_robot->link(ee_base), m_robot->link(ee_target), m_dt, false));
// Fix for toe joint
if (ee_name.find("leg") != std::string::npos && tp.manip->numJoints() == 7) { // leg and 7dof joint (6dof leg +1dof toe)
std::vector<double> optw;
Expand Down
2 changes: 1 addition & 1 deletion rtc/ImpedanceController/ImpedanceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ RTC::ReturnCode_t ImpedanceController::onInitialize()
// 3. Check whether joint path is adequate.
hrp::Link* target_link = m_robot->link(ee_map[ee_name].target_name);
ImpedanceParam p;
p.manip = hrp::JointPathExPtr(new hrp::JointPathEx(m_robot, m_robot->link(base_name_map[ee_name]), target_link, m_dt));
p.manip = hrp::JointPathExPtr(new hrp::JointPathEx(m_robot, m_robot->link(base_name_map[ee_name]), target_link, m_dt, false));
if ( ! p.manip ) {
std::cerr << "[" << m_profile.instance_name << "] Invalid joint path from " << base_name_map[ee_name] << " to " << target_link->name << "!! Impedance param for " << sensor_name << " cannot be added!!" << std::endl;
continue;
Expand Down
2 changes: 1 addition & 1 deletion rtc/Stabilizer/Stabilizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ RTC::ReturnCode_t Stabilizer::onInitialize()
else if (ee_name == "lleg") ikp.sensor_name = "lfsensor";
else ikp.sensor_name = "";
stikp.push_back(ikp);
jpe_v.push_back(hrp::JointPathExPtr(new hrp::JointPathEx(m_robot, m_robot->link(ee_base), m_robot->link(ee_target), dt)));
jpe_v.push_back(hrp::JointPathExPtr(new hrp::JointPathEx(m_robot, m_robot->link(ee_base), m_robot->link(ee_target), dt, false)));
// Fix for toe joint
if (ee_name.find("leg") != std::string::npos && jpe_v.back()->numJoints() == 7) { // leg and has 7dof joint (6dof leg +1dof toe)
std::vector<double> optw;
Expand Down

0 comments on commit c10f3ef

Please sign in to comment.