Forum

5.0 states: 2D camera simulation

Início Fóruns Temas ou Discussões 5.0 states: 2D camera simulation

A visualizar 3 artigos - de 1 a 3 (de um total de 3)
  • Autor
    Artigos
  • Waebli
    Convidado
    Número de artigos: 172

    You are right, the API was still using the previous method where cameras don’t have an item linked to it.

    This should be fixed with the latest version now. Make sure to update RoboDK and take the latest version of the RoboDK API for Python v5.0.1 from GitHub or PyPi.

    Ruaral
    Convidado
    Número de artigos: 172

    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
    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’)
    It creates 2 camera windows and closing any one of them causes a crash
    The camera settings are also still wrong as per the attached screenshot: FOV=32 FAR_LENGHT=1000 gives FOV=48.46 FAR_LENGHT=994

    Thank you

    Waebli
    Convidado
    Número de artigos: 172

    You are right,

    Also, make sure to update the RoboDK API for Python:

    Code:

    pip install robodk –upgrade

A visualizar 3 artigos - de 1 a 3 (de um total de 3)
  • Tem de iniciar sessão para responder a este tópico.

Início Fóruns Temas ou Discussões 5.0 states: 2D camera simulation