Skip to content
Snippets Groups Projects
Commit a16988a6 authored by Fabian Tërnava's avatar Fabian Tërnava
Browse files

add arrows to locations. Fix boxes

parent b74842aa
No related branches found
No related tags found
1 merge request!384change structure of affordance files. Add framedBoxedLocations
Pipeline #15073 passed
......@@ -10,8 +10,12 @@ namespace armarx::priorknowledge::util::location
const Eigen::Matrix4f& locationGlobalPose) const
{
// Add global location to layer
layer.add(
armarx::viz::Pose(id).pose(locationGlobalPose).scale(settings.framedLocationsScale));
layer.add(armarx::viz::Pose(id).pose(locationGlobalPose));
layer.add(armarx::viz::Arrow(id + "_dir")
.pose(locationGlobalPose)
.length(110)
.width(7.5)
.color(this->settings.framedLocationArrowColor));
}
void
......@@ -23,7 +27,7 @@ namespace armarx::priorknowledge::util::location
// Add global location to layer
layer.add(armarx::viz::Box(id)
.pose(locationGlobalPose)
.scale(extends)
.size(extends)
.color(this->settings.framedBoxedLocationColor));
}
......
......@@ -51,11 +51,10 @@ namespace armarx::priorknowledge::util::location
struct Settings
{
// FramedLocation
float framedLocationsScale = 1.0;
viz::Color framedLocationArrowColor = viz::Color::green();
// FramedBoxedLocation
viz::Color framedBoxedLocationColor = viz::Color::blue();
viz::Color framedBoxedLocationColor = viz::Color(0, 150, 130, 40);
} settings;
......
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