Gazebo | Ignition | Community
Ask Your Question


asked 2023-08-02 03:44:34 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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 turtlebot3_waffle_pi. 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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-08-03 20:37:53 -0500

Veerachart gravatar image

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.
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2023-08-02 03:44:34 -0500

Seen: 134 times

Last updated: Aug 03 '23