04-05-2023, 06:31 PM
Currently I am trying to set the pose of a robot base with reference to a reference frame. My current code sets the pose of the robot, but I would like the base of the robot to receive the x,y,z,a,b,c pose with reference to my reference frame. I have attemtped the getlink(0) function to call the robot base but receive the error "Exception: Invalid item provided: The item identifier provided is not valid or it does not exist."
from robolink import *
from robodk import *
import numpy as np
RDK = Robolink()
Origin=RDK.Item('SpiralMeca') #program origin
R1.setParent(Origin)
R1 = RDK.Item('Mecademic Meca500 R3',ITEM_TYPE_ROBOT)
RB1 = R1.getLink(0) # get the base link
LED = RDK.Item('LED') #Reference frame
pose = Pose(10,0,0,0,0,0)
RB1.setPose(pose)
from robolink import *
from robodk import *
import numpy as np
RDK = Robolink()
Origin=RDK.Item('SpiralMeca') #program origin
R1.setParent(Origin)
R1 = RDK.Item('Mecademic Meca500 R3',ITEM_TYPE_ROBOT)
RB1 = R1.getLink(0) # get the base link
LED = RDK.Item('LED') #Reference frame
pose = Pose(10,0,0,0,0,0)
RB1.setPose(pose)