You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.
First thing I tried (without thinking) on ubuntu was: ./csd. This failed with error below because /etc/csd/main.conf is not present unless you put it there.
I'm wondering if we can make this a tiny bit better for developers:
Check for existence of the config file in CSD (default or otherwise) and fail with better message - e.g.:
Specified conf file not found (whatever file it is). Use --conf flag to specify configuration file.
Even if we don't do this, would be good to get rid of the other warnings about missing location etc, (as these are spurious/just because of the missing file.
Perhaps have a second default file ./samples/files/ubuntu.conf. Not sure about this, since someone might choose to run on Arch Linux or whatever.
Also, the camera started even though it was missing "required" information. Shouldn't it fail in this case?
The text was updated successfully, but these errors were encountered:
More than logging, it is about handling of no or invalid conf file. Currently, if there is no conf file or dir with conf files, that gets parsed successfully, the ConfFile object would be empty. This empty object is getting passed around. Also, there is no public method to check if the ConfFile obj is invalid. I am thinking of adding changes where ConfFile with no entries will not be passed. This will require making the usage of the ConfFile obj optional in CameraServer, MavlinkServer and RTSPServer. Keeping the issue open till done.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First thing I tried (without thinking) on ubuntu was:
./csd
. This failed with error below because/etc/csd/main.conf
is not present unless you put it there.I'm wondering if we can make this a tiny bit better for developers:
./samples/files/ubuntu.conf
. Not sure about this, since someone might choose to run on Arch Linux or whatever.Also, the camera started even though it was missing "required" information. Shouldn't it fail in this case?
The text was updated successfully, but these errors were encountered: