-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to load Apriltags into the simulation? #38
Comments
Were you able to figure this out? I'm looking to do something similar. |
I was able to add in the apriltag as a texture for graphical materials (looks): In the looks scenario xacro file, I added tags in one by one: Then, I added them into my world scenario file, an exmaple: However, I have only tried this method for a one sided Apriltag, since this method applies the Apriltag as texture to all surface of the object, it might not work if you need something like a cube. |
Yeah, I have been having issues attempting to overlay some textures I made in blender for some of my team's 3D models (a red buoy for instance). I can only get it work with a box though and I would like to replicate my actual environment as much as possible. And having the ability to have separate colors on the objects is pretty important for us. I could use multiple 3d files and just have them together but that seems like alot of extra work that shouldn't exist. Example Code: Env Setup:
Looks Metadata:
|
To answer your question on AprilTags, you can set the different uv_modes and the scaling, depending on if you have a singular Apriltag or a whole rectangular prism texture image.
So depending on your AprilTag image you may need to select a different UV mode or scale to your box "looks". After taking a more in-depth look at the documentation it seems to be the case that you cannot add textures to any shape more complex than the box. |
Hi, I want to use Apriltags in the simulation but are not sure what are some ways for loading them in? I have tried loading a static object with a custom looks using the Apriltag image as a texture. The Apriltag is loaded but are repeated over the entire surface.
The text was updated successfully, but these errors were encountered: