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

armem robot state memory: fixing robot state visu

parent a7c03fae
No related branches found
No related tags found
No related merge requests found
......@@ -284,14 +284,17 @@ namespace armarx::armem::common::robot_state::localization
std::vector<::armarx::armem::robot_state::Transform> transforms;
transforms.reserve(entity.history().size());
const auto entitySnapshots = simox::alg::get_values(entity.history());
// const auto entitySnapshots = simox::alg::get_values(entity.history());
const std::vector<wm::EntitySnapshot> entitySnapshots = {entity.getLatestSnapshot()};
std::transform(
entitySnapshots.begin(),
entitySnapshots.end(),
std::back_inserter(transforms),
[](const auto & entity)
[](const auto & entitySnapshot)
{
return convertEntityToTransform(entity.getInstance(0));
return convertEntityToTransform(entitySnapshot.getInstance(0));
});
ARMARX_DEBUG << "obtaining transform";
......
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