本文整理汇总了C++中Arm::IOComponentName方法的典型用法代码示例。如果您正苦于以下问题:C++ Arm::IOComponentName方法的具体用法?C++ Arm::IOComponentName怎么用?C++ Arm::IOComponentName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Arm
的用法示例。
在下文中一共展示了Arm::IOComponentName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Connect
bool mtsIntuitiveResearchKitConsole::Connect(void)
{
mtsManagerLocal * componentManager = mtsManagerLocal::GetInstance();
const ArmList::iterator armsEnd = mArms.end();
for (ArmList::iterator armIter = mArms.begin();
armIter != armsEnd;
++armIter) {
Arm * arm = armIter->second;
// IO
if (arm->IOInterfaceRequired) {
componentManager->Connect(this->GetName(), "IO-" + arm->Name(),
arm->IOComponentName(), arm->Name());
}
// PID
if (arm->mType != Arm::ARM_SUJ) {
if (arm->PIDInterfaceRequired) {
componentManager->Connect(this->GetName(), "PID-" + arm->Name(),
arm->PIDComponentName(), "Controller");
}
}
// arm interface
if (arm->ArmInterfaceRequired) {
componentManager->Connect(this->GetName(), arm->Name(),
arm->Name(), "Robot");
}
// arm specific interfaces
arm->Connect();
// connect to SUJ if needed
if (arm->SUJInterfaceRequiredFromIO && arm->SUJInterfaceRequiredToSUJ) {
componentManager->Connect(this->GetName(), arm->SUJInterfaceRequiredToSUJ->GetName(),
"SUJ", arm->Name());
componentManager->Connect(this->GetName(), arm->SUJInterfaceRequiredFromIO->GetName(),
arm->IOComponentName(), arm->Name() + "-SUJClutch");
}
}
const TeleopList::iterator teleopsEnd = mTeleops.end();
for (TeleopList::iterator teleopIter = mTeleops.begin();
teleopIter != teleopsEnd;
++teleopIter) {
TeleopPSM * teleop = teleopIter->second;
teleop->Connect();
}
// connect the foot pedals if needed
if (mHasFootpedals) {
this->ConnectFootpedalInterfaces();
}
// connect interfaces to retrieve base frame from ECM SUJ and send event to SUJ
if (mSUJECMInterfaceRequired
&& mECMBaseFrameInterfaceProvided) {
componentManager->Connect(this->GetName(), "BaseFrame", "SUJ", "ECM");
componentManager->Connect("SUJ", "BaseFrame", this->GetName(), "ECMBaseFrame");
}
return true;
}