4 ms·
A lot of robotics projects like this are done by people who only have a background in mechanical engineering. This team seems to have dedicated software people
by 0xDEF 4y ago
A lot of robotics projects like this are done by people who only have a background in mechanical engineering. This team seems to have dedicated software people so they can use ROS (Python/C++). However it's common in robotics to just draw something in Simulink/Stateflow that is pushed to the microcontroller or FPGA. No low-level C expert required.
I'm sure most software people will be horrified how much "safety critical software" in modern cars and aircrafs is autogenerated based on something drawn up in Simulink/Stateflow.
- potatochup 4y agoIs this really that bad? Presumably the autogenerated c doesn't have any array over reads and it probably initializes values properly
- 0xDEF 4y agoI think companies that do actual life/death safety critical software should hire dedicated software people instead of relying on closed-source proprietary visual programming tools for mechanical engineers.
- deleted 4y ago[deleted]
- deleted 4y ago[deleted]
- xavxav 4y agoSimulink / Stateflow and more generally 'synchronous programming languages' have a rich academic lineage and are particularly well adapted to safety-critical tasks. These languages bring a lot of key guarantees that you can't (easily) get from more classical languages like bounded memory usage, hard real time guarantees, numerical properties, ability to prove theoretical properties about the model etc... It's also not like having your code written as a text file would save you from using closed source proprietary compilers or languages (Ada, Ferrocene, various C distributions) for safety-critical software.
- potatochup 4y agoRather than "instead" it can be both. I don't want mechanical engineers hand writing observer models and PIDs in bare metal C, but I also don't want software engineerings designing my observer models and PIDs. They are different tools for different jobs.
- scotty79 4y agoThose tools are closed source so they probably have many undiscovered bugs.
- eddsh1994 4y agoWhat’s wrong with Simulink? It is better than the average C developers code in terms of safety and correctness
- auxym 4y agoYes, in addition to Simulink, see AUTOSAR: https://en.wikipedia.org/wiki/AUTOSAR https://en.wikipedia.org/wiki/AUTOSAR From my understanding it's very prevalent in automotive to generate microcontroller code.
- RealityVoid 4y agoWhile AUTOSAR does generate code, the code is highly coupled with the "core" of the module, it's more configuration data rather than the logic itself.