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

fixing merge

parent 040a2ee3
No related branches found
No related tags found
1 merge request!266Feature/armem laser scans
This commit is part of merge request !266. Comments created here will be created in the context of that merge request.
......@@ -69,7 +69,7 @@ namespace armarx::armem::laser_scans
aronSensorHeader.agent = sensorHeader.agent;
aronSensorHeader.frame = sensorHeader.frame;
toAron(aronSensorHeader.timestamp, sensorHeader.timestamp);
aron::toAron(aronSensorHeader.timestamp, sensorHeader.timestamp);
return aronSensorHeader;
}
......
......@@ -31,40 +31,7 @@ namespace armarx::armem::vision
{
return timestamp.toMicroSecondsSinceEpoch();
}
arondto::SensorHeader
toAron(const SensorHeader& sensorHeader)
{
arondto::SensorHeader aronSensorHeader;
aron::toAron(aronSensorHeader.agent, sensorHeader.agent);
aron::toAron(aronSensorHeader.frame, sensorHeader.frame);
aron::toAron(aronSensorHeader.timestamp, sensorHeader.timestamp);
return aronSensorHeader;
}
void
toAron(const LaserScanStamped& laserScanStamped,
arondto::LaserScanStamped& aronLaserScanStamped)
{
aronLaserScanStamped.header = toAron(laserScanStamped.header);
// toAron(laserScanStamped.data, aronLaserScanStamped.data);
}
void
toAron(const LaserScan& laserScan,
const armem::Time& timestamp,
const std::string& frame,
const std::string& agentName,
arondto::LaserScanStamped& aronLaserScanStamped)
{
const SensorHeader header{.agent = agentName, .frame = frame, .timestamp = timestamp};
const LaserScanStamped laserScanStamped{.header = header, .data = laserScan};
toAron(laserScanStamped, aronLaserScanStamped);
}
void
toAron(arondto::OccupancyGrid& dto, const OccupancyGrid& bo)
......
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