Python - Rotate Imported CAD Geometry Around Selected Reference Frame可打印版本 +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API) +--- Thread: Python - Rotate Imported CAD Geometry Around Selected Reference Frame (/Thread-Python-Rotate-Imported-CAD-Geometry-Around-Selected-Reference-Frame) |
Python - Rotate Imported CAD Geometry Around Selected Reference Frame-TimdR-06-25-2019 Hi All, 我是wondering whether it is possible to apply translations and rotations to an object (in my case an imported .stl file) w.r.t. a user defined reference frame? Thanks, Tim RE: Python - Rotate Imported CAD Geometry Around Selected Reference Frame-Albert-06-26-2019 Hi Tim, Yes, you can use setPose to set the position with respect to the parent reference the object is attached to. Example:
Code:
RDK = Robolink()
You can also use setPoseAbs() to set the abolute pose (with respect to the absolute station reference). Albert |