Open fnoop opened 5 years ago
[dev] [mav@goodrobots ~/code/fnoop.maverick-api/maverick_api]$ ./maverick_api.py
[I 181221 22:08:50 logging:34] Loaded config options
Unable to register with master node [http://localhost:11311]: master may not be running yet. Will keep trying.
^C^C^C^C^C^C
It sometimes (often?) stops on ctrl-c after startup, but if any problem during startup it doesn't.
There are a couple of things going on here. Firstly mavros blocks forever if it cant reach the master on the URI. This needs to be fixed with some sort of timeout. Secondly once running we are sending the signal to an asyncio loop and such the signal names are different from a normal synchronous program. There are signal callbacks in place but they are looking for the wrong signal type.
kill is working as expected for the program once running, still need to address the issue with rospy/mavros.
Related #64
maverick_api.py does not respond to ctrl-c or external kill (SIGHUP) requests.