Skip to content
Snippets Groups Projects
Commit 1be35e35 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Fix robot unit data conversion

parent 944f8419
No related branches found
No related tags found
1 merge request!188ArMem Updates
......@@ -6,6 +6,8 @@
#include <RobotAPI/libraries/RobotUnitDataStreamingReceiver/RobotUnitDataStreamingReceiver.h>
#include <RobotAPI/libraries/aron/core/navigator/data/container/Dict.h>
#include <RobotAPI/libraries/armem_robot_state/server/proprioception/aron_conversions.h>
#include "ConverterTools.h"
......@@ -40,7 +42,7 @@ namespace armarx::armem::server::robot_state::proprioception
void Armar6Converter::process(
arondto::Proprioception dto,
arondto::Proprioception& dto,
const std::string& entryName,
const ConverterValue& value)
{
......@@ -70,8 +72,7 @@ namespace armarx::armem::server::robot_state::proprioception
{
// Joint
bool processed = processJointEntry(dto.joints, split, value);
if (!processed)
if (not processed)
{
// Fallback: Put in extra.
const std::vector<std::string> comps{simox::alg::advanced(split.begin(), 1), split.end()};
......@@ -86,6 +87,8 @@ namespace armarx::armem::server::robot_state::proprioception
dto.extraLongs[key] = getValueAs<long>(value);
break;
default:
ARMARX_DEBUG << "Cannot handle extra field '" << key << "' of type "
<< RobotUnitDataStreaming::DataEntryNames.to_name(value.entry.type);
break;
}
}
......@@ -201,7 +204,7 @@ namespace armarx::armem::server::robot_state::proprioception
}
else
{
ARMARX_DEBUG << "Ignoring unhandled field: '" << simox::alg::join(split, ".") << "'";
// ARMARX_DEBUG << "Ignoring unhandled field: '" << simox::alg::join(split, ".") << "'";
return false;
}
}
......
......@@ -33,7 +33,7 @@ namespace armarx::armem::server::robot_state::proprioception
protected:
void process(arondto::Proprioception dto, const std::string& entryName, const ConverterValue& value);
void process(arondto::Proprioception& dto, const std::string& entryName, const ConverterValue& value);
......
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