uofsspaceteam / robocluster_manager Goto Github PK
View Code? Open in Web Editor NEWManages process for the robocluster framework
Manages process for the robocluster framework
The process manager needs to be able to tell when a process is crashed, stuck in a loop, or operating normally, and decide what to do if abnormal behaviour is detected.
I have noticed that updates and issues from this repository were not being published on the Github and Github-Issues channels on Slack. I'm not sure if this is mandatory or not, but it would be nice to have the updates published on Slack.
Instead of processes just printing to standard out, the process manager could agregate logging from all processes on the network and dump it to a common file.
The process manager will also be in charge of handling USB devices.
Processes must talk to the process manager to find a USB serial device. Assuming the USB device is not already in use by another process, the process manager will give the requesting process a direct communication channel to the USB device. For now we well only allow devices to be accessed on the same computer, but in the future it may be interesting to allow processes on one computer to access USB devices on another computer.
There should be methods to start or stop all processes at once, or each processes individually.
It would be nice to have a single file that identifies which process should be run on each mahcine.
I am thinking JSON would be a convenient format, as we will be using it for data serialization anyway.
Example format:
{
"localhost" : {
"sleeper" : {
"cmd" : "python sleeper.py"
},
"crash": {
"cmd" : "python crash.py"
}
},
"DrivePy" : {
"DriveProcess" : {
"cmd" : "python DriveProcess.py",
"some_setting": 5
},
"NavigationProcess" : {
"cmd" : "./NavigationProcess"
}
},
"ArmPy" : {
"ArmProcess" : {
"cmd" : "python ArmProcess.py"
}
}
}
The master process manager would read this file on start up and tell other process managers what processes to run.
If something goes wrong during the operation of the rover and we need to shut everything down,
a kill command from the master node should ensure every process on the system is stopped immediately.
Each process manager will share the state of its own processes with all the other process managers.
This should also provide mechanisms for processes on one machine to talk directly to processes on another machine. Some sort of concensus algorithm should be used so that process managers on different machines agree with one another as to what the global state is.
Currently in progess, we need to be able to start and stop process remotely from another machine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.