Skip to content
Snippets Groups Projects
Commit e9707cdb authored by Mirko Wächter's avatar Mirko Wächter
Browse files

improved performance of KinematicUnitObserver

parent 5fde46c0
No related branches found
No related tags found
No related merge requests found
......@@ -260,12 +260,13 @@ void KinematicUnitObserver::reportJointStatuses(const NameStatusMap& jointStatus
void KinematicUnitObserver::nameValueMapToDataFields(const std::string& channelName, const NameValueMap& nameValueMap)
{
NameValueMap::const_iterator iter = nameValueMap.begin();
StringVariantBaseMap map;
while (iter != nameValueMap.end())
{
setDataFieldFlatCopy(channelName, iter->first, new Variant(iter->second));
map[iter->first] = new Variant(iter->second);
iter++;
}
setDataFieldsFlatCopy(channelName, map);
}
PropertyDefinitionsPtr KinematicUnitObserver::createPropertyDefinitions()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment