16 #ifndef OPENHRP_CONTROLLER_BRIDGE_VIRTUAL_ROBOT_RTC_H_INCLUDED 17 #define OPENHRP_CONTROLLER_BRIDGE_VIRTUAL_ROBOT_RTC_H_INCLUDED 22 #include <rtm/DataFlowComponentBase.h> 61 #ifdef OPENRTM_VERSION_042 64 template <
class TOutPortHandler>
66 const std::string& name = handler->portName;
72 template <
class TInPortHandler>
74 const std::string& name = handler->portName;
83 template <
class TOutPortHandler>
85 const std::string& name = handler->portName;
87 if (!
addOutPort(name.c_str(), handler->outPort))
return false;
93 template <
class TInPortHandler>
95 const std::string& name = handler->portName;
97 if (!
addInPort(name.c_str(), handler->inPort))
return false;
bool createInPortHandler(PortInfo &portInfo)
std::map< std::string, OutPortHandlerPtr > OutPortHandlerMap
void readDataFromInPorts(Controller_impl *controller)
void writeDataToOutPorts(Controller_impl *controller)
void outputDataToSimulator(Controller_impl *controller)
void addConnectedRtcs(Port_Service_Ptr_Type portRef, RTC::RTCList &rtcList, std::set< std::string > &foundRtcNames)
boost::shared_ptr< InPortHandler > InPortHandlerPtr
PortHandlerPtr getPortHandler(const std::string &name)
png_infop png_charpp name
std::map< std::string, InPortHandlerPtr > InPortHandlerMap
boost::shared_ptr< OutPortHandler > OutPortHandlerPtr
VirtualRobotRTC(RTC::Manager *manager)
bool addOutPort(const char *name, OutPortBase &outport)
boost::shared_ptr< PortHandler > PortHandlerPtr
void inputDataFromSimulator(Controller_impl *controller)
bool checkOutPortStepTime(double controlTimeStep)
InPortHandlerMap inPortHandlers
void registerInPort(const char *name, InPortBase &inport)
void updatePortObjectRefs()
static void registerFactory(RTC::Manager *manager, const char *componentTypeName)
RTC::RTCList * getConnectedRtcs()
RTC::PortService_ptr Port_Service_Ptr_Type
bool registerInPortHandler(TInPortHandler *handler)
bool addInPort(const char *name, InPortBase &inport)
void registerOutPort(const char *name, OutPortBase &outport)
bool registerOutPortHandler(TOutPortHandler *handler)
OutPortHandlerMap outPortHandlers
RTC::ReturnCode_t onInitialize()
bool createOutPortHandler(PortInfo &portInfo)