-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure pose publisher creates valid pose topics #1433
Conversation
Signed-off-by: Ian Chen <[email protected]>
@@ -251,6 +251,7 @@ void PosePublisher::Configure(const Entity &_entity, | |||
_sdf->Get<bool>("use_pose_vector_msg", this->dataPtr->usePoseV).first; | |||
|
|||
std::string poseTopic = scopedName(_entity, _ecm) + "/pose"; | |||
poseTopic = transport::TopicUtils::AsValidTopic(poseTopic); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function might return an empty string. Do you mind to check poseTopic
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it may be ok here because there is a hardcoded /pose
suffix in the topic name in the line above. In any case, I added a check in 488d07b
Signed-off-by: Ian Chen <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #1433 +/- ##
===============================================
+ Coverage 63.36% 63.49% +0.13%
===============================================
Files 306 307 +1
Lines 24715 24776 +61
===============================================
+ Hits 15660 15731 +71
+ Misses 9055 9045 -10
Continue to review full report at Codecov.
|
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-releases-2022-04-27-fortress-citadel/1389/1 |
Signed-off-by: Ian Chen [email protected]
🦟 Bug fix
Summary
Our model names often have spaces in them. This makes sure the ign topic created by the pose publisher system has valid topics.
to test:
edit pose_publisher.sdf world and change the
double_pendulum_with_base
model to a name with spaces, e.g.double pendulum with base
, install, and launch the world:Before this change, the
/model/double_pendulum_with_base/pose
topic will not be publishedChecklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.