本文整理汇总了C++中OutputPort::setDataSample方法的典型用法代码示例。如果您正苦于以下问题:C++ OutputPort::setDataSample方法的具体用法?C++ OutputPort::setDataSample怎么用?C++ OutputPort::setDataSample使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OutputPort
的用法示例。
在下文中一共展示了OutputPort::setDataSample方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: configureHook
bool configureHook() {
object_coordinates_Pose.setOrigin( tf::Vector3(1,2, 0.0) );
object_coordinates_Pose.setRotation( tf::createQuaternionFromRPY(0.75, 0, 0) );
object_PoseTF = geometric_semantics::Pose<tf::Pose> (object_PoseCoordinatesSemantics, object_coordinates_Pose);
object_PoseTF_msg = conversions_geometric_msgs::PoseTFToMsg(object_PoseTF);
outPortPose.setDataSample(object_PoseTF_msg);
log(Debug) << "Geometric_semantics_component_tutorial_publisher configured !" <<endlog();
return true;
}
开发者ID:tdelaet,项目名称:geometric_relations_semantics_tutorial,代码行数:10,代码来源:geometric_semantics_component-tutorial-publisher.hpp
示例2: TestTaskContext
TestTaskContext(std::string name)
: TaskContext(name),
hello("Hello", "The hello thing", "World"),
dwport("D2Port"),
drport("D1Port"),
init(10,1.0)
{
this->properties()->addProperty( hello );
this->ports()->addPort( drport );
this->ports()->addPort( dwport );
pos = 10;
Logger::log() << Logger::Info << "TestTaskContext initialized" << Logger::endl;
// write initial value.
dwport.setDataSample( init );
}
示例3: configureHook
bool configureHook() {
dataOutPort.setDataSample(dataVar);
dummyOutPort.setDataSample(dataVar);
//std::cout << "Orocos_process_spam configured !" << std::endl;
return true;
}