Skip to content
Snippets Groups Projects
Commit 977d463c authored by Jean Patrick Mathes's avatar Jean Patrick Mathes
Browse files

Fix incorrect positioning of placeholders created from objects without OOBBs

parent 489ecd59
No related branches found
No related tags found
1 merge request!283Resolve "Add component to interactively change the object instances in the memory via ArViz interactive"
......@@ -196,8 +196,8 @@ namespace armarx
})
.onContextMenu(description.prototypeIndex, [this, &objectPose]
{
simox::OrientedBoxf box;
box.scale(100);
const float defaultExtents = 100;
simox::OrientedBoxf box(objectPose.objectPoseGlobal, Eigen::Vector3f(defaultExtents, defaultExtents, defaultExtents));
box = objectPose.oobbGlobal().value_or(box);
box = box.transformed(changes.getTransform(objectPose));
......
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