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.
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.