Skip to content
Snippets Groups Projects

Fix visualization, fix human obstacles

Merged Tobias Gröger requested to merge feature/fix-visualization into dev
2 files
+ 7
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -58,6 +58,7 @@ namespace armarx::navigation::local_planning
{
auto proxemicZones = proxemics.createProxemicZones(human);
int i = 0;
for (const auto& proxemicZone : proxemicZones)
{
auto pose = conv::toRos(proxemicZone.pose);
@@ -85,13 +86,14 @@ namespace armarx::navigation::local_planning
if (visLayer != nullptr)
{
const Eigen::Vector3f axisLength(proxemicZone.shape.a, proxemicZone.shape.b, 0);
const core::Pose pose3d = conv::to3D(human.pose);
const core::Pose pose3d = conv::to3D(proxemicZone.pose);
visLayer->add(viz::Ellipsoid("proxemicZone_" + std::to_string(visualizationIndex++))
.pose(pose3d)
.axisLengths(axisLength)
.color(simox::Color::blue()));
.color(PROXEMIC_ZONE_COLOR[i % PROXEMIC_ZONE_COLOR.size()]));
}
i++;
}
}
Loading