RoboDK Forum
Change DH parameters from API可打印版本

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Change DH parameters from API (/Thread-Change-DH-parameters-from-API)



Change DH parameters from API-mFarzanehkaloorazi-10-25-2019

Hi,

Is it possible to change DH parameters of a robot through API? In C++ preferably, if not, Python will do.

I found this for Python:

robodk.dh(rz, tx=None, tz=None, rx=None)
Returns the Denavit-Hartenberg 4x4 matrix for a robot link.

Seems like only returns.

In C++ tho:

//INCOMPLETE!!!!!!!
/*boolRoboDK::SetRobotParams(Item*robot,tMatrix2Ddhm,poseBase,poseTool)


RE: Change DH parameters from API-Albert-11-06-2019

It is not possible to change the DH table of a robot through the API, however, you can build your own robot using this function:
//m.sinclairbody.com/doc/en/PythonAPI/robolink.html#robolink.Robolink.BuildMechanism

There's an example to build a 6-axis robot.