Skip to content

Commit 4de2455

Browse files
authored
Fix /rviz/get_resource (#1487)
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
1 parent 2ef04d4 commit 4de2455

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rviz_default_plugins/src/rviz_default_plugins/ros_resource_retriever.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ RosResourceRetriever::get_shared(const std::string & url)
104104
}
105105
}
106106

107+
if (!this->client_->service_is_ready()) {
108+
return nullptr;
109+
}
110+
107111
// Request the resource with an etag, if it is set.
108112
RCLCPP_DEBUG(
109113
this->logger_,

0 commit comments

Comments
 (0)