"Get Position" Automatically in Online Programming——革命制度党ntable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK) +--- Thread: "Get Position" Automatically in Online Programming (/Thread-Get-Position-Automatically-in-Online-Programming) |
"Get Position" Automatically in Online Programming-tharisata-12-16-2020 Hi guys, I'm doing Online Programming where I'm running the script alongside the robot. I want to be able to manually move the robot mid script and get the program to update the simulation for me. This can be done by manually clicking 'Get Position' in the 'Connect to Robot' section. I was wondering if there's a function for this that I can incorporate into my code. Thanks in advance. -------Edit---------- I've found that this can be done by calling robot.Joints() (i.e. update the joints first) as opposed to calling robot.Pose() which gives you the Pose in the simulation. If there is another method, I'm also keen to hear it. RE: "Get Position" Automatically in Online Programming-Jeremy-12-16-2020 Hi Tharisata, What robot are you using? Jeremy |