2025-01-27 13:13:12 -08:00
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
|
|
from ..models.transform_by_for_point3d import TransformByForPoint3d
|
|
|
|
from ..models.transform_by_for_point4d import TransformByForPoint4d
|
|
|
|
|
|
|
|
|
|
|
|
class ComponentTransform(BaseModel):
|
2025-05-01 11:42:30 -07:00
|
|
|
"""Container that holds a translate, rotate and scale. Defaults to no change, everything stays the same (i.e. the identity function)."""
|
2025-01-27 13:13:12 -08:00
|
|
|
|
|
|
|
rotate_angle_axis: Optional[TransformByForPoint4d] = None
|
|
|
|
|
|
|
|
rotate_rpy: Optional[TransformByForPoint3d] = None
|
|
|
|
|
|
|
|
scale: Optional[TransformByForPoint3d] = None
|
|
|
|
|
|
|
|
translate: Optional[TransformByForPoint3d] = None
|
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|