01-05-2023, 01:49 AM
I have a station with some 2-axis mechanisms and some 6-joint robots. After updating to 5.5.3.23011 (macos), calling target.Joints() on a 2-axis mechanism's joint target returns 6 joints instead of 2. Unfortunately I can't reproduce this in a station I can share with you; creating a station with only a 2-axis mechanism (I also tried creating a 6-joint robot), a joint target has the correct two joints.
Code:
>>> target = rdk.Item("L_extender_2")
>>> target.isJointTarget()
True
>>> target.Joints()
Matrix: (6, 1)
[[ 0.000 ],
[ 1020.400 ],
[ 0.000 ],
[ 0.000 ],
[ 0.000 ],
[ 0.000 ]]
>>> target.getLink(robolink.ITEM_TYPE_ROBOT).Joints()
Matrix: (2, 1)
[[ 0.000 ],
[ 1020.400 ]]
>>> target.setJoints([0, 1020.400])
RoboDK item (140344870373904) of type 6
>>> target.Joints()
Matrix: (6, 1)
[[ 0.000 ],
[ 1020.400 ],
[ 0.000 ],
[ 0.000 ],
[ 0.000 ],
[ 0.000 ]]