06-30-2020, 03:53 PM
Hi,
The release notes of RoboDK 5.0 states: 2D camera simulation now shows cameras as items in the station tree and 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
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 to cam_params does not apply correctly
Using the code above, as per the example of CameraAdd.py, the applied settings differ. See CameraSettings atachment
RoboDK 5.0.0.17599
robodk API 5.0.0
Thank you,
The release notes of RoboDK 5.0 states: 2D camera simulation now shows cameras as items in the station tree and 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
rdk = robolink.Robolink()
camref = rdk.ItemUserPick(
'Select the Camera location (reference, tool or object)')
cam = rdk.Cam2D_Add(camref, 'FOCAL_LENGHT=6 FOV=32 FAR_LENGHT=1000')
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 to cam_params does not apply correctly
Using the code above, as per the example of CameraAdd.py, the applied settings differ. See CameraSettings atachment
RoboDK 5.0.0.17599
robodk API 5.0.0
Thank you,