00001 // -*- C++ -*- 00002 #include <iostream> 00003 #include "ReferenceForceUpdaterService_impl.h" 00004 #include "ReferenceForceUpdater.h" 00005 00006 ReferenceForceUpdaterService_impl::ReferenceForceUpdaterService_impl() 00007 { 00008 } 00009 00010 ReferenceForceUpdaterService_impl::~ReferenceForceUpdaterService_impl() 00011 { 00012 } 00013 00014 CORBA::Boolean ReferenceForceUpdaterService_impl::setReferenceForceUpdaterParam(const char *i_name_, const OpenHRP::ReferenceForceUpdaterService::ReferenceForceUpdaterParam& i_param) 00015 { 00016 return m_rfu->setReferenceForceUpdaterParam(std::string(i_name_), i_param); 00017 }; 00018 00019 CORBA::Boolean ReferenceForceUpdaterService_impl::getReferenceForceUpdaterParam(const char *i_name_, OpenHRP::ReferenceForceUpdaterService::ReferenceForceUpdaterParam_out i_param) 00020 { 00021 i_param = new OpenHRP::ReferenceForceUpdaterService::ReferenceForceUpdaterParam(); 00022 i_param->motion_dir.length(3); 00023 return m_rfu->getReferenceForceUpdaterParam(std::string(i_name_), i_param); 00024 }; 00025 00026 CORBA::Boolean ReferenceForceUpdaterService_impl::startReferenceForceUpdater(const char *i_name_) 00027 { 00028 return m_rfu->startReferenceForceUpdater(std::string(i_name_)); 00029 }; 00030 00031 CORBA::Boolean ReferenceForceUpdaterService_impl::stopReferenceForceUpdater(const char *i_name_) 00032 { 00033 return m_rfu->stopReferenceForceUpdater(std::string(i_name_)); 00034 }; 00035 00036 void ReferenceForceUpdaterService_impl::rfu(ReferenceForceUpdater *i_rfu) 00037 { 00038 m_rfu = i_rfu; 00039 }; 00040