diff --git a/delphyne_gui/visualizer/layout2_with_teleop.config b/delphyne_gui/visualizer/layout2_with_teleop.config index 52eac7d4..2a76d584 100644 --- a/delphyne_gui/visualizer/layout2_with_teleop.config +++ b/delphyne_gui/visualizer/layout2_with_teleop.config @@ -81,8 +81,15 @@ - + + ogre + /visualizer/pose_update + scene + /get_scene false + 0 0 1 + 0.8 0.8 0.8 + -6 0 6 0 0.5 0 diff --git a/delphyne_gui/visualizer/render_widget.cc b/delphyne_gui/visualizer/render_widget.cc index 3d0894a6..71f9ed17 100644 --- a/delphyne_gui/visualizer/render_widget.cc +++ b/delphyne_gui/visualizer/render_widget.cc @@ -379,13 +379,6 @@ ignition::rendering::VisualPtr RenderWidget::RenderMesh(const ignition::msgs::Vi std::max(maxXYZ.Y() + _vis.pose().position().y(), maxBBScene.Y()), std::max(maxXYZ.Z() + _vis.pose().position().z(), maxBBScene.Z())); - if (mesh_uri.Query().Str().find("culling=off") != std::string::npos) { - DELPHYNE_VALIDATE(mesh->GeometryCount() == 1, std::runtime_error, "Expected one geometry."); - auto subMesh = mesh->GeometryByIndex(0); - /* TODO: Enable once ignition-rendering2 supports culling - subMesh->Material()->SetCulling(ignition::rendering::CullMode::CM_NONE);*/ - } - setPoseFromMessage(_vis, mesh); return mesh;