Skip to content
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

gz_sim create subscribes to wrong topic #469

Closed
muttistefano opened this issue Dec 12, 2023 · 3 comments
Closed

gz_sim create subscribes to wrong topic #469

muttistefano opened this issue Dec 12, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@muttistefano
Copy link

hi all,
i am on Ubuntu 22.04, Ros2 rolling, with ros_gz built from source.

I have noticed that the create node of ros_gz_sim has a weird behaviour.
when i run :
ros2 run ros_gz_sim create -topic sweepee_1/robot_description -name sweepee_2

the node subscribe to the topic "sweepee":
[INFO] [1702368228.031667490] [ros_gz_sim]: Waiting messages on topic [sweepee].

Whenever i change topic, the node subscribe only to the first 7 letters of the provided string.

ros2 run ros_gz_sim create -topic abcdefghil  
[INFO] [1702368480.765282089] [ros_gz_sim]: Requesting list of world names.  
[INFO] [1702368480.966820664] [ros_gz_sim]: Waiting messages on topic [abcdefg].  

Did anyone experience this ?
Thanks

@muttistefano muttistefano added the bug Something isn't working label Dec 12, 2023
@ahcorde
Copy link
Collaborator

ahcorde commented Dec 12, 2023

I can't reproduce the issue, I tried from source and debs.

Can you provide more information ?

@muttistefano
Copy link
Author

Debs also work fine in my case, but being on rolling i cannot use them.
Checking the source i can say that the FLAGS_topic variable seems to be the problem , but it is generated and read by the gflags library.
I indeed have the correct gflags library installed so i don't really know what's wrong.
I can try to reporoduce the problem in a new machine and check if it applies.
Thanks

@azeey azeey moved this from Inbox to In progress in Core development Dec 12, 2023
@muttistefano
Copy link
Author

commit 8fba3b4 solved the problem.

@github-project-automation github-project-automation bot moved this from In progress to Done in Core development Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants