Skip to content

Commit 6f0a3a7

Browse files
committed
Do not store masterboard data in primary consumer
Currently, there's no use-case. Adding a getter for a RobotStateMessage seems not the right way to go.
1 parent 4fbe84e commit 6f0a3a7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

include/ur_client_library/primary/primary_consumer.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ class PrimaryConsumer : public AbstractPrimaryConsumer
195195
*/
196196
virtual bool consume(MasterboardData& pkg) override
197197
{
198-
std::scoped_lock lock(masterboard_data_mutex_);
199-
masterboard_data_ = std::make_shared<MasterboardData>(pkg);
198+
// Nothing to do here for now.
200199
return true;
201200
}
202201

@@ -282,8 +281,6 @@ class PrimaryConsumer : public AbstractPrimaryConsumer
282281
std::mutex configuration_data_mutex_;
283282
std::mutex safety_mode_mutex_;
284283
std::shared_ptr<SafetyModeMessage> safety_mode_;
285-
std::mutex masterboard_data_mutex_;
286-
std::shared_ptr<MasterboardData> masterboard_data_;
287284
};
288285

289286
} // namespace primary_interface

0 commit comments

Comments
 (0)