Skip to content

Failure when selecting different UDP port #8

@KaiBotics

Description

@KaiBotics

epc.tofCam660.tofCam660.TOFcam660 allows specifying the UDP port to which the camera should stream data. When selecting a port other than the default port, no data can be received.

Minimum (not) working example:

from epc.tofCam660.tofCam660 import TOFcam660

cam = TOFcam660(udp_port=45455)
data = cam.get_distance_image()

leads to the following error message: 2025-06-19 13:44:49,183: ERROR [TOFcam660] - Failed to receive image data: list index out of range (tofCam660.py:332)

Looking into the code it is quite clear that locally, the UDP port is opened at the right port but the port number is never transmitted to the camera, which consequently streams to the default UDP port 45454, regardless of the configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions