Skip to content
Snippets Groups Projects
Commit 59327922 authored by Fabian Reister's avatar Fabian Reister
Browse files

aron converter: aron -> arondto

parent 86888d2f
No related branches found
No related tags found
1 merge request!137Armem/dev
...@@ -128,7 +128,7 @@ namespace armarx::armem ...@@ -128,7 +128,7 @@ namespace armarx::armem
ARMARX_WARNING << "No entities!"; ARMARX_WARNING << "No entities!";
} }
const auto convert = [](const aron::LaserScanStamped & aronLaserScanStamped, const EntityInstance & ei) -> LaserScanStamped const auto convert = [](const arondto::LaserScanStamped & aronLaserScanStamped, const EntityInstance & ei) -> LaserScanStamped
{ {
LaserScanStamped laserScanStamped; LaserScanStamped laserScanStamped;
fromAron(aronLaserScanStamped, laserScanStamped); fromAron(aronLaserScanStamped, laserScanStamped);
...@@ -159,7 +159,7 @@ namespace armarx::armem ...@@ -159,7 +159,7 @@ namespace armarx::armem
{ {
for (const auto& entityInstance : entitySnapshot.instances) for (const auto& entityInstance : entitySnapshot.instances)
{ {
const auto o = tryCast<aron::LaserScanStamped>(entityInstance); const auto o = tryCast<arondto::LaserScanStamped>(entityInstance);
if (o) if (o)
{ {
......
...@@ -73,7 +73,7 @@ namespace armarx::armem ...@@ -73,7 +73,7 @@ namespace armarx::armem
update.entityID = entityID; update.entityID = entityID;
update.timeCreated = armem::Time::now(); update.timeCreated = armem::Time::now();
aron::LaserScanStamped aronSensorData; arondto::LaserScanStamped aronSensorData;
// currently only sets the header // currently only sets the header
toAron(laserScan, timestamp, frame, agentName, aronSensorData); toAron(laserScan, timestamp, frame, agentName, aronSensorData);
......
...@@ -16,21 +16,21 @@ namespace armarx ...@@ -16,21 +16,21 @@ namespace armarx
/************ fromAron ************/ /************ fromAron ************/
SensorHeader fromAron(const aron::SensorHeader& aronSensorHeader) SensorHeader fromAron(const arondto::SensorHeader& aronSensorHeader)
{ {
return {.agent = aronSensorHeader.agent, return {.agent = aronSensorHeader.agent,
.frame = aronSensorHeader.frame, .frame = aronSensorHeader.frame,
.timestamp = aronSensorHeader.timestamp}; .timestamp = aronSensorHeader.timestamp};
} }
void fromAron(const aron::LaserScanStamped& aronLaserScan, void fromAron(const arondto::LaserScanStamped& aronLaserScan,
LaserScanStamped& laserScan) LaserScanStamped& laserScan)
{ {
laserScan.header = fromAron(aronLaserScan.header); laserScan.header = fromAron(aronLaserScan.header);
// laserScan.data = fromAron(aronLaserScan.data); // laserScan.data = fromAron(aronLaserScan.data);
} }
void fromAron(const aron::LaserScanStamped& aronLaserScan, LaserScan& laserScan, void fromAron(const arondto::LaserScanStamped& aronLaserScan, LaserScan& laserScan,
std::int64_t& timestamp, std::string& frame, std::int64_t& timestamp, std::string& frame,
std::string& agentName) std::string& agentName)
{ {
...@@ -52,9 +52,9 @@ namespace armarx ...@@ -52,9 +52,9 @@ namespace armarx
// aronLaserScan.scan = toAron(laserScan); // aronLaserScan.scan = toAron(laserScan);
// } // }
aron::SensorHeader toAron(const SensorHeader& sensorHeader) arondto::SensorHeader toAron(const SensorHeader& sensorHeader)
{ {
aron::SensorHeader aronSensorHeader; arondto::SensorHeader aronSensorHeader;
aronSensorHeader.agent = sensorHeader.agent; aronSensorHeader.agent = sensorHeader.agent;
aronSensorHeader.frame = sensorHeader.frame; aronSensorHeader.frame = sensorHeader.frame;
...@@ -64,7 +64,7 @@ namespace armarx ...@@ -64,7 +64,7 @@ namespace armarx
} }
void toAron(const LaserScanStamped& laserScanStamped, void toAron(const LaserScanStamped& laserScanStamped,
aron::LaserScanStamped& aronLaserScanStamped) arondto::LaserScanStamped& aronLaserScanStamped)
{ {
aronLaserScanStamped.header = toAron(laserScanStamped.header); aronLaserScanStamped.header = toAron(laserScanStamped.header);
// toAron(laserScanStamped.data, aronLaserScanStamped.data); // toAron(laserScanStamped.data, aronLaserScanStamped.data);
...@@ -74,7 +74,7 @@ namespace armarx ...@@ -74,7 +74,7 @@ namespace armarx
const std::int64_t& timestamp, const std::int64_t& timestamp,
const std::string& frame, const std::string& frame,
const std::string& agentName, const std::string& agentName,
aron::LaserScanStamped& aronLaserScanStamped) arondto::LaserScanStamped& aronLaserScanStamped)
{ {
const SensorHeader header const SensorHeader header
{ {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
namespace armarx namespace armarx
{ {
namespace aron namespace arondto
{ {
struct LaserScanStamped; struct LaserScanStamped;
} // namespace aron } // namespace aron
...@@ -38,7 +38,7 @@ namespace armarx ...@@ -38,7 +38,7 @@ namespace armarx
struct LaserScanStamped; struct LaserScanStamped;
void fromAron( void fromAron(
const aron::LaserScanStamped& aronLaserScan, const arondto::LaserScanStamped& aronLaserScan,
LaserScan& laserScan, LaserScan& laserScan,
std::int64_t& timestamp, std::int64_t& timestamp,
std::string& frame, std::string& frame,
...@@ -51,14 +51,14 @@ namespace armarx ...@@ -51,14 +51,14 @@ namespace armarx
return aron::converter::AronVectorConverter::ConvertToVector<T>(navigator); return aron::converter::AronVectorConverter::ConvertToVector<T>(navigator);
} }
void fromAron(const aron::LaserScanStamped& aronLaserScan, LaserScanStamped& laserScan); void fromAron(const arondto::LaserScanStamped& aronLaserScan, LaserScanStamped& laserScan);
void toAron( void toAron(
const LaserScan& laserScan, const LaserScan& laserScan,
const std::int64_t& timestamp, const std::int64_t& timestamp,
const std::string& frame, const std::string& frame,
const std::string& agentName, const std::string& agentName,
aron::LaserScanStamped& aronLaserScan); arondto::LaserScanStamped& aronLaserScan);
inline aron::datanavigator::NDArrayNavigatorPtr toAron(const LaserScan& laserScan) inline aron::datanavigator::NDArrayNavigatorPtr toAron(const LaserScan& laserScan)
{ {
......
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