I am in the process of making a chess program as show in image. I am using python to move the robot in the 64 squares of a chess board. I am not sure how I can do the attach function in pyton. I am able to do it in the RovboDK environment.
Thread Rating:
Help with robot playing chess using the API |
10-22-2023, 12:28 PM
(This post was last modified: 10-23-2023, 09:45 AM by Albert.
Edit Reason: Thanks for your help, I modified misleading information
)
There are several ways to attach an object to the robot's flange (or gripper). You can use the simulation event instruction in a program created using the UI. This link shows an example to add new instructions to a program using the API:
https://robodk.com/doc/en/PythonAPI/exam...structions I think there are several ways to attach An object to the robot's flange (or gripper): its better you would use the simulation event in your code, or you change the parent an object is attached to... this link (https://robodk.com/doc/en/PythonAPI/exam...structions) with an example help you solve this problem.
10-23-2023, 09:43 AM
You can use the API call setParentStatic to attach one object to another one while maintaining the absolute position of the child object.
Example: Code: object1.setParentStatic(object_attach_to) https://robodk.com/doc/en/PythonAPI/robo...rentStatic |
Users browsing this thread: |
1 Guest(s) |
Copyright © 2025 RoboDK Inc.
Powered by MyBB