Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

UNEXPECTED BEHAVIOR OF RDK.RENDER()

#1
[Python API]

I am attempting to use `RDK.Render(False)` to speed up my routines and I encountered some unexpected behavior. Is this a bug?

To reproduce:
1. Insert object at [0,0,0]
2. Run code below and observe that the object moves on the screen even though `RDK.Render()` was set to False.

```
RDK = robolink.Robolink()
my_obj = RDK.Item('my_obj', robolink.ITEM_TYPE_OBJECT)
RDK.Render(False)
my_obj.setPose(robomath.KUKA_2_Pose([100,100,100,0,0,0]))
```

I would expect the object not to move until `RDK.Render(True)` is called. What is going on here?
#2
Turning off render means that RoboDK will not render the 3D view until 100 ms of no interaction with the RoboDK API. So if you just move an object and nothing else, RoboDK will wait for 100 ms before triggering another render event.

This delay can be changed here:
  1. Select Tools-Options
  2. Select theOthertab
  3. Click onAuto render delay
#3
Thanks, Albert. That works as-expected.




Users browsing this thread:
1 Guest(s)