本文整理汇总了C++中ObjectData::setString方法的典型用法代码示例。如果您正苦于以下问题:C++ ObjectData::setString方法的具体用法?C++ ObjectData::setString怎么用?C++ ObjectData::setString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectData
的用法示例。
在下文中一共展示了ObjectData::setString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: serialize
void RobotConfiguration::serialize(ObjectData& data, IdContext& /*context*/) {
/*Serializable::serialize(data,context);*/
data.setString("name", _name);
data.setString("baseReferenceFrameId", _baseReferenceFrameId);
ArrayData* frameArray = new ArrayData;
for (std::map<std::string, ReferenceFrame*>::iterator it = _frameMap.begin(); it!=_frameMap.end(); it++){
ReferenceFrame* frame=it->second;
frameArray->add(new PointerData(frame));
cerr << "adding frame:" << it->second->name() << endl;
}
data.setField("frames", frameArray);
ArrayData* sensorArray = new ArrayData;
for (std::map<std::string, BaseSensor*>::iterator it = _sensorMap.begin(); it!=_sensorMap.end(); it++){
BaseSensor* sensor=it->second;
sensorArray->add(new PointerData(sensor));
cerr << "adding sensor:" << it->second->topic() << endl;
}
data.setField("sensors", sensorArray);
}
示例2:
void TwoDepthImageAlignerNode::Relation::serialize(ObjectData& data, IdContext& context) {
MapNodeBinaryRelation::serialize(data,context);
data.setPointer("aligner", _aligner);
data.setPointer("converter", _converter);
data.setPointer("currentSensingFrame", _currentSensingFrame);
data.setPointer("referenceSensingFrame", _referenceSensingFrame);
data.setString("topic", _topic);
data.setInt("inliers", _inliers);
data.setFloat("error", _error);
}
示例3: serialize
void PinholeImageSensor::serialize(ObjectData& data, IdContext& context){
BaseSensor::serialize(data, context);
_cameraMatrix.toBOSS(data, "cameraMatrix");
data.setString("distortionModel", _distortionModel);
_distortionParameters.toBOSS(data,"distortionParameters");
}
示例4: serialize
void BaseSensor::serialize(ObjectData& data, IdContext& context){
Identifiable::serialize(data,context);
data.setString("topic", _topic);
data.setPointer("frame", _frame);
}
示例5: serialize
void SensorDataNodeMaker::serialize(ObjectData& data, IdContext& context) {
StreamProcessor::serialize(data,context);
data.setPointer("manager",_mapManager);
data.setString("topic", _topic);
}