mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-09-27 00:29:13 +08:00
limit float values in rviz to 4 digits
The previous implicit conversion leads to varying cell width.
This commit is contained in:
parent
a9fbcac31f
commit
194715abc6
@ -255,7 +255,7 @@ QVariant RemoteTaskModel::data(const QModelIndex& index, int role) const {
|
||||
case 2:
|
||||
return n->solutions_->numFailed();
|
||||
case 3:
|
||||
return n->solutions_->totalComputeTime();
|
||||
return QLocale().toString(n->solutions_->totalComputeTime(), 'f', 4);
|
||||
}
|
||||
break;
|
||||
case Qt::ForegroundRole:
|
||||
@ -521,7 +521,7 @@ QVariant RemoteSolutionModel::data(const QModelIndex& index, int role) const {
|
||||
return tr(u8"∞");
|
||||
if (std::isnan(item.cost))
|
||||
return QVariant();
|
||||
return item.cost;
|
||||
return QLocale().toString(item.cost, 'f', 4);
|
||||
case 2:
|
||||
return item.comment;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user