How to build a Subscriber to a gz topic (e.g. gz topic /gazebo/default/physics/contacts) [closed]
I want to write a Subscriber that subscribes to the gz topic /gazebo/default/physics/contacts to get the information if links or models are colliding. Is there a similar way to subscribe to a gz topic like to subscribe to a ros topic?
Thanks for your help.