Skip to content

Commit

Permalink
fix(tier4_screen_capture_rviz_plugin): fix extra/missing naming compo…
Browse files Browse the repository at this point in the history
…nents (#3207)

Signed-off-by: Mehmet Dogru <42mehmetdogru42@gmail.com>
  • Loading branch information
mehmetdogru authored Mar 29, 2023
1 parent 789fcca commit 005148f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void setFormatDate(QLabel * line, double time)
char buffer[128];
auto seconds = static_cast<time_t>(time);
strftime(buffer, sizeof(buffer), "%Y-%m-%d-%H-%M-%S", localtime(&seconds));
line->setText(QString("- ") + QString(buffer) + QString(".mp4"));
line->setText(QString("- ") + QString(buffer));
}

AutowareScreenCapturePanel::AutowareScreenCapturePanel(QWidget * parent)
Expand Down Expand Up @@ -104,7 +104,8 @@ void AutowareScreenCapturePanel::onRateChanged() {}

void AutowareScreenCapturePanel::onClickScreenCapture()
{
const std::string time_text = "capture/" + ros_time_label_->text().toStdString();
const std::string time_text =
"capture/" + file_name_prefix_->text().toStdString() + ros_time_label_->text().toStdString();
getDisplayContext()->getViewManager()->getRenderPanel()->getRenderWindow()->captureScreenShot(
time_text + ".png");
}
Expand Down

0 comments on commit 005148f

Please sign in to comment.