Skip to content

Commit

Permalink
Fix topic name generation
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <[email protected]>
  • Loading branch information
nkoenig committed Jun 3, 2024
1 parent a093dea commit 3ed7518
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ void LogicalAudioSensorPluginPrivate::CreateAudioSource(
};

// create services for this source
const auto validName = topicFromScopedName(entity, _ecm, true);
const auto validName = topicFromScopedName(entity, _ecm, false);
if (validName.empty())
{
gzerr << "Failed to create valid topics with entity scoped name ["
Expand Down Expand Up @@ -503,7 +503,7 @@ void LogicalAudioSensorPluginPrivate::CreateMicrophone(

// create the detection publisher for this microphone
auto pub = this->node.Advertise<msgs::Double>(
topicFromScopedName(entity, _ecm, true) + "/detection");
topicFromScopedName(entity, _ecm, false) + "/detection");
if (!pub)
{
gzerr << "Error creating a detection publisher for microphone "
Expand Down
2 changes: 1 addition & 1 deletion src/systems/pose_publisher/PosePublisher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void PosePublisher::Configure(const Entity &_entity,
this->dataPtr->usePoseV =
_sdf->Get<bool>("use_pose_vector_msg", this->dataPtr->usePoseV).first;

std::string poseTopic = topicFromScopedName(_entity, _ecm, true) + "/pose";
std::string poseTopic = topicFromScopedName(_entity, _ecm, false) + "/pose";
if (poseTopic.empty())
{
poseTopic = "/pose";
Expand Down

0 comments on commit 3ed7518

Please sign in to comment.