ros2_socketcan
ros2_socketcan copied to clipboard
Added error display and read/send iteration
-
The current implementation cannot distinguish between time-outs and other errors for the receive/send function. So, we might have to add a specified number of retries for the other errors below. EAGAIN , EWOULDBLOCK or EINTR for read/send
-
It might not be possible to guarantee that sizeof(frame) will always return in the return value of the read/send function Therefore, it might be necessary to repeat until the size of the return value becomes the sizeof(frame).
-
In the wait function, the current implementation does not distinguish between timeouts and other errors. Therefore, it might be necessary to display errno for errors other than timeout.