Skip to content

Commit e8191bf

Browse files
committed
only subscribe to statistics after receiving a non-reset description
1 parent 0aff5d5 commit e8191bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visualization/motion_planning_tasks/src/task_display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void TaskDisplay::taskDescriptionCB(const moveit_task_constructor_msgs::TaskDesc
205205

206206
// Start listening to other topics if this is the first description
207207
// Waiting for the description ensures we do not receive data that cannot be interpreted yet
208-
if (!received_task_description_) {
208+
if (!received_task_description_ && !msg->stages.empty()) {
209209
received_task_description_ = true;
210210
task_statistics_sub =
211211
update_nh_.subscribe(base_ns_ + STATISTICS_TOPIC, 2, &TaskDisplay::taskStatisticsCB, this);

0 commit comments

Comments
 (0)