mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-11 12:09:51 +08:00
Added ToolTip with color code to loop closure and odometry views
This commit is contained in:
@@ -752,6 +752,14 @@ void MainWindow::processOdometry(const rtabmap::OdometryEvent & odom)
|
|||||||
// Process Data
|
// Process Data
|
||||||
if(!odom.data().imageRaw().empty())
|
if(!odom.data().imageRaw().empty())
|
||||||
{
|
{
|
||||||
|
// Set color code as tooltip
|
||||||
|
if(_ui->imageView_odometry->toolTip().isEmpty())
|
||||||
|
{
|
||||||
|
_ui->imageView_odometry->setToolTip(
|
||||||
|
"Dark Red = Odometry Lost\n"
|
||||||
|
"Dark Yellow = Low Inliers");
|
||||||
|
}
|
||||||
|
|
||||||
Transform pose = odom.pose();
|
Transform pose = odom.pose();
|
||||||
bool lost = false;
|
bool lost = false;
|
||||||
bool lostStateChanged = false;
|
bool lostStateChanged = false;
|
||||||
@@ -1177,6 +1185,24 @@ void MainWindow::processStats(const rtabmap::Statistics & stat)
|
|||||||
{
|
{
|
||||||
_ui->imageView_source->setBackgroundColor(Qt::gray);
|
_ui->imageView_source->setBackgroundColor(Qt::gray);
|
||||||
}
|
}
|
||||||
|
// Set color code as tooltip
|
||||||
|
if(_ui->imageView_source->toolTip().isEmpty())
|
||||||
|
{
|
||||||
|
_ui->imageView_source->setToolTip(
|
||||||
|
"Blue = Weight Update Merged\n"
|
||||||
|
"Dark Blue = Weight Update\n"
|
||||||
|
"Dark Yellow = Proximity Detection in Time\n"
|
||||||
|
"Dark Cyan = Neighbor Link Refined\n"
|
||||||
|
"Gray = Small Movement");
|
||||||
|
}
|
||||||
|
// Set color code as tooltip
|
||||||
|
if(_ui->imageView_loopClosure->toolTip().isEmpty())
|
||||||
|
{
|
||||||
|
_ui->imageView_loopClosure->setToolTip(
|
||||||
|
"Green = Accepted Loop Closure Detection\n"
|
||||||
|
"Red = Rejected Loop Closure Detection\n"
|
||||||
|
"Yellow = Proximity Detection in Space");
|
||||||
|
}
|
||||||
|
|
||||||
UDEBUG("time= %d ms", time.restart());
|
UDEBUG("time= %d ms", time.restart());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user