Robotics StackExchange | Archived questions

HOW TO CREATE QR CODE IN GAZEBO11

I want to create QR Code model in Gazebo11. I read many blog for this problem but i cannot solve. I want to give detail about my project, i want to add and scan qr code and using mobile robot such as turtlebot3wafflepi. After scanning this qr code, i want to distance measurement between robot and qr code. Then i add feature as if the distance between qr code nearly 0.25 meter, it must force stop and also stop. But when i cannot add QR code, i do anything.

Asked by duygu on 2023-08-02 03:44:34 UTC

Comments

Answers

You need at least a Visual (can simply be just a plane or small box) using a simple material with the generated QR code texture image. The part of generating QR codes are out of the scope of this Gazebo Answers I believe.

For the textures, there are two ways to add this to Gazebo system (at least to my knowledge):

  • Create an image file (.png, .jpg) of the QR code and save it on the disk, and then create a material which uses this image file as the diffuse texture. To me, this may be simpler to do, but there can be a lot of files generated which remain on your disk after the run, and pile up on the disk.
  • Create a texture to OGRE's TextureManager and fill in the image of the QR code to the memory. Doing this should keep the QR codes just in the memory and will be cleared after the run is finished.

Asked by Veerachart on 2023-08-03 20:37:53 UTC

Comments