Size of gazebo models
I have an aruco marker that I'm using for aruco detection. The aruco detection needs to know the size of the marker. The issue I have is that I know the marker's full size, but this is including the white border around the marker. I only want to know the actual marker size. Is there any way to find the size/ measure positions in Gazebo?
What I have done up until now is to size the marker and place the camera so I can measure the marker on the screen with a ruler. For example, if I put the marker size to 0.17 m and have the camera in a position like this:
I can move the camera forth and back until the entire marker, including the white borders measures 0.17 m with a ruler on my screen, and then I can measure the black marker to find the size of the black marker. Wondering if this is a legit way to find the size of the marker in this case, or if Gazebo has any tools. I saw there was supposed to be tape measure or something, but never figured out how to use it.
Hi @Roshan have you considered using the OpenCV to complete this task of calculating size of aruco at different distances?
Hello, no but I might try that. But do you agree that finding the size like described above would give me the actual size of the marker, assuming that I used OpenCV to calculate the distance instead of a ruler?
Yes and it can be fairly accurate too
This is an example how to do measurement, not exactly what you are looking to do, but it will give you an idea: https://pysource.com/2021/05/28/measu...