Skip to content

Commit

Permalink
[#54504] src: gui_node.cpp: Perform first render before timer
Browse files Browse the repository at this point in the history
Signed-off-by: Illia Vysochyn <[email protected]>
  • Loading branch information
ivysochyn committed Feb 15, 2024
1 parent f797ae7 commit 5b92f8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ bool GuiNode::prepare(const std::string &application_name, bool maximize_window)
bool status = gui_engine->init(maximize_window);
if (status)
{
if (!this->render())
{
RCLCPP_FATAL(get_logger(), "Failed to render");
return false;
}
timer = this->create_wall_timer(
std::chrono::milliseconds(10),
[this]() -> void
Expand Down

0 comments on commit 5b92f8c

Please sign in to comment.