Texture

class urdfpy.Texture(filename, image=None)[source]

Bases: urdfpy.URDFType

An image-based texture.

Parameters:
  • filename (str) – The path to the image that contains this texture. This can be relative to the top-level URDF or an absolute path.
  • image (PIL.Image.Image, optional) – The image for the texture. If not specified, it is loaded automatically from the filename.

Attributes Summary

filename Path to the image for this texture.
image The image for this texture.

Attributes Documentation

filename

Path to the image for this texture.

Type:str
image

The image for this texture.

Type:PIL.Image.Image