gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
618 stars 251 forks source link

No `cmd_vel` topic when using diff_drive #2415

Closed anticitizn closed 1 month ago

anticitizn commented 1 month ago

Environment

Description

I only noticed this after upgrading all of my packages today - not sure if related, but I am confident this example used to work on my computer a few days ago.

Output

danny@danny-desktop:~$ gz topic -l
/clock
/gazebo/resource_paths
/gui/camera/pose
/model/vehicle_blue/odometry
/model/vehicle_blue/tf
/model/vehicle_green/odometry
/model/vehicle_green/tf
/stats
/world/diff_drive/clock
/world/diff_drive/dynamic_pose/info
/world/diff_drive/pose/info
/world/diff_drive/scene/deletion
/world/diff_drive/scene/info
/world/diff_drive/state
/world/diff_drive/stats
anticitizn commented 1 month ago

Okay I'm a bit stupid, it does actually work and listens to the messages published on cmd_vel but the topic is not listed by gz topic -l. Is that the intended behavior? I feel like before the topic was in the list. Sorry if this is something obvious.

francocipollone commented 1 month ago

Okay I'm a bit stupid, it does actually work and listens to the messages published on cmd_vel but the topic is not listed by gz topic -l. Is that the intended behavior? I feel like before the topic was in the list. Sorry if this is something obvious.

The discovery only works for published topics. This is due to the underlying transport protocol being used (zeromq).

If I recall correctly I think it is in the roadmap to also discover subscriptions.

anticitizn commented 1 month ago

Thank you, it's a layer 8 problem then.

francocipollone commented 1 month ago

Thank you, it's a layer 8 problem then.

I just skimmed a bit the changelog and it seems it is a feature added in gazebo harmonic. 😃