Skip to content

Commit 3f8d77b

Browse files
authored
Fix compatibility with protobuf v30 (#3034)
Partial backport of fixes from ##2966. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
1 parent 4f9f3d3 commit 3f8d77b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/systems/log/LogRecord.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ bool LogRecordPrivate::Start(const std::string &_logPath,
298298
if (!validSdfTopic.empty())
299299
{
300300
this->sdfPub = this->node.Advertise(validSdfTopic,
301-
this->sdfMsg.GetTypeName());
301+
std::string(this->sdfMsg.GetTypeName()));
302302
}
303303
else
304304
{

src/systems/triggered_publisher/TriggeredPublisher.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@ void TriggeredPublisher::Configure(const Entity &,
574574
info.msgData = msgs::Factory::New(info.msgType, msgStr);
575575
if (nullptr != info.msgData)
576576
{
577-
info.pub =
578-
this->node.Advertise(info.topic, info.msgData->GetTypeName());
577+
info.pub = this->node.Advertise(info.topic,
578+
std::string(info.msgData->GetTypeName()));
579579
if (info.pub.Valid())
580580
{
581581
this->outputInfo.push_back(std::move(info));

0 commit comments

Comments
 (0)