RoboDK Forum
Moving a robot base through python API- Printable Version

+- 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: Moving a robot base through python API (/Thread-Moving-a-robot-base-through-python-API)



Moving a robot base through python API-will27-03-16-2020

Is it possible to move the robot base through the python API? I want to do this, but I don´t know how.


RE: Moving a robot base through python API-wcherif-10-14-2020

Good Morning ,
Yes you can , you have to create a new python script then create your code , you can try this code it allows the robot to reach the target point

from robolink import *
from robodk import *

RL = Robolink()
robot = RL.Item('KUKA KR 6 R900 sixx') #name of your robot
Target = RL.Item('Target 1')
robot.MoveJ(target)


RE: Moving a robot base through python API-Jeremy-10-15-2020

Hi,

To modify the position of the robot base, you can simply use the following:

Code:
RDK = robolink()

robot_base = RDK.Item('Robot Base Name', ITEM_TYPE_FRAME)
robot_base.setPose(4x4 mat with the position)

Jeremy