예제 #1
0
ReturnType KinectComp::SendEvent( const KinectEvent& event )
{
	EventData<KinectEvent> eventData;
	eventData.setId("KinectEvent");
	eventData.setContentData(event);

	return mKinectOutputEvent.push(&eventData);
}
예제 #2
0
ReturnType HelloMaker::onExecute()
{
	std::string msg("Hello");

	
	ptrMessagePrint->print(msg);

	
	std::string outData("hello");

	std::stringstream pData;	

	DataOut.push("Sample Msg");

	EventData<std::string> outEvent;

	outEvent.setId("messageid");
	outEvent.setContentData("hello world");

	EventOut.push(&outEvent);

	return OPROS_SUCCESS;
}