Skip to content

Commit

Permalink
chg: moves load error print in UI to bottom center
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidPL1 committed Oct 24, 2024
1 parent 950f897 commit c4355ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mujoco_ros/src/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2390,8 +2390,7 @@ void Viewer::Render()

// Show last loading error
if (this->load_error[0]) {
mjr_overlay(mjFONT_NORMAL, mjGRID_BOTTOMLEFT, rect, this->load_error, nullptr,
&this->platform_ui->mjr_context());
mjr_overlay(mjFONT_NORMAL, mjGRID_BOTTOM, rect, this->load_error, nullptr, &this->platform_ui->mjr_context());
}

// render UIs
Expand Down Expand Up @@ -2483,7 +2482,7 @@ void Viewer::Render()

// Show last loading error
if (this->load_error[0]) {
mjr_overlay(mjFONT_NORMAL, mjGRID_BOTTOMLEFT, rect, this->load_error, nullptr, &this->platform_ui->mjr_context());
mjr_overlay(mjFONT_NORMAL, mjGRID_BOTTOM, rect, this->load_error, nullptr, &this->platform_ui->mjr_context());
}

// show pause/loading label
Expand Down

0 comments on commit c4355ca

Please sign in to comment.