How to get the position of certain object in gazebo and publish it on a topic to use it in px4 or ROS?
I am trying to get the position of Aruco Marker in the gazebo and publish it on the topic so that I can use it for different processes. Can anyone help me to sort out the solution? I found a similar question in the links below
https://answers.gazebosim.org/questio...
https://answers.gazebosim.org/questio...
But I can not apply the solution given in the link above. Can someone guide me on how can I get the position and publish it on a topic so I can use it outside the gazebo e.g., PX4 or ROS?