ImpedanceControllerService_impl.cpp
Go to the documentation of this file.
2 #include "ImpedanceController.h"
3 #include <hrpModel/Body.h>
4 #include <hrpModel/Link.h>
5 
7 {
8 }
9 
11 {
12 }
13 
15 {
16  return m_impedance->startImpedanceController(std::string(i_name_));
17 }
18 
20 {
21  return m_impedance->startImpedanceControllerNoWait(std::string(i_name_));
22 }
23 
25 {
26  return m_impedance->stopImpedanceController(std::string(i_name_));
27 }
28 
30 {
31  return m_impedance->stopImpedanceControllerNoWait(std::string(i_name_));
32 }
33 
34 CORBA::Boolean ImpedanceControllerService_impl::setImpedanceControllerParam(const char *i_name_, const OpenHRP::ImpedanceControllerService::impedanceParam &i_param_)
35 {
36  return m_impedance->setImpedanceControllerParam(std::string(i_name_), i_param_);
37 }
38 
39 CORBA::Boolean ImpedanceControllerService_impl::getImpedanceControllerParam(const char *i_name_, OpenHRP::ImpedanceControllerService::impedanceParam_out i_param_)
40 {
41  i_param_ = new OpenHRP::ImpedanceControllerService::impedanceParam();
42  i_param_->force_gain.length(3);
43  i_param_->moment_gain.length(3);
44  return m_impedance->getImpedanceControllerParam(std::string(i_name_), *i_param_);
45 }
46 
48 {
49  m_impedance->waitImpedanceControllerTransition(std::string(i_name_));
50 }
51 
53 {
54  m_impedance = i_impedance;
55 }
56 
CORBA::Boolean stopImpedanceControllerNoWait(const char *i_name_)
CORBA::Boolean setImpedanceControllerParam(const char *i_name_, const OpenHRP::ImpedanceControllerService::impedanceParam &i_param_)
bool startImpedanceController(const std::string &i_name_)
impedance control component
CORBA::Boolean startImpedanceControllerNoWait(const char *i_name_)
void impedance(ImpedanceController *i_impedance)
bool stopImpedanceControllerNoWait(const std::string &i_name_)
void waitImpedanceControllerTransition(std::string i_name_)
CORBA::Boolean getImpedanceControllerParam(const char *i_name_, OpenHRP::ImpedanceControllerService::impedanceParam_out i_param_)
CORBA::Boolean stopImpedanceController(const char *i_name_)
bool startImpedanceControllerNoWait(const std::string &i_name_)
bool setImpedanceControllerParam(const std::string &i_name_, OpenHRP::ImpedanceControllerService::impedanceParam i_param_)
CORBA::Boolean startImpedanceController(const char *i_name_)
bool getImpedanceControllerParam(const std::string &i_name_, OpenHRP::ImpedanceControllerService::impedanceParam &i_param_)
bool stopImpedanceController(const std::string &i_name_)
void waitImpedanceControllerTransition(const char *i_name_)


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:50