Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Help with robot playing chess using the API

#1
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.


Attached Files Thumbnail(s)
   
#2
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. 
#3
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)
You can find more information here:
https://robodk.com/doc/en/PythonAPI/robo...rentStatic
  




Users browsing this thread:
1 Guest(s)