Attach a tool to an Item that's not a robot——革命制度党ntable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK) +--- Thread: Attach a tool to an Item that's not a robot (/Thread-Attach-a-tool-to-an-Item-that-s-not-a-robot) |
Attach a tool to an Item that's not a robot-StefanoCava-07-27-2023 Hi everyone, I need to export an Item from RoboDK as a tool because I need it to have its own zero and a fixed frame on the surface (basically the zero where the flange is and the frame where the suction cups are, in the case of a gripper). I then need to load this tool and attach it to an object that's not a robot, keeping the two frames alive. If I try to drop my tool under another item, it gets changed to a generic item and it loses the suckers frame. Is there a way to accomplish this? Thank you! RE: Attach a tool to an Item that's not a robot-Albert-07-27-2023 Yes, you can accomplish converting a tool to an object and vice versa with a custom script. For example, you can do this to drop the tool:
Code:
tool.setParentStatic(reference)
Code:
tool.setParentStatic(reference)
RE: Attach a tool to an Item that's not a robot-StefanoCava-07-27-2023 Thank you a lot! I missed this command in the list. It works perfectly |