Issues with cameras- Printable Version +- RoboDK Forum (//m.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:RoboDK错误(//m.sinclairbody.com/forum/Forum-RoboDK-bugs) +--- Thread: Issues with cameras (/Thread-Issues-with-cameras) |
Issues with cameras-frfournier-06-30-2020 Hi, The release notes of RoboDK 5.0 states:2D camera simulation now shows cameras as items in the station treeand they are saved with the station However, I see a few regression bugs to RodoDK 4.x and a few missing features inline with this new behavior 1. Camera item type missing
Code:
import robolink
return: RoboDK item of type 19. Item type 19 is missing from the ITEM_TYPE_XXX constants. 2. Cam2D_Add does not add the Item to the tree Creating a camera using the API does not behave in the same way as through the Connect - Simulate 2D camera. It is not added to the station tree. See CameraAddTree attachment 3. Settings passed tocam_params does not apply correctly Using the code above, as per the example ofCameraAdd.py, the applied settings differ. See CameraSettings atachment RoboDK 5.0.0.17599 robodk API 5.0.0 Thank you, RE: Issues with cameras-Albert-07-02-2020 You are right, the API was still using the previous method where cameras don't have an item linked to it. 这应该是固定的智慧h the latest version now. Make sure to update RoboDK and take the latest version of the RoboDK API for Python v5.0.1 fromGitHuborPyPi. RE: Issues with cameras-frfournier-07-02-2020 (07-02-2020, 12:43 AM)Albert Wrote:You are right, the API was still using the previous method where cameras don't have an item linked to it. Hi Albert, Thank you for the follow-up and support. I forced an update of the API to 5.0.1 through
Code:
pip install robodk --force
and updated to RoboDK 5.0.0.17833-2020-07-01 However, sending the following code still causes issue (regression to the behavior in RoboDK 4.x:
Code:
import robolink
The camera settings are also still wrong as per the attached screenshot:FOV=32 FAR_LENGHT=1000givesFOV=48.46FAR_LENGHT=994 Thank you RE: Issues with cameras-Albert-07-06-2020 You are right, this should be fixed now with the latest version: //m.sinclairbody.com/download You can also update by running this file: C:/RoboDK/RoboDK-Update.py Also, make sure to update the RoboDK API for Python:
Code:
pip install robodk --upgrade
|