mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Localization: Improved resulting pose in case there are gravity constraints. iOS: clear odom trace when not visible, fixed opt mesh not correctly aligned with graph on loading when switching RGBD/OptimizeFromGraphEnd.
This commit is contained in:
@@ -448,7 +448,7 @@ int RTABMapApp::openDatabase(const std::string & databasePath, bool databaseInMe
|
||||
poses,
|
||||
links,
|
||||
true,
|
||||
true,
|
||||
false, // Make sure poses are the same than optimized mesh (in case we switched RGBD/OptimizedFromGraphEnd)
|
||||
&signatures,
|
||||
true,
|
||||
true,
|
||||
@@ -1399,7 +1399,14 @@ int RTABMapApp::Render()
|
||||
}
|
||||
else if(rtabmapThread_ && rtabmapThread_->isRunning() && landmark!=0)
|
||||
{
|
||||
main_scene_.setBackgroundColor(1, 0.65f, 0); // orange
|
||||
if(rejected)
|
||||
{
|
||||
main_scene_.setBackgroundColor(0.5, 0.325f, 0); // dark orange
|
||||
}
|
||||
else
|
||||
{
|
||||
main_scene_.setBackgroundColor(1, 0.65f, 0); // orange
|
||||
}
|
||||
}
|
||||
else if(rtabmapThread_ && rtabmapThread_->isRunning() && rejected>0)
|
||||
{
|
||||
|
||||
@@ -594,6 +594,10 @@ int Scene::Render(const float * uvsTransformed, glm::mat4 arViewMatrix, glm::mat
|
||||
{
|
||||
trace_->Render(projectionMatrix, viewMatrix);
|
||||
}
|
||||
else
|
||||
{
|
||||
trace_->ClearVertexArray();
|
||||
}
|
||||
}
|
||||
|
||||
if(gridVisible_ && !renderBackgroundCamera)
|
||||
|
||||
Reference in New Issue
Block a user