Target Joints() fails to raise exception- Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:RoboDK错误(//www.sinclairbody.com/forum/Forum-RoboDK-bugs) +--- Thread: Target Joints() fails to raise exception (/Thread-Target-Joints-fails-to-raise-exception) |
Target Joints() fails to raise exception-j_cso-11-17-2022 打开collision_test_scene.rdk from this thread: //www.sinclairbody.com/forum/Thread-Targets-don-t-update-their-joints-when-the-targets-move
Code:
>>> t = rdk.Item('Target 5')
Now close the station and try to access Joints(). Fails as expected:
Code:
>>> t.Joints()
Now reopen the same station and try again. t.Joints() now points at the robot's joints. You can verify this by jogging a robot joint and then querying Joints() again. t.Name() still raises an exception as it should.
Code:
>>> t.Joints()
t.setJoints() likewise moves the robot's joints. Seems like what you intended is for Joints() to raise an exception like the other methods do after the station has been closed. RE: Target Joints() fails to raise exception-Albert-11-17-2022 This is a good observation. Thank you for your feedback. This happens because RoboDK takes the first robot available by default if your item in null or invalid (this happens by default with some commands that apply to robots). We'll improve RoboDK to raise an exception to make sure the item pointer is correct with the next version. |