Get ecal status in python #1087
Replies: 5 comments 1 reply
-
Maybe @rex-schilasky can answer this better. |
Beta Was this translation helpful? Give feedback.
-
Yes, unfortunately |
Beta Was this translation helpful? Give feedback.
-
Since ecal is printing some errors I though it would be more reliable than reading system config, that could be erroneous. |
Beta Was this translation helpful? Give feedback.
-
I can confirm eCAL::Time::GetStatus is not want I want :smile: (I printed the error code ans status message)
|
Beta Was this translation helpful? Give feedback.
-
I tracked down the message to the AddMultiCastGroup method, and I see that the return value is not used. Maybe it could be a good idea to use this return value? ecal/ecal/core/src/io/udp_receiver_asio.cpp Lines 100 to 103 in 534bc59 |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm using the ecal python bridge and I wonder how can I get the ecal status?
I am using ecal with network enabled and I have to set a multicast route for ecal to work, and since my program starts before the route is set (its a linux service), it can't connect at first.
I want to test the status and quit the program is it's not Ok.
Ecal prints
CUDPSender::Send failed with: 'Network is unreachable'
in the terminal but I don't know what function to call to get this status ?I suspect that
eCAL::Time::GetStatus
is the function I want, but there seems to be no python binding for this function.NB:
ecal.core.core.ok()
returns 1 so it doesn't help for this case.Beta Was this translation helpful? Give feedback.
All reactions